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. Starship
  6. Which variables can I use to read your custom variables Black Square?

Which variables can I use to read your custom variables Black Square?

Scheduled Pinned Locked Moved Starship
11 Posts 2 Posters 136 Views 2 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.
  • toby23T Offline
    toby23T Offline
    toby23
    wrote last edited by toby23
    #1

    I am working on a Stream Deck profile for the Starship, similar to my other profiles for the P180 and Comanche.

    I can affect the ALT and V/S dials using the custom HVars such as H:ALT_AltitudeSelectKnob_Dec_1 but how can I read them? Normally I would use a default Asobo AVar such as AUTOPILOT AIRSPEED HOLD, Bool to read if, for example, IAS mode is active.

    What are the connected variables for the following custom HVars?

    • MSP_Airspeed_1
    • MSP_Descend_1
    • MSP_FlightDirectorOff_1

    Thank you

    aecffce9-8d05-45e1-b736-b3cb926e25d0-image.png

    1 Reply Last reply
    1
    • toby23T Offline
      toby23T Offline
      toby23
      wrote last edited by
      #2

      The image below shows an example from another profile that uses default Asobo variables.
      I need to 'read' the values to be able to display them in the row where the green X is.

      image.png

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

        L:bksq_AltitudePreselect_1, for altitude, L:bksq_VerticalSpeedPreselect_1 for vertical speed, and then the rest are the SimVars that you're used to, so...

        A:AUTOPILOT HEADING LOCK
        A:AUTOPILOT MAX BANK > 22
        A:AUTOPILOT VERTICAL HOLD
        A:AUTOPILOT FLIGHT LEVEL CHANGE
        A:AUTOPILOT ALTITUDE LOCK
        A:AUTOPILOT APPROACH HOLD
        A:AUTOPILOT NAV1 LOCK
        A:AUTOPILOT FLIGHT DIRECTOR ACTIVE
        A:AUTOPILOT MASTER
        A:AUTOPILOT AIRSPEED HOLD

        There are a few more nuances that I could help you with, but that should be enough to get you started. Let me know if you need anything else!

        toby23T 1 Reply Last reply
        0
        • toby23T Offline
          toby23T Offline
          toby23
          wrote last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • Black SquareB Black Square

            L:bksq_AltitudePreselect_1, for altitude, L:bksq_VerticalSpeedPreselect_1 for vertical speed, and then the rest are the SimVars that you're used to, so...

            A:AUTOPILOT HEADING LOCK
            A:AUTOPILOT MAX BANK > 22
            A:AUTOPILOT VERTICAL HOLD
            A:AUTOPILOT FLIGHT LEVEL CHANGE
            A:AUTOPILOT ALTITUDE LOCK
            A:AUTOPILOT APPROACH HOLD
            A:AUTOPILOT NAV1 LOCK
            A:AUTOPILOT FLIGHT DIRECTOR ACTIVE
            A:AUTOPILOT MASTER
            A:AUTOPILOT AIRSPEED HOLD

            There are a few more nuances that I could help you with, but that should be enough to get you started. Let me know if you need anything else!

            toby23T Offline
            toby23T Offline
            toby23
            wrote last edited by toby23
            #5

            @Black-Square - Thank you, is this the correct assignment for Autopilot buttons?

            555ed5ac-db0b-4dac-8442-ef6e83ed8d72-image.png

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

              Ok, here come the nuanced ones straight from the RPN. The rest are as you've listed.

              Flight Director Off:
              (A:AUTOPILOT FLIGHT DIRECTOR ACTIVE, bool) (A:AUTOPILOT MASTER, bool) ! and

              IAS Profile:
              (A:AUTOPILOT FLIGHT LEVEL CHANGE, bool) (L:var_iasHoldMode, bool) ! and (A:INDICATED ALTITUDE:1, FEET) 250 - (A:AUTOPILOT ALTITUDE LOCK VAR:1, FEET) < and

              Descend:
              (A:AUTOPILOT FLIGHT LEVEL CHANGE, bool) (L:var_iasHoldMode, bool) ! and (A:INDICATED ALTITUDE:1, FEET) 250 + (A:AUTOPILOT ALTITUDE LOCK VAR:1, FEET) < and

              Airspeed hold:
              (A:AUTOPILOT AIRSPEED HOLD, bool)
              (A:AUTOPILOT FLIGHT LEVEL CHANGE, bool) (L:var_iasHoldMode, bool) and
              or

              1 Reply Last reply
              0
              • toby23T Offline
                toby23T Offline
                toby23
                wrote last edited by
                #7

                I really appreciate you sharing these variables, thank you.

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

                  Of course! Let me know what else I can do for you!

                  1 Reply Last reply
                  0
                  • toby23T Offline
                    toby23T Offline
                    toby23
                    wrote last edited by toby23
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • toby23T Offline
                      toby23T Offline
                      toby23
                      wrote last edited by toby23
                      #10

                      I cannot find a way to read if IAS or DES mode is active using SimVars.

                      I am reading A:AUTOPILOT FLIGHT LEVEL CHANGE, Bool to turn the 'green light' on for either the IAS or DES switch. Currently it turns both lights on when either mode is activated.

                      How can I 'read' which mode is active?

                      I can use RPN scripts but I cannot write them myself.

                      Thank you

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

                        That's what the (A:INDICATED ALTITUDE:1, FEET) 250 - (A:AUTOPILOT ALTITUDE LOCK VAR:1, FEET) < and... sections of the code above is meant to do. It simply looks at whether the preselected altitude is commanding a climb or descent from the current altitude.

                        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