• Categories
  • Recent
  • Tags
  • Popular
  • Users
Collapse
Just Flight Community Forum

RPN codes for Century IV AP in Turbine Duke, please!

Scheduled Pinned Locked Moved Piston & Turbine Dukes
3 Posts 2 Posters 157 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SMN204
    wrote on last edited by SMN204
    #1

    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

    1 Reply Last reply
    0
  • Black SquareB Offline
    Black SquareB Offline
    Black Square Black Square Developer
    wrote on last edited by
    #2

    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.

    1 Reply Last reply
    0
  • S Offline
    S Offline
    SMN204
    wrote on last edited by
    #3

    It's working fine!

    P.S Flight Sim Awards 2025 - You Are The Winners !!!
    Congratulations !

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users