Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
Collapse
Just Flight Community Forum
  1. Home
  2. Just Flight
  3. MSFS Products
  4. Black Square Add-Ons
  5. Piston & Turbine Dukes
  6. ATT mode Var Error

ATT mode Var Error

Scheduled Pinned Locked Moved Piston & Turbine Dukes
6 Posts 2 Posters 28 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 Offline
    S Offline
    Sergekoko
    wrote last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sergekoko
      wrote last edited by
      #2

      The code is K:AP_PITCH_LEVELER_ON

      1 Reply Last reply
      0
      • Black SquareB Online
        Black SquareB Online
        Black Square
        Black Square Developer
        wrote last edited by
        #3

        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)
        }
        
        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sergekoko
          wrote last edited by
          #4

          Thank you for the reply, that makes me feel better that I wasnt just missing something. I am not familiar with generating a preset, i assume thats what I will have to do to use the code that you provided?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sergekoko
            wrote last edited by
            #5

            Figured it out! Thank you so much, didnt realize i can script in the Preset Code box, that is so cool! Really enjoying this aircraft as well you did an amazing job, just like you do on all of your products!

            1 Reply Last reply
            0
            • Black SquareB Online
              Black SquareB Online
              Black Square
              Black Square Developer
              wrote last edited by
              #6

              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!

              1 Reply Last reply
              0
              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
              • Users