Jump to content

DCS Bios : strange rotary problem


dureiken

Recommended Posts

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

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

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 :

image.png

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 :

image.png

thanks !

Link to comment
Share on other sites

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

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

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 by No1sonuk
Link to comment
Share on other sites

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

  • Recently Browsing   0 members

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