Skip to main content

Class: Gpws

Defined in: workingtitle-instruments-epic2/shared/GPWS/Gpws.ts:18

A GPWS system.

Constructors

Constructor

new Gpws(bus, fmsPosIndex, facLoader, apDataProvider): Gpws

Defined in: workingtitle-instruments-epic2/shared/GPWS/Gpws.ts:123

Creates a new instance of Gpws.

Parameters

ParameterTypeDescription
busEventBusThe event bus.
fmsPosIndexnumber | Subscribable<number>The index of the FMS geo-positioning system from which to source data.
facLoaderFacilityLoaderThe facility loader.
apDataProviderAutopilotDataProviderThe autopilot data provider.

Returns

Gpws

Methods

addModule()

addModule(module): this

Defined in: workingtitle-instruments-epic2/shared/GPWS/Gpws.ts:158

Adds a module to this system.

Parameters

ParameterTypeDescription
moduleGpwsModuleThe module to add.

Returns

this

This system, after the module has been added.


destroy()

destroy(): void

Defined in: workingtitle-instruments-epic2/shared/GPWS/Gpws.ts:420

Destroys this system.

Returns

void


init()

init(): void

Defined in: workingtitle-instruments-epic2/shared/GPWS/Gpws.ts:172

Initializes this system. Once this system is initialized, it will begin collecting data and updating its modules.

Returns

void

Throws

Error if this system has been destroyed.


isPowered()

isPowered(): boolean

Defined in: workingtitle-instruments-epic2/shared/GPWS/Gpws.ts:264

Checks if this system is powered.

Returns

boolean

Whether this is system is powered.


setPowered()

setPowered(isPowered): void

Defined in: workingtitle-instruments-epic2/shared/GPWS/Gpws.ts:272

Sets whether this system is powered.

Parameters

ParameterTypeDescription
isPoweredbooleanWhether this system is powered.

Returns

void