Add proper condition lever LVAR variables
-
I now added this code myself to control the condition lever with LVARs:
<Component ID="LVAR_TO_BVAR"> <UseTemplate Name="ASOBO_GT_Update"> <UPDATE_CODE> (L:TBM850_COND_LEVER_SET, number) s0 0 > if{ l0 1 - (>B:Fuel_1_Condition_Lever_Set) l0 (>L:TBM850_COND_LEVER_VALUE) 0 (>L:TBM850_COND_LEVER_SET) } </UPDATE_CODE> <FREQUENCY>1</FREQUENCY> </UseTemplate> </Component>
And then in Mobiflight events:
TBM850_COND_LEVER_DEC# (L:TBM850_COND_LEVER_VALUE) ++ (>L:TBM850_COND_LEVER_SET)
TBM850_COND_LEVER_INC# (L:TBM850_COND_LEVER_VALUE) -- (>L:TBM850_COND_LEVER_SET)This works perfectly, but it would be great if the LVARs could be incorporated by Blacksquare!
-
@fabristunt I think with SPAD.next it can handle the Bvars itself. However, I added the code to the AnalogTBM.xml, at the end of the file, before the finishing </Behaviour> line
-
A reply direct from the developer...
I have added an L:Var for the condition lever in the next update, though using a slightly different technique. It will be "L:BKSQ_ConditionLever, number" (0-2).
Hope that's of some help.