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