On this page
Warnings And Failures
IMPORTANT!
Token Variables - along with the Gauge API - have been deprecated in Microsoft Flight Simulator 2024 in favour of the new Vars API and Event API, which work with the more extensive and supported Simulation Variables and Key Events.
This page lists the available warning and failure Token Variables for use when creating gauges using WASM / C++.
Failure States
| Parameters | Universal Var Member | Description |
|---|---|---|
PP_ADF |
| ADF failure state. |
PP_AIR |
| Airspeed gauge failure state. |
PP_ALTIM |
| Altimeter failure state. |
PP_ATTITUDE |
| Attitude failure state. |
PP_COM |
| COM gauge failure state. |
PP_COMPASS |
| Compass failure state. |
PP_ELECT |
| Panels circuit failure state. |
PP_ENGINE |
| Engine gauges failure state. |
PP_FUEL_IND |
| Fuel indicator failure state. |
PP_HEADING |
| Heading indicator failure state. |
PP_VERT_VEL |
| Vertical velocity indicator failure state. |
PP_XPNDR |
| Transponder failure state. |
PP_NAV |
| NAV gauges failure state. |
PP_PITOT |
| Pitot system failure state. |
PP_TURN_COORD |
| Turn coordinator failure state. |
PP_VACUUM |
| Vacuum system failure state. |
FLY_BY_WIRE_ELAC_FAILED |
| Will be TRUE (1) if the elevators and ailerons computer has failed, or FALSE (0) otherwise. |
FLY_BY_WIRE_FAC_FAILED | b (BOOL) | Will be TRUE (1) if the flight augmentation computer has failed, or FALSE (0) otherwise. |
FLY_BY_WIRE_SEC_FAILED | b (BOOL) | Will be TRUE (1) if the spoilers and elevators computer has failed, or FALSE (0) otherwise. |
Warnings
| Parameters | Universal Var Member | Description |
|---|---|---|
GEAR_WARNING | b (BOOL) | Whether the gear warning is on (TRUE, 1) or off (FALSE, 0). |
GPWS_WARNING |
| Ground proximity warnings. |
LOW_HEIGHT_WARNING | b (BOOL) | Will be TRUE (1) if the low height warning is activated, and FALSE (0) if it's not. |
OVERSPEED_WARNING | b (BOOL) | Will be TRUE (1) if the overspeed warning is activated, and FALSE (0) if it's not. |
STALL_WARNING | b (BOOL) | Will be TRUE (1) if the stall warning is activated, and FALSE (0) if it's not. |
WARNING_FUEL | b (BOOL) | Will be TRUE (1) if the fuel warning is activated, and FALSE (0) if it's not. |
WARNING_FUEL_L | b (BOOL) | Will be TRUE (1) if the left fuel tank warning is activated, and FALSE (0) if it's not. |
WARNING_FUEL_R | b (BOOL) | Will be TRUE (1) if the right fuel tank warning is activated, and FALSE (0) if it's not. |
WARNING_OIL_PSI | b (BOOL) | Will be TRUE (1) if the oil pressure warning is activated, and FALSE (0) if it's not. |
WARNING_VACUUM | b (BOOL) | Will be TRUE (1) if the vacuum system warning is activated, and FALSE (0) if it's not. |
WARNING_VACUUM_L | b (BOOL) | Will be TRUE (1) if the left vacuum system warning is activated, and FALSE (0) if it's not. |
WARNING_VACUUM_R | b (BOOL) | Will be TRUE (1) if the right vacuum system warning is activated, and FALSE (0) if it's not. |
WARNING_VOLTAGE | b (BOOL) | Will be TRUE (1) if the voltage warning is activated, and FALSE (0) if it's not. |