The aircraft_varget function retrieves the value of an aircraft simulation variable.

FLOAT64 aircraft_varget(
    ENUM  simvar,
    ENUM  units,
    SINT32  index

Parameters Description
simvar Specifies a simulation variable enum value. Use get_aircraft_var_enum to retrieve the enum value from a string.
units Specifies the units enum value the returned value should have. Use get_units_enum to retrieve the enum value from a string.
index Specifies an index number, which is required for some engine and communication data. Refer to the Simulation Variables document for details.

Return Values

The function returns the value in a FLOAT64. If the simulation variable is not found, zero will be returned.



See Also