Which variables can I use to read your custom variables 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 HOLDThere 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!
-
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 HOLDThere 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!
@Black-Square - Thank you, is this the correct assignment for Autopilot buttons?
-
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) ! andIAS 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) < andDescend:
(A:AUTOPILOT FLIGHT LEVEL CHANGE, bool) (L:var_iasHoldMode, bool) ! and (A:INDICATED ALTITUDE:1, FEET) 250 + (A:AUTOPILOT ALTITUDE LOCK VAR:1, FEET) < andAirspeed hold:
(A:AUTOPILOT AIRSPEED HOLD, bool)
(A:AUTOPILOT FLIGHT LEVEL CHANGE, bool) (L:var_iasHoldMode, bool) and
or -
Of course! Let me know what else I can do for you!
-
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
-
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.