assafm25 Posted November 23, 2024 Posted November 23, 2024 Hi all, I have Arduino KU that work just great. The only issue I have is that I need separate code for pilot and CPG seat. I found that I can add a button or switch for change the code lines but is the DCS send info about the position so my code can listen to? [sIGPIC][/sIGPIC] IAF Bell205 IAF Anafa ----------------------- DCS World Modules: A-10C, FC3, MiG-21BiS, F-86, P-51, KA-50, UH-1H Huey, Mi-8, M2000K, Gazal, Bf109, Mig-15, Hawk and NTTR ----------------------- My System - ASUS Maximus HERO iiiv, CoolMaster 120 Sadion Plus, I7 -6700K @4.0, G.Skill ddr4 16GB ram, Gigabyte GTX 1070 G1 , PSU Seasonic X-650W, OCZ 150 500Gb ssd drive X2, Seagate 7200 1T X2. -------------
No1sonuk Posted November 27, 2024 Posted November 27, 2024 You could try sending and receiving both sets at once... DCS tends to ignore inputs not relevant to the current position. So when you press a key, send it for pilot AND CPG at the same time. How are you reading the keypad? For the display, either write a separate routine that displays the information, and call it from BOTH "onchange" routines, or just call the same "onchange" routine from two different call lines. e.g. void onKuDisplayChange(char* newValue) { /* your display code here */ } DcsBios::StringBuffer<22> cpgKuDisplayBuffer(AH_64D_CPG_KU_DISPLAY_A, onKuDisplayChange); DcsBios::StringBuffer<22> pltKuDisplayBuffer(AH_64D_PLT_KU_DISPLAY_A, onKuDisplayChange); // Note: These lines have been modified to call the same "onChange" routine. It might work. It might not. I don't have any multi-seat aircraft to try it on, but something like it DOES work across different aircraft in most circumstances. There are a lot of things DCS-BIOS will do outside what's written in the control references... One of the best things to remember is this: "What would happen if I did this?" Is not necessarily a stupid question... If you try it, it's SCIENCE!!
Recommended Posts