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. Bonanza Professional
  6. KAS 297B ARM button state

KAS 297B ARM button state

Scheduled Pinned Locked Moved Bonanza Professional
3 Posts 2 Posters 81 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.
  • N Offline
    N Offline
    Nodeblue
    wrote last edited by
    #1

    Hi, I’m setting up the Bonanza with SPAD.next. I’m trying to get and display the ARM status on the Stream Deck. I can toggle the button easy enough with the HTML event kas297b_ArmButton (thanks manual) however I can’t seem to find a variable that I can read to give me the state if it is on or off.

    Is there a variable I can read for the ARM state?

    Side note - Fantastic plane!

    Cheers.

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

      I didn't reveal a variable for that, but if you want to add one for yourself, here is the simplest solution I could think of for you:

      Located KAS297B.js (probably most easily done with by a search in your community folder.

      Right after super.Update();, add the following line:

      SimVar.SetSimVarValue("L:var_kas297b_Armed", "bool", this.optionalArmingMode || SimVar.GetSimVarValue("L:PMS50_APGA_SELECTED_ALTITUDE_PHASE", "number") == 1 || SimVar.GetSimVarValue("L:PMS50_APGA_SELECTED_ALTITUDE_PHASE", "number") == 2 || SimVar.GetSimVarValue("L:PMS50_APGA_SELECTED_ALTITUDE_PHASE", "number") == 3 );
      

      I always want to make sure my users have the experience they're looking for, even if it takes little bit of hacky custom code, so please let me know if that works for you 🙂

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nodeblue
        wrote last edited by
        #3

        Perfect, that worked a treat. Thank you!! My Stream Deck+ now accurately shows the ARM state.

        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