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
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
fms | Fms <"" > | The FMS. |
fmsPosIndex | number | Subscribable <number > | The index of the FMS geo-positioning system that is the source of this computer's ground speed data. |
calculateLoadWeights | boolean | Whether 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
Parameter | Type | Default value | Description |
---|---|---|---|
paused | boolean | false | Whether 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.