Class: WeightFuelComputer
A computer for weight and fuel calculations.
Constructors
constructor
• new WeightFuelComputer(bus
, fms
, fmsPosIndex
): WeightFuelComputer
Constructor.
Parameters
Name | 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. |
Returns
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/Performance/WeightFuel/WeightFuelComputer.ts:111
Methods
destroy
▸ destroy(): void
Destroys this computer. Once destroyed, this computer will no longer perform any calculations or updates, and cannot be paused or resumed.
Returns
void
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/Performance/WeightFuel/WeightFuelComputer.ts:296
init
▸ init(paused?
): void
Initializes this computer.
Parameters
Name | 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.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/Performance/WeightFuel/WeightFuelComputer.ts:124
pause
▸ pause(): void
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.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/Performance/WeightFuel/WeightFuelComputer.ts:209
reset
▸ reset(): void
Resets the fuel on board setting value to uninitialized, the cargo weight setting value to zero, and the fuel totalizer's fuel remaining value to zero.
Returns
void
Throws
Error if this computer has been destroyed.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/Performance/WeightFuel/WeightFuelComputer.ts:241
resume
▸ resume(): void
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.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/MFD/Performance/WeightFuel/WeightFuelComputer.ts:178