Skip to main content

Class: WeightFuelComputer

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightFuel/WeightFuelComputer.ts:15

A computer for weight and fuel calculations.

Constructors

Constructor

new WeightFuelComputer(bus, fms, fmsPosIndex, calculateLoadWeights): WeightFuelComputer

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightFuel/WeightFuelComputer.ts:147

Creates a new instance of WeightFuelComputer.

Parameters

ParameterTypeDescription
busEventBusThe event bus.
fmsFms<"">The FMS.
fmsPosIndexnumber | Subscribable<number>The index of the FMS geo-positioning system that is the source of this computer's ground speed data.
calculateLoadWeightsbooleanWhether this computer calculates loading weights (basic operating weight, total passenger weight, and zero fuel weight).

Returns

WeightFuelComputer

Methods

destroy()

destroy(): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightFuel/WeightFuelComputer.ts:361

Destroys this computer. Once destroyed, this computer will no longer perform any calculations or updates, and cannot be paused or resumed.

Returns

void


init()

init(paused): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightFuel/WeightFuelComputer.ts:161

Initializes this computer.

Parameters

ParameterTypeDefault valueDescription
pausedbooleanfalseWhether to initialize this computer as paused. Defaults to false.

Returns

void

Throws

Error if this computer has been destroyed.


pause()

pause(): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightFuel/WeightFuelComputer.ts:262

Pauses this computer. Once paused, this computer will not perform any calculations or updates until it is resumed.

Returns

void

Throws

Error if this computer has been destroyed.


reset()

reset(): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightFuel/WeightFuelComputer.ts:301

Resets the fuel on board setting value to uninitialized and the fuel totalizer's fuel remaining value to zero. Additionally, if this computer is configured to calculate load weights, also resets the cargo weight setting value to zero.

Returns

void

Throws

Error if this computer has been destroyed.


resume()

resume(): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/Performance/WeightFuel/WeightFuelComputer.ts:225

Resumes this computer. Once resumed, this computer will perform calculations and updates as necessary until it is paused or destroyed.

Returns

void

Throws

Error if this computer has been destroyed.