Jump to content

Rotary encoder and ARDUINO on F14 for HSD course


BULLITT83

Recommended Posts

Hi guys,

 

i'm having problem with the HSD course. I try to put a rotary encoder to control this function .

 

So i put the skech line i found on DCS control reference page .. but when i turn my rotary encoder the pointer jump not step by step but for 10 , 20 some times 90 degrees ? ??

 

i change values on the value on the sketch line "-3200" "+3200" to "-500" "+500" nothing really change ...... did i ve to change the F14.LUA in DCS ARDUINO library ? :helpsmilie:

Link to comment
Share on other sites

Ok i read that maybe my encoder is not ok for such precision needed for HSD

 

so i try another function it works perfectly with AIRSPEED INDICATOR KNOB ( F14b remember)

 

so i try another one : ARA 63 channel knob :

 

i write this in my sketch :

DcsBios::RotaryEncoder pltAra63Chan("PLT_ARA63_CHAN", "DEC", "INC", 51, 53);

 

i find it on the ref page

 

but my F14 library is writen as a multiposi switch :

 

defineMultipositionSwitch("PLT_ARA63_CHAN", 11, 3322, 912, 20, 1/19,"ANARA63 Panel" ,"PILOT AN/ARA-63 Channel Knob")

 

so i modify the F14B.LUA with :

 

defineRotary("PLT_ARA63_CHAN", 11, 3322, 912, "ANARA63 Panel" , "PILOT AN/ARA-63 Channel Knob")

 

and it doesn't works !

 

where am i wrong ?

 

 

i think that on the library code 11, 3322, 912 is some kind of adress for this function ? where to find it , in order to check it ?

 

best regards

 

Hope my questions are not to "newbies" ones

Link to comment
Share on other sites

  • Recently Browsing   0 members

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