I would like to better understand how the code below works to control the flight director bank angle display. In particular, one of the things I don't understand is the effect of multiplying (A:AUTOPILOT FLIGHT DIRECTOR BANK, radians) by 50 versus adding 50 to it.
Also, the SDK shows the units of ATTITUDE INDICATOR BANK DEGREES is radians. Is that a typo?
Thanks,
Al
(A:AUTOPILOT FLIGHT DIRECTOR ACTIVE, Bool) 1 == if{ (A:AUTOPILOT FLIGHT DIRECTOR BANK, radians) 50 * 50 + (A:ATTITUDE INDICATOR BANK DEGREES, degree) - } els{ (A:AUTOPILOT FLIGHT DIRECTOR BANK, radians) 50 + }
Also, the SDK shows the units of ATTITUDE INDICATOR BANK DEGREES is radians. Is that a typo?
Thanks,
Al
(A:AUTOPILOT FLIGHT DIRECTOR ACTIVE, Bool) 1 == if{ (A:AUTOPILOT FLIGHT DIRECTOR BANK, radians) 50 * 50 + (A:ATTITUDE INDICATOR BANK DEGREES, degree) - } els{ (A:AUTOPILOT FLIGHT DIRECTOR BANK, radians) 50 + }
Last edited:

