RPN codes for Century IV AP in Turbine Duke, please!
-
My event in FSUIPC is “Autopilot Pitch Hold Mode”:
Autopilot Pitch Hold Mode# (>K:AP_PITCH_LEVELER_ON)
does not work correctly!
It turns on GA mode ...And event in FSUIPC “Autopilot Altitude Hold Mode”:
Autopilot Altitude Hold Mode# (>K:AP_ALT_HOLD)
cycles ALT-ATT mode.Maybe there is a way to get all the RPN codes for Century IV AP in Turbine Duke!
Thanks -
Both of those events that appear in the Inputs/Outputs section of the manual are the exact events used in the code within the Dukes. There is more code surrounding those events to catch various edge cases and ensure the motorized pitch knob is working as described in the manual, which I can supply if you really want it. Otherwise, I'm not sure those events are doing anything unexpected.
If you want to stop K:AP_ALT_HOLD from toggling, making it only activate altitude holding, but never deactivate, you can use:
(A:AUTOPILOT VERTICAL HOLD, bool) (A:AUTOPILOT ALTITUDE LOCK, bool) or ! if{ (>K:AP_ALT_HOLD) }
Similarly, you could do the following for K:AP_PITCH_LEVELER_ON, which should stop it from deactivating pitch hold, causing the autopilot to default back into go-around mode. (It's a long story as to why that's the default mode... There is a missing variable in MSFS 2020, so developers have to detect GA mode by process of elimination.)
(A:AUTOPILOT VERTICAL HOLD, bool) (A:AUTOPILOT ALTITUDE LOCK, bool) or ! if{ (>K:AP_ALT_HOLD) } els{ (>K:AP_ALT_HOLD) }
Let me know if this gets you something more like what you're expecting to see with your hardware, and if not, I can cook up some more code for you.