LVAR For yoke trim rocker
-
Of course, ELEV_TRIM_UP/DN works just fine, it simulates turning the physical wheel. However I want to link my rocker on my hardware yoke to the pitch trim rocker, which should not work when "pitch trim" is switched off... is there a special LVAR for that?
-
@bjratchf yes. The code that the aircraft uses for the trim rocker looks similar to this:
8 (>A:BUS LOOKUP INDEX, Number) (A:CIRCUIT CONNECTION ON:52, Bool) (A:ELECTRICAL MAIN BUS VOLTAGE:8, Volts) 12 > and (L:var_PitchTrimPower, bool) and if{ (A:ELEVATOR TRIM PCT, Percent) 163.83 * 32 + 16383 min -16383 max (>K:ELEVATOR_TRIM_SET) }
Bind this to a repeating button. You can adjust that number 32 in there for the speed of the trim movement, and make it negative to move the trim down.
Tested with Grand Duke variant.If you use AxisAndOhs, I shared some templates here, including trims:
https://gitlab.com/randolf.lemmont/fs-bksq-duke-mods -
Thank you for your help! I think this is a bit over my head however- I do use AAO but when I imported your template into the turbine duke, the trim ran away to full nose up... I'm going to try to figure out how to turn it into an easy script to assign to a push button (my yoke trim rocker)