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_TRIMn (FLOAT64)Aileron trim angle, in radians.
AILERON_TRIM_DISABLEb (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_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_NEUTRALn (FLOAT64)The elevator trim neutral position, in radians.

 

 

Elevons

Parameters

Universal Var Member

Description

ELEVON_1_DEFLECTIONELEVON_2_DEFLECTIONELEVON_3_DEFLECTIONELEVON_4_DEFLECTIONELEVON_5_DEFLECTIONELEVON_6_DEFLECTIONELEVON_7_DEFLECTIONELEVON_8_DEFLECTIONn (FLOAT64)

The angle of deflection of the varios 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_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.