dureiken Posted April 23, 2022 Share Posted April 23, 2022 Hi experts just making my first button box with DCS and arduino mega. Everything works pretty fine, and it's really simple. But I have a little problem with rotary : I physically only go one way, and go back, and we can see it works sometimes, sometimes it doesn't. What did I do wrong ? is that hardware (low cost rotary) problem ? Another little problem : "TEST" for fuel doesn't work ? Quote const byte fuelQtySelKnbPins[11] = {7, 6, 5, 4, 3, 2}; DcsBios::SwitchMultiPos fuelQtySelKnb("FUEL_QTY_SEL_KNB", fuelQtySelKnbPins, 11); tried different pins, different buttons, it's the same thanks for your help. Link to comment Share on other sites More sharing options...
BlackLibrary Posted April 29, 2022 Share Posted April 29, 2022 which BIOS version? Test is an extra button/switch aka WarLord DCSFlightpanels DCS-BIOS Fork DCSFlightpanels arduino-library DCSFlightpanels DCSFlightpanels-Profiles DCS FP / BIOS Discord Server Link to comment Share on other sites More sharing options...
No1sonuk Posted April 29, 2022 Share Posted April 29, 2022 In the FlightPanels fork control reference, this comes out as: const byte fuelQtySelKnbPins[5] = {PIN_0, PIN_1, PIN_2, PIN_3, PIN_4}; DcsBios::SwitchMultiPos fuelQtySelKnb("FUEL_QTY_SEL_KNB", fuelQtySelKnbPins, 5); Why do you have "11" where this has "5"? You don't have 11 switch positions to use. Link to comment Share on other sites More sharing options...
dureiken Posted April 30, 2022 Author Share Posted April 30, 2022 On 4/29/2022 at 1:53 PM, BlackLibrary said: which BIOS version? Test is an extra button/switch Hi seems in the same line : On 4/29/2022 at 11:28 PM, No1sonuk said: In the FlightPanels fork control reference, this comes out as: const byte fuelQtySelKnbPins[5] = {PIN_0, PIN_1, PIN_2, PIN_3, PIN_4}; DcsBios::SwitchMultiPos fuelQtySelKnb("FUEL_QTY_SEL_KNB", fuelQtySelKnbPins, 5); Why do you have "11" where this has "5"? You don't have 11 switch positions to use. because control reference gives me that : thanks ! Link to comment Share on other sites More sharing options...
No1sonuk Posted April 30, 2022 Share Posted April 30, 2022 42 minutes ago, dureiken said: because control reference gives me that : thanks ! Looks like that's Hub. Maybe it's a bug that didn't get spotted until now. Link to comment Share on other sites More sharing options...
BlackLibrary Posted May 1, 2022 Share Posted May 1, 2022 no not hub its FP. but the latest release version. Try the master branch, there is a fix for this switch aka WarLord DCSFlightpanels DCS-BIOS Fork DCSFlightpanels arduino-library DCSFlightpanels DCSFlightpanels-Profiles DCS FP / BIOS Discord Server Link to comment Share on other sites More sharing options...
dureiken Posted May 1, 2022 Author Share Posted May 1, 2022 9 minutes ago, BlackLibrary said: no not hub its FP. but the latest release version. Try the master branch, there is a fix for this switch I have the latest release (one from 2019) where to DL the good one ? thanks Link to comment Share on other sites More sharing options...
BlackLibrary Posted May 1, 2022 Share Posted May 1, 2022 uh very old latest release is JAN 22 anyway try this: https://github.com/DCSFlightpanels/dcs-bios/archive/refs/heads/master.zip aka WarLord DCSFlightpanels DCS-BIOS Fork DCSFlightpanels arduino-library DCSFlightpanels DCSFlightpanels-Profiles DCS FP / BIOS Discord Server Link to comment Share on other sites More sharing options...
dureiken Posted May 1, 2022 Author Share Posted May 1, 2022 6 minutes ago, BlackLibrary said: uh very old latest release is JAN 22 anyway try this: https://github.com/DCSFlightpanels/dcs-bios/archive/refs/heads/master.zip thanks seems to be a fork. How to correctly install it ? I have no exe, no installer as DCS bios does ? thanks and sorry for newb questions Link to comment Share on other sites More sharing options...
dureiken Posted May 1, 2022 Author Share Posted May 1, 2022 4 hours ago, BlackLibrary said: no not hub its FP. but the latest release version. Try the master branch, there is a fix for this switch it works like a charm now ! Just can't achieve to use Fuel TEST it's on the same 6-way rotary than other FUEL position, PIN 7 of my arduino. I tested : const byte fuelQtySelKnbPins[5] = {6, 5, 4, 3, 2}; DcsBios::SwitchMultiPos fuelQtySelKnb("FUEL_QTY_SEL_KNB", fuelQtySelKnbPins, 5); DcsBios::RotaryEncoder fuelQtySelTKnb("FUEL_QTY_SEL_T_KNB", "DEC", "INC", 7, 6); and const byte fuelQtySelKnbPins[5] = {6, 5, 4, 3, 2}; DcsBios::SwitchMultiPos fuelQtySelKnb("FUEL_QTY_SEL_KNB", fuelQtySelKnbPins, 5); DcsBios::RotaryEncoder fuelQtySelTKnb("FUEL_QTY_SEL_T_KNB", "DEC", "INC", 6, 7); without sucess thanks by the way, everything else works ! Link to comment Share on other sites More sharing options...
No1sonuk Posted May 1, 2022 Share Posted May 1, 2022 You use a rotary switch OR a rotary encoder, not both. And if you use a rotary switch, there's normally no press switch for the test function unless it's a special switch. What are you using? Photo? Link to comment Share on other sites More sharing options...
dureiken Posted May 1, 2022 Author Share Posted May 1, 2022 it's the blue one, a 6 way rotary I use it for other fuel selection 5 button know too, like in the F16 Link to comment Share on other sites More sharing options...
No1sonuk Posted May 1, 2022 Share Posted May 1, 2022 (edited) A photo of the knob doesn't tell me anything... "6 way rotary" does, though. So try this: const byte fuelQtySelKnbPins[5] = {6, 5, 4, 3, 2}; DcsBios::SwitchMultiPos fuelQtySelKnb("FUEL_QTY_SEL_KNB", fuelQtySelKnbPins, 5); DcsBios::Switch2Pos fuelQtySelTKnb("FUEL_QTY_SEL_T_KNB", 7); Even if it's part of the 6-way rotary, "Test" is treated as a separate switch in the code. Edited May 1, 2022 by No1sonuk Link to comment Share on other sites More sharing options...
dureiken Posted May 3, 2022 Author Share Posted May 3, 2022 On 5/1/2022 at 3:53 PM, No1sonuk said: A photo of the knob doesn't tell me anything... "6 way rotary" does, though. So try this: const byte fuelQtySelKnbPins[5] = {6, 5, 4, 3, 2}; DcsBios::SwitchMultiPos fuelQtySelKnb("FUEL_QTY_SEL_KNB", fuelQtySelKnbPins, 5); DcsBios::Switch2Pos fuelQtySelTKnb("FUEL_QTY_SEL_T_KNB", 7); Even if it's part of the 6-way rotary, "Test" is treated as a separate switch in the code. Hi still not working for test knob but not a very big problem, everything else is just perfect !! thanks Link to comment Share on other sites More sharing options...
Recommended Posts