Hello,
The Duckworks DC-3 Mod uses custom LVARs to control Throttle and Mixture.
i'm trying to control the LVAR L:DUCKWORKS_THROTTLE1_SET, with a hardware Axis.
I've tried using a LVAROffset to write to Offset 0XA000
[LvarOffsets]
0=L:DUCKWORKS_THROTTLE1_SET=UB0xA000.
And then assigned an axis to the Offset. Problem is that that Axis generates values from 0 to 100. The LVAR used by Duckworks needs values from 0.00 to 1.00.
I've tried making a LUA script to convert the value send by /100, but had no success.
Edit:
I've tried assigning the LVAR directly to the Axis and then convert the output from the Axis. This works when converting to 0-100
3=LV,256,F,M25:2,0,0,0,*-0.0030518, +50 -{ TO SIM: Macro DC3: L:DUCKWORKS_THROTTLE2_SET set }-
but not when multiplying with 0.000030518.
3=LV,256,F,M25:2,0,0,0,*-3.0518e-05 -{ TO SIM: Macro DC3: L:DUCKWORKS_THROTTLE2_SET set }-
And the same when assigning an Offset.
Could anyone help me getting this to work?
Kind Regards,
Andre