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 control surface Token Variables for use when creating gauges using WASM / C++.

Ailerons

ParametersUniversal Var MemberDescription
AILERON_DEFLECTIONn (FLOAT64)Aileron deflection angle, in radians.
AILERON_POSn (SINT16)The aileron left/right input, as a value between -16384 (full left) and 16384 (full right). This is the autopilot input when the autopilot is enabled.
AILERON_TRIMn (FLOAT64)Aileron trim angle, in radians.
AILERON_TRIM_DISABLEDb (BOOL)Whether the aileron trim has been disabled (TRUE, 1) or not (FALSE, 0).
AILERON_TRIM_PCTn (FLOAT64)The aileron trim position, where 0 is fully retracted, and 1 is fully extended.

Elevators

ParametersUniversal Var MemberDescription
ELEVATOR_DEFLECTIONn (FLOAT64)Elevator deflection angle, in radians.
ELEVATOR_POSn (SINT16)The elevator input, as a value between -16384 (full down) and 16384 (full up). This is the autopilot input when the autopilot is enabled.
ELEVATOR_TRIMn (FLOAT64)Elevator trim angle, in radians.
ELEVATOR_TRIM_DISABLEDb (BOOL)Whether the elevator trim has been disabled (TRUE, 1) or not (FALSE, 0).
ELEVATOR_TRIM_INDn (SINT16)The elevator trim angle divided by the upper trim limit, as a value between -16384 and 16384.
ELEVATOR_TRIM_NEUTRALn (FLOAT64)The elevator trim neutral position, in radians.
ELEVATOR_TRIM_POSn (SINT16)The elevator trim position, as a value between -16384 and 16384.

Elevons

ParametersUniversal Var MemberDescription
ELEVON_1_DEFLECTIONELEVON_2_DEFLECTIONELEVON_3_DEFLECTIONELEVON_4_DEFLECTIONELEVON_5_DEFLECTIONELEVON_6_DEFLECTIONELEVON_7_DEFLECTIONELEVON_8_DEFLECTIONn (FLOAT64)The angle of deflection of the various elevons, in radians. The elevon indices start at 1 at the far left and increase to the right.

Flaps

ParametersUniversal Var MemberDescription
FLAPS_HANDLE_POSn (FLOAT64)The flaps handle position, where 65536 is fully down and 0 is fully up.
FLAPS_POS_LEFTn (FLOAT64)The amount the left trailing edge flap is extended, where 65536 is fully extended and 0 is fully up.
FLAPS_POS_RIGHTn (FLOAT64)The amount the right trailing edge flap is extended, where 65536 is fully extended and 0 is fully up.
TRAILING_EDGE_FLAPS0_LEFT_ANGLEn (FLOAT64)The angle of the primary left trailing edge flaps, in degrees.
TRAILING_EDGE_FLAPS0_RIGHT_ANGLEn (FLOAT64)The angle of the primary right trailing edge flaps, in degrees.

Rudder

ParametersUniversal Var MemberDescription
RUDDER_DEFLECTIONn (FLOAT64)Rudder deflection angle, in radians.
RUDDER_PEDAL_INDn (SINT16)The rudder pedal position (or the autopilot rudder position if the autopilot is enabled), as a value between -16384 and 16384.
RUDDER_PEDAL_POSn (SINT16)The rudder pedal deflection, as a value between -16384 (left pedal pushed fully in) and 16384, centred on 0. This is the position of the autopilot when it is enabled.
RUDDER_POSn (SINT16)The rudder input, as a value between -16384 (full left) and 16384 (full right). This is the autopilot input when the autopilot is enabled.
RUDDER_TRIMn (FLOAT64)Rudder trim angle, in radians.
RUDDER_TRIM_DISABLEDb (BOOL)Whether the rudder trim has been disabled (TRUE, 1) or not (FALSE, 0).
RUDDER_TRIM_PCTn (FLOAT64)The rudder trim position, where 0 is fully retracted, and 1 is fully extended.

Spoilers

ParametersUniversal Var MemberDescription
SPOILERS_ARMEDb (BOOL)Whether the auto-spoilers are armed (TRUE, 1) or not (FALSE, 0).
SPOILERS_HANDLE_POSn (FLOAT64)The position of the spoiler handle, where 65536 is fully up and 0 is fully down.
SPOILERS_POS_LEFTn (FLOAT64)The amount the left spoiler is extended, where 65536 is fully extended and 0 is fully up.
SPOILERS_POS_RIGHTn (FLOAT64)The amount the right spoiler is extended, where 65536 is fully extended and 0 is fully up.

0/255