Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
Collapse
Just Flight Community Forum
  1. Home
  2. Just Flight
  3. MSFS Products
  4. Black Square Add-Ons
  5. Piston & Turbine Dukes
  6. RPN codes for Century IV AP in Turbine Duke, please!

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

Scheduled Pinned Locked Moved Piston & Turbine Dukes
3 Posts 2 Posters 821 Views 1 Watching
  • 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
    S
    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
      Black SquareB
      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
        S
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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