GENERAL SIMULATION

This page lists the available simulation Token Variables for use when creating gauges using WASM / C++.

 

 

Miscellaneous

Parameters Universal Var Member Description
ANIMATION DELTA TIME n (FLOAT64) The difference in time between the current frame and the last frame of the SimObject animation.
DISPLAY_UNITS n (FLOAT64) See ENGLISH_UNITS, METRIC_UNITS in Gauges.h.
HAND_ANIM_STATE

e (ENUM)

  1. 0 = Hover
  2. 1 = Index push/Point
  3. 2 = Pinch large
  4. 3 = Pinch medium
  5. 4 = Pinch small
  6. 5 = Pinch lateral
  7. 6 = Press all/Fist
  8. 7 = Toggle lever up/down
  9. 8 = Thumb push
  10. 9 = Holde yoke thin
  11. 10 = Hold throttle
  12. 11 = Hold yokes
  13. 12 = Push/pull lever
What frame of the hand is currently used.
MISSION_SCORE n (FLOAT64) Not currently used in the simulation.
MODULE_VAR_NONE call = callback Specifies an unused variable.
REALISM_SENSE n (FLOAT64) 0 = unreliable, 100 = totally reliable.
REALISM_SYSTEMS b (BOOL) Makes all realism systems available.
RELIABILITY_SENSE n (FLOAT64) 0 = unreliable - 100 = totally reliable.
SIM_SPEED n (FLOAT64) Specifies time dilation factor for Flight Simulator equations.
TICK18 n (FLOAT64) Incremented at 18hz. Used for general purpose timing.
TOOLTIP_UNITS

e (ENUM)

  1. 0 = Default
  2. 1 = Metric
  3. 2 = US imperial
The tooltip units to use.
ZOOM_FACTOR n (FLOAT64) Specifies zoom value of current window in real units.

 

 

Date And Time

Parameters Universal Var Member Description
CLOCK_HOUR n (FLOAT64) Specifies local clock time, in hours (0-23).
CLOCK_MINUTE n (FLOAT64) Specifies local clock time, in minutes (0-59).
CLOCK_SECOND n (FLOAT64) Specifies local clock time, in seconds (0-59).
CLOCK_TOTAL_SECONDS n (FLOAT64) Local clock time, seconds since midnight.
CURRENT_MONTH n (FLOAT64) The current month as a value from 1-12.
CURRENT_YEAR n (FLOAT64) The current year.
DAY_OF_MONTH n (FLOAT64) The current day of the month from 1-31.
DAY_OF_WEEK n (FLOAT64) the current day of the week from 0-6.
DAYLIGHT_SAVING_ACTIVE b (BOOL) If TRUE (1) then daylight saving is active, otherwise it will be FALSE (0).
ELAPSED_SECONDS n (FLOAT64) Measured in seconds.
TIME_ZONE_OFFSET n (FLOAT64) Measured in minutes, positive west of GMT.
ZULU_DAY n (FLOAT64) This returns the current Zulu Time day (1-365/366).
ZULU_HOUR n (FLOAT64) This returns the current Zulu Time hour.
ZULU_MINUTE n (FLOAT64) This returns the current Zulu Time minute.
ZULU_YEAR n (FLOAT64) This returns the current Zulu Time year.

 

 

Flight Conditions

Parameters Universal Var Member Description
ACCELERATION_BODY_X n (FLOAT64) Acceleration relative to the aircraft axis, in an east/west direction, calculated in ft per second.
ACCELERATION_BODY_Y n (FLOAT64) Acceleration relative to the aircraft Y axis, in a vertical direction, calculated in ft per second.
ACCELERATION_BODY_Z n (FLOAT64) Acceleration relative to the aircraft Z axis, in a north/south direction, calculated in ft per second.
ACCELERATION_WORLD_X n (FLOAT64) Acceleration relative to the earth, in an east/west direction, calculated in ft per second.
ACCELERATION_WORLD_Y n (FLOAT64) Acceleration relative to the earth, in a vertical direction, calculated in ft per second.
ACCELERATION_WORLD_Z n (FLOAT64) Acceleration relative to the earth, in a north/south direction, calculated in ft per second.
AMBIENT_PRES_MBAR n (FLOAT64)

The ambient air pressure, where:

1013.2 mb = 29.92 inHg (1/16 mb = 1 unit)

AMBIENT_TEMP_DEGREES_C n (FLOAT64)

The ambient temperature, where:

15º Celsius = 59º degrees F (1/256 degrees Celsius = 1 unit).

AMBIENT_WIND_DIR n (FLOAT64) Specifies the current wind direction.
AMBIENT_WIND_VEL n (FLOAT64) Specifies current wind velocity (knots).
AMBIENT_WINDA n (FLOAT64) Specifies alt wind component in m/sec units.
AMBIENT_WINDE n (FLOAT64) Specifies east wind component in m/sec units.
AMBIENT_WINDN n (FLOAT64) Specifies north wind component in m/sec units.
BAROMETRIC_PRESSURE n (FLOAT64) Specifies barometric pressure experienced.
RELATIVE_WIND_VELOCITY_BODY_X n (FLOAT64) Lateral (X-axis) speed relative to the wind, calculated in ft per second.
RELATIVE_WIND_VELOCITY_BODY_Y n (FLOAT64) Vertical (Y-axis) speed relative to the wind, calculated in ft per second.
RELATIVE_WIND_VELOCITY_BODY_Z n (FLOAT64) Longitudinal (Z-axis) speed relative to the wind, calculated in ft per second.
STANDARD_ATM_TEMPERATURE n (FLOAT64) Standard atmosphere temperature at aircraft altitude in Celsius.
TOTAL_AIR_TEMP n (FLOAT64)

The total air temperature is the air temperature at the front of the aircraft where the ram pressure from the speed of the aircraft is taken into account. Value is degrees Celsius scaled by 1/256, eg: VALUE / 256.

TOTAL_VELOCITY n (FLOAT64) Velocity regardless of direction. For example, if a helicopter is ascending vertically at 100 ft per second, then this variable will return 100.
TOTAL_WORLD_VELOCITY n (FLOAT64) Speed relative to the earths center, calculated in ft per second.

 

 

  Variables

Parameters Universal Var Member Description
CONCORDE_NOSE_ANGLE n (FLOAT64) The concorde nose angle, in degrees, where 0 is "up".
CONCORDE_VISOR_NOSE_HANDLE n (FLOAT64)

One of the following values:

  • 0: visor up, nose down
  • 1: visor down, nose up
  • 2: visor down, nose 5 degrees
  • 3: visor down, nose 12.5 degrees
CONCORDE_VISOR_POS_PCT n (FLOAT64) The visor position expressed as a Percent Over 100, where 0 corresponds to fully up, and 1 is fully extended/down.
GET_BOMB_AMMO n (FLOAT64) Get the number of bombs.
GET_CANNON_AMMO n (FLOAT64) Get the amount of cannon ammunition.
GET_GUN_AMMO n (FLOAT64) Get the amount of gun ammunition.
GET_ROCKET_AMMO n (FLOAT64) Get the number of rockets.
RACE_LAST_LAP_TIME n (FLOAT64) Get the last lap time in a race.
RAD_INS_SWITCH b (BOOL) Will be TRUE (1) if the Rad INS switch is on, or FALSE (0) otherwise (used in Concorde only).