Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.
You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks!
What is the problem? Doesn't anything happen at all or do they just act weird?
Regarding to the SDK
1 = push, -1 = pull
So writing that to the LVar should give the same functionality as if you where pushing/pulling the button in sim?
In my lua I have infinite loop which checks offsets and Lvars value. If they are different , it writes offset value to Lvar. When you change between set and managed mod for heading, system goes crayz. It stuck in managed mod even it shows heading or it doesnt turn to selected heading etc. Now I am copy-paste Linda's airbus functions and assigning them to keyboard. It doesnt need infinite loop and also it directly change Lvar without offset. I am just writing the offset for displaying on Leds. For now testing goes well. Only problem is you will need a lot of keyboard commands to assign(For only heading I will need 6 different lua and keystroke). I will go on this way. If this will fail either , dont know what I will do
Anyway , https://www.dropbox.com/s/f510z6dcflbjdli/AirbusRotary.lua?dl=0 is uncomplate lua file.
0x66C0 , 2 byte , mask value 0xFFFF , multiply by 1 / same for input. Use $+1 and -1 for value
0x66C6 and rest are same as speed.
0x66C8 , 4 byte , mask value 0xFFFF , multiply by 0.0054931640625 / for input , 4 byte , mask value 0xFFFFFFFF. Use $+182 and -182 for value
0x66D1 and rest are same as heading.
0x66D5 , 4 byte , mask value 0xFFFF multiply by 1 / 4 byte , 0xFFFFFFFF. Use $+100 and -100 for input.
0x66C2 , 2 byte , 0xFFFF , multiply by 100 / same as output. Value is $+1 and -1
0x66C4 , 2 byte , 0xFFFF , multiply by 1 / same as output. Value is $+1 and -1
0x66CE , if equals 0 , speed mod. if equals 1 , mach. use it for precondition
0x66CC if equals 0 , hdg. if equals 1 ,trk.