ATT mode Var Error
-
Good Evening,
I have been mapping custom Duke Autopilot Functions using Mobiflight in 2024, and am having an issue with mapping the one to select the ATT mode button. All the others i have either found in the custom input list or used a generic Microsoft one. When i map the one called "ATT pitch hold toggle" from the Duke Autopilot section, it selects GA on the AP control panel instead ATT, to verify i also just clicked it and it works from the cockpit, as well as trying the default Microsoft AP ATT HOLD variable, which doesnt do anything in this case. Am i doing something incorrectly? In the description field of Mobiflight it also says "Error" when that variable is selected.
-
I think the problem you're seeing here is that MSFS provides no variable for GA mode, so I have to do a process of elimination for it. Assuming you're familiar with RPN in Mobiflight, here is the exact code that I run internally to get the mode setting correct. The extra complication at the top is due to how multiple different 3rd party GPS developers handle their autopilots.
(L:PMS50_APGA_RUNNING, bool) (L:PMS50_APGA_ACTIVE_VERTICAL_MODE, number) 3 == and (L:PMS50_APGA_RUNNING, bool) ! (A:AUTOPILOT VERTICAL HOLD, bool) (A:AUTOPILOT ALTITUDE LOCK, bool) or and or if{ (>K:AP_ALT_HOLD) } els{ (>K:AP_PITCH_LEVELER_ON) } -
Wonderful! I was worried I was going to have to tell you that I wasn't intimately familiar with Mobiflight. Please let me know if there's ever anything else I can do for you!