# Fuel {{< callout context="caution" title="IMPORTANT!" icon="outline/alert-triangle" >}} Token Variables - along with the [Gauge API](../../gauge-api/) - have been deprecated in Microsoft Flight Simulator 2024 in favour of the new [Vars API](../../../vars-api/vars-api/) and [Event API](../../../event-api/event-api/), which work with the more extensive and supported [Simulation Variables](../../../../simvars/simulation-variables/) and [Key Events](../../../../key-events/key-events-index/). {{< /callout >}} This page lists the available **fuel** [Token Variables](../token-variables/) for use when creating gauges using {{< glossterm >}}wasm{{< /glossterm >}} / C++. ### Fuel Tanks {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `FUEL_TANK_LEFT_AUX_CAPACITY` | `n` (FLOAT64) | The maximum capacity of the Left Auxiliary fuel tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUEL_TANK_LEFT_AUX_LEVEL` | `n` (FLOAT64) | The fuel left in the Left Auxiliary tank expressed as a value between 0 and 8388608, corresponding to 0 to 100 percent. | | `FUEL_TANK_CENTER_CAPACITY` | `n` (FLOAT64) | The maximum capacity of the Center (1) fuel tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUEL_TANK_CENTER_LEVEL` | `n` (FLOAT64) | The fuel left in the Center (1) tank expressed as a value between 0 and 8388608, corresponding to 0 to 100 percent. | | `FUEL_TANK_CENTER2_CAPACITY` | `n` (FLOAT64) | The maximum capacity of the Center (2) fuel tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUEL_TANK_CENTER2_LEVEL` | `n` (FLOAT64) | The fuel left in the Center (2) tank expressed as a value between 0 and 8388608, corresponding to 0 to 100 percent. | | `FUEL_TANK_LEFT_MAIN_CAPACITY` | `n` (FLOAT64) | The maximum capacity of the Left Main fuel tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUEL_TANK_LEFT_MAIN_LEVEL` | `n` (FLOAT64) | The fuel left in the Left Main tank expressed as a value between 0 and 8388608, corresponding to 0 to 100 percent. | | `FUEL_TANK_LEFT_TIP_CAPACITY` | `n` (FLOAT64) | The maximum capacity of the Left Tip fuel tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUEL_TANK_LEFT_TIP_LEVEL` | `n` (FLOAT64) | The fuel left in the Left Tip tank expressed as a value between 0 and 8388608, corresponding to 0 to 100 percent. | | `FUEL_TANK_RIGHT_AUX_CAPACITY` | `n` (FLOAT64) | The maximum capacity of the Right Auxiliary fuel tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUEL_TANK_RIGHT_AUX_LEVEL` | `n` (FLOAT64) | The fuel left in the Right Auxiliary tank expressed as a value between 0 and 8388608, corresponding to 0 to 100 percent. | | `FUEL_TANK_RIGHT_MAIN_CAPACITY` | `n` (FLOAT64) | The maximum capacity of the Right Main fuel tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUEL_TANK_RIGHT_MAIN_LEVEL` | `n` (FLOAT64) | The fuel left in the Right Main tank expressed as a value between 0 and 8388608, corresponding to 0 to 100 percent. | | `FUEL_TANK_RIGHT_TIP_CAPACITY` | `n` (FLOAT64) | The maximum capacity of the Right Tip fuel tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUEL_TANK_RIGHT_TIP_LEVEL` | `n` (FLOAT64) | The fuel left in the Right Tip tank expressed as a value between 0 and 8388608, corresponding to 0 to 100 percent. | {{< /table-wrapper >}} ### General Fuel {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `FUEL_DUMP_ACTIVE` | `b` (BOOL) | Whether the fuel dump is active (TRUE, 1) or not (FALSE, 0). | | `FUEL_PUMP` | `b` (BOOL) | Whether the fuel pump is active (TRUE, 1) or not (FALSE, 0). | | `FUEL_QUANTITY_CENTER``FUEL_QUANTITY_CENTER2``FUEL_QUANTITY_CENTER3` | `n` (FLOAT64) | The quantity of fuel in the Center 1/2/3 tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUEL_QUANTITY_LEFT` | `n` (FLOAT64) | The quantity of fuel in the Left tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUEL_QUANTITY_RIGHT` | `n` (FLOAT64) | The quantity of fuel in the Right tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUEL_TRANSFERT_PUMP_ON` | `b` (BOOL) | Whether the transfer pump is active (TRUE, 1) or not (FALSE, 0). | | `FUEL_WEGHT_PER_GALLON` | `n` (FLOAT64) | Specifies weight of fuel, in pounds I.F. (6 lbs/gal = 1536) | | `SELECTED_FUEL_QUANTITY_GALLONS` | `n` (FLOAT64) | The fuel quantity for the selected tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `SELECTED_FUEL_QUANTITY_LITERS` | `n` (FLOAT64) | The fuel quantity for the selected tank, in Liters. | | `SELECTED_FUEL_QUANTITY_PERCENT` | `n` (FLOAT64) | The quantity of fuel in the tank expressed as a {{< glossterm >}}percent_over_100{{< /glossterm >}}. | | `SELECTED_FUEL_TRANSFER_MODE` | `e` (ENUM){{< params/smallfont-list >}}-1 = off0 = auto1 = forward2 = aft{{< /params/smallfont-list >}} | The transfer mode for the selected fuel tank. | | `TOTAL_FUEL_QUANTITY_GALLONS` | `n` (FLOAT64) | The total fuel quantity available from all tanks, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `TOTAL_FUEL_QUANTITY_LBS` | `n` (FLOAT64) | The total fuel quantity available from all tanks, in {{< glossterm >}}lbs{{< /glossterm >}}. | | `TOTAL_UNUSABLE_FUEL_QUANTITY_GALLONS` | `n` (FLOAT64) | The total fuel quantity that will not be useable from all tanks, in {{< glossterm >}}gallons{{< /glossterm >}}. | {{< /table-wrapper >}} ### Fuel System The following fuel system token variables all require that the aircraft is using the [Fuel System](../../../../content-configuration/cfg-files/flight-model/modular-fuel-system-information/) parameters, not the legacy [\[FUEL\]](../../../../content-configuration/cfg-files/flight_model.cfg/#FUEL) parameters. {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `FUELSYSTEM_ENGINE_PRESSURE` | `n` (FLOAT64) | The pressure of the fuel coming to the engine, in kilopascal. | | `FUELSYSTEM_JUNCTION_SETTING` | `n` (FLOAT64) | The fuel system junction setting. | | `FUELSYSTEM_LINE_FUEL_FLOW` | `n` (FLOAT64) | The fuel flowing through the line, in {{< glossterm >}}gallons{{< /glossterm >}} per hour. | | `FUELSYSTEM_LINE_FUEL_LEVEL` | `n` (FLOAT64) | The level of fuel in the line, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUELSYSTEM_LINE_FUEL_PRESSURE` | `n` (FLOAT64) | The fuel pressure in the line, in kilopascals. | | `FUELSYSTEM_PUMP_ACTIVE` | `b` (BOOL) | Whether the fuel system pump is active (TRUE, 1) or not (FALSE, 0). | | `FUELSYSTEM_PUMP_SWITCH` | `b` (BOOL) | Whether the fuel system pump is enabled (TRUE, 1) or not (FALSE, 0). | | `FUELSYSTEM_TANK_CAPACITY` | `n` (FLOAT64) | The total capacity of the tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUELSYSTEM_TANK_LEVEL` | `n` (FLOAT64) | The quantity of fuel available for use in the tank, expressed as a {{< glossterm >}}percent_over_100{{< /glossterm >}}. | | `FUELSYSTEM_TANK_QUANTITY` | `n` (FLOAT64) | The quantity of fuel available for use in the tank, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUELSYSTEM_TANK_TOTAL_QUANTITY` | `n` (FLOAT64) | The total quantity of fuel in the tank, including any that can't be used, in {{< glossterm >}}gallons{{< /glossterm >}}. | | `FUELSYSTEM_TANK_WEIGHT` | `n` (FLOAT64) | The weight of fuel in the fuel tank, in {{< glossterm >}}lbs{{< /glossterm >}}. | | `FUELSYSTEM_TRIGGER_STATUS` | `b` (BOOL) | Whether a trigger is active (TRUE, 1) or not (FALSE, 0). | | `FUELSYSTEM_VALVE_OPEN` | `b` (BOOL) | Whether the valve is open (TRUE, 1) or not (FALSE, 0). | | `FUELSYSTEM_VALVE_SWITCH` | `n` (FLOAT64) | Whether the valve is set to be opened (TRUE, 1) or not (FALSE, 0). | {{< /table-wrapper >}} ### Engine Fuel Systems {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `ENGINE_1_FUELFLOW_BUG_POSITION``ENGINE_2_FUELFLOW_BUG_POSITION``ENGINE_3_FUELFLOW_BUG_POSITION``ENGINE_4_FUELFLOW_BUG_POSITION` | `n` (FLOAT64) | The fuelflow bug position in {{< glossterm >}}lbs{{< /glossterm >}} per hour for engine 1/2/3/4. | | `ENGINE1_FUEL_PUMP_ON``ENGINE2_FUEL_PUMP_ON``ENGINE3_FUEL_PUMP_ON``ENGINE4_FUEL_PUMP_ON` | `n` (FLOAT64) | Whether the fuel pump for engine 1/2/3/4 is on (TRUE, 1) or off (FALSE, 0). | | `GENERAL_ENGINE1_FUEL_PRESSURE``GENERAL_ENGINE2_FUEL_PRESSURE``GENERAL_ENGINE3_FUEL_PRESSURE``GENERAL_ENGINE4_FUEL_PRESSURE` | `n` (FLOAT64) | The engine 1/2/3/4 fuel pressure, in {{< glossterm >}}psf{{< /glossterm >}}. | | `GENERAL_ENGINE1_FUEL_VALVE``GENERAL_ENGINE2_FUEL_VALVE``GENERAL_ENGINE3_FUEL_VALVE``GENERAL_ENGINE4_FUEL_VALVE` | `n` (FLOAT64) | The fuel valve state for engine 1/2/3/4, either open (TRUE, 1) or closed (FALSE, 0). | {{< /table-wrapper >}}