Jump to content

DCS BIOS Moving LST/NFLR moves FLIR switch in game


Recommended Posts

Posted

Just wondering if anyone can help, i recently made a right side panel for the FA18 and all wired up via Arduinos and using DCS BIOS when i move the LST/NFLR switch on my panel it moves the FLIR switch in game it goes from Off to stby to on??  if use the FLIR switch on the panel it moves the flir switch in game as it should. i have wired up, everything on the right side and all other switches work fine and as they should this is the only one that it happens on. I did notice some else on the forum had the same issue and i did comment in there post, but no response also they had no replies. i have tried other pins in the Arduino and still doesn't matter also i have checked the code and it all looks fine. 

Posted

 

Here is the complete code all others work. I even tried a 3 position switch instead of the 2 position. 

*
  Tell DCS-BIOS to use a serial connection and use interrupt-driven
  communication. The main program will be interrupted to prioritize
  processing incoming data.
  
  This should work on any Arduino that has an ATMega328 controller
  (Uno, Pro Mini, many others).
 */
#define DCSBIOS_IRQ_SERIAL

#include "DcsBios.h"

/* paste code snippets from the reference documentation here */
DcsBios::Switch3Pos flirSw("FLIR_SW", 22, 24);
const byte insSwPins[15] = {6, 7, 8, 9, 10, 11, 12, 13}
;DcsBios::SwitchMultiPos insSw("INS_SW", insSwPins, 15);
DcsBios::Switch2Pos lstNflrSw("LST_NFLR_SW", 30, true);
DcsBios::Switch3Pos ltdRSw("LTD_R_SW", 26, 28);
const byte radarSwPins[7] = {2, 3, 4, 5}
;DcsBios::SwitchMultiPos radarSw("RADAR_SW", radarSwPins, 7);
DcsBios::Switch3Pos lGenSw("L_GEN_SW", 34, 36);
DcsBios::Switch3Pos batterySw("BATTERY_SW", 38, 40);
DcsBios::Switch3Pos rGenSw("R_GEN_SW", 42, 44);
DcsBios::Switch3Pos ecsModeSw("ECS_MODE_SW", 35, 37);
DcsBios::RotaryEncoder cabinTemp("CABIN_TEMP", "-3200", "+3200", 24, 23);
DcsBios::Switch3Pos cabinPressSw("CABIN_PRESS_SW", 39, 41);
DcsBios::Switch3Pos pitotHeatSw("PITOT_HEAT_SW", 27, 29);
DcsBios::Switch3Pos engAntiiceSw("ENG_ANTIICE_SW", 31, 33);
const byte bleedAirKnobPins[7] = {43, 45, 47, 49}
;DcsBios::SwitchMultiPos bleedAirKnob("BLEED_AIR_KNOB", bleedAirKnobPins, 7);


void setup() {
  DcsBios::setup();
}

void loop() {
  DcsBios::loop();
}

Posted

i have tried 3 position also and doesn't work either still the same issue, this is the code from dcs bios the switch only has off and on. 

 

LST/NFLR Switch, ON/OFFFA-18C_hornet/LST_NFLR_SW
Switch2PosSwitchMultiPosRotaryEncoderFixedStep Input: set position
DcsBios::Switch2Pos lstNflrSw("LST_NFLR_SW", PIN);
Posted

This is also the code changed to 3 position 

 

*
  Tell DCS-BIOS to use a serial connection and use interrupt-driven
  communication. The main program will be interrupted to prioritize
  processing incoming data.
  
  This should work on any Arduino that has an ATMega328 controller
  (Uno, Pro Mini, many others).
 */
#define DCSBIOS_IRQ_SERIAL

#include "DcsBios.h"

/* paste code snippets from the reference documentation here */
DcsBios::Switch3Pos flirSw("FLIR_SW", 22, 24);
const byte insSwPins[15] = {6, 7, 8, 9, 10, 11, 12, 13}
;DcsBios::SwitchMultiPos insSw("INS_SW", insSwPins, 15);
DcsBios::Switch3Pos lstNflrSw("LST_NFLR_SW", 30, 32);
DcsBios::Switch3Pos ltdRSw("LTD_R_SW", 26, 28);
const byte radarSwPins[7] = {2, 3, 4, 5}
;DcsBios::SwitchMultiPos radarSw("RADAR_SW", radarSwPins, 7);
DcsBios::Switch3Pos lGenSw("L_GEN_SW", 34, 36);
DcsBios::Switch3Pos batterySw("BATTERY_SW", 38, 40);
DcsBios::Switch3Pos rGenSw("R_GEN_SW", 42, 44);
DcsBios::Switch3Pos ecsModeSw("ECS_MODE_SW", 35, 37);
DcsBios::RotaryEncoder cabinTemp("CABIN_TEMP", "-3200", "+3200", 24, 23);
DcsBios::Switch3Pos cabinPressSw("CABIN_PRESS_SW", 39, 41);
DcsBios::Switch3Pos pitotHeatSw("PITOT_HEAT_SW", 27, 29);
DcsBios::Switch3Pos engAntiiceSw("ENG_ANTIICE_SW", 31, 33);
const byte bleedAirKnobPins[7] = {43, 45, 47, 49}
;DcsBios::SwitchMultiPos bleedAirKnob("BLEED_AIR_KNOB", bleedAirKnobPins, 7);


void setup() {
  DcsBios::setup();
}

void loop() {
  DcsBios::loop();
}

Posted

OK. I didn't comprehend that you were talking about two different switches.

Which DCS-BIOS version are you using?
The other thread you commented on shows the "Hub" version control reference.  Hub isn't "actively maintained" at the moment, and that bug may not have attracted the attention of the "FlightPanels Fork" guys that do some bug fixing with Hub.
If you're using Hub, it's possible DCS has been updated and now uses different addresses, etc.

Posted

thanks No1sonuk for your help so far. i am using DCS bios version V0.10.0 + 64 which i think is the latest version. Sorry not 100% sure what you mean by using Hub. Basically i just wired up the panels using Arduino Mega board and then i used the control reference to find the code i needed copy and pasted and added in my pins to what ever i used for the switch. I see that the version i have is from 2019 i am guessing this isnt really updated anymore. Just sucks that all my other switches work and just this one i am having the issue. Also when i mentioned 3 position i only meant i tried the code for 3 position the switch has always been a 2 position switch. 

If DCS is using different addresses is there away i can find out? as i am guessing this is part of the code that gets copied into the Arduino? 

Thanks Again. 

Posted

V0.10.0 is called the "Hub" version, and despite it being a higher version number than the "Flightpanels fork", Hub is far from the latest version.  It hasn't been properly maintained and updated for years.
It's possible an update to DCS has changed something and Hub hasn't been updated.
The Flightpanels fork was made based on an earlier version than Hub, but is currently actively updated and bug-fixed.  It was made to allow the use of the Saitek flight control panels with DCS, but there's also Arduino support AND Stream Deck support.
I'd suggest trying it and see if it helps.
https://github.com/DCSFlightpanels

  • Thanks 1
  • 3 months later...
Posted

seems i am having issues with DCS bios hub it works for a little bit then just stops responding, so i am going to try the flight panels version. I am following the install, but seem to be having issues. Do i need to remove the DCS bios hub version? and the line dcs bios hub has in the export lua? I have the google chrome app installed. but i am getting this error? i did install this awhile ago and i seem to remember it looked different now it says it inst supported? when i am in game and start the app it seems to be working. The other issue i have is on the install PDF it mentions a socat file in programs i cant seem to find either? and where do you find the information for the arduino sketches? as in dcs hub you just copied and pasted from the control reference into the arduino sketches and just added your pin numbers i cant seem to find this info for flight panels or is it the same? I have been reading the info on the github page, but seem to be getting confused when they talk about the DCS bios are they talking about the orginal or there version? I tried seaching the forum for flight panels but couldnt find much. Sorry if this doesnt make sense. 

Screenshot 2023-01-23 192124.png

Posted (edited)

I installed Flightpanels to a different DCS version, but I assume you'd have to completely uninstall Hub.

 

Chrome doesn't support the apps anymore. Someone has created an alternative, but I can't remember what it's called. There's a channel on the FP discord. 

 

Socat needs to be unzipped depending on the OS version.

 

Sorry for disjointed response - phone app freaking out in this forum.

 

 

Edited by No1sonuk
Posted

@No1sonuk thanks will check out the discord and will uninstall dcs bios hub not working now anyway. Also, found the socat folder on GitHub. Are you using this with arduino yourself? And for what aircraft? 

  • 6 months later...
Posted

Hello, just found this post. I´m having the exact same problem you mentioned with FLIR and LST. I´m using the controller board from TEKCreations. Did you already find a solution for the issue?

Posted
On 8/20/2023 at 5:40 PM, Emdschie said:

Hello, just found this post. I´m having the exact same problem you mentioned with FLIR and LST. I´m using the controller board from TEKCreations. Did you already find a solution for the issue?

Hey I had to change to flightpanels version soon as I changed it worked fine. Good thing is once you change to flightpanels you don’t need to redo any sketches on your arduino as I guess it is still using dcs-bios. Followed the info on GitHub installed a program called bort and all works fine 

  • Like 1
Posted
43 minutes ago, danos_2503 said:

Hey I had to change to flightpanels version soon as I changed it worked fine. Good thing is once you change to flightpanels you don’t need to redo any sketches on your arduino as I guess it is still using dcs-bios. Followed the info on GitHub installed a program called bort and all works fine 

Yes. The Flightpanels fork was built on an older version of DCS-BIOS. 

The devs maintained and updated the system when the original went silent, and are continuing to do so.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...