Skip to main content

Class: GtcDefaultPositionHeadingDataProvider

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:36

A default implementation of GtcPositionHeadingDataProvider.

Implements​

Constructors​

Constructor​

new GtcDefaultPositionHeadingDataProvider(bus, fmsPosIndex, ahrsIndex, updateFreq): GtcDefaultPositionHeadingDataProvider

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:87

Constructor.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.
fmsPosIndexnumber | Subscribable<number>The index of the FMS geo-positioning system that is the source of this provider's data.
ahrsIndexnumber | Subscribable<number>The index of the AHRS that is the source of this provider's data.
updateFreqnumberThe frequency at which this provider updates its position and heading data.

Returns​

GtcDefaultPositionHeadingDataProvider

Properties​

headingTrue​

readonly headingTrue: Subscribable<number>

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:47

The current true heading of the airplane, in degrees.

Implementation of​

GtcPositionHeadingDataProvider.headingTrue


headingTrueWithFailure​

readonly headingTrueWithFailure: Subscribable<number>

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:51

The current true heading of the airplane, in degrees, or NaN when heading data is in a failed state.

Implementation of​

GtcPositionHeadingDataProvider.headingTrueWithFailure


isGpsDataFailed​

readonly isGpsDataFailed: Subscribable<boolean>

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:65

Whether GPS data is in a failed state.

Implementation of​

GtcPositionHeadingDataProvider.isGpsDataFailed


isGpsDeadReckoning​

readonly isGpsDeadReckoning: Subscribable<boolean>

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:60

Whether GPS position is in dead reckoning mode.

Implementation of​

GtcPositionHeadingDataProvider.isGpsDeadReckoning


isHeadingDataFailed​

readonly isHeadingDataFailed: Subscribable<boolean>

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:55

Whether this provider's heading data is in a failed state.

Implementation of​

GtcPositionHeadingDataProvider.isHeadingDataFailed


ppos​

readonly ppos: Subscribable<GeoPointInterface>

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:39

The current position of the airplane.

Implementation of​

GtcPositionHeadingDataProvider.ppos


pposWithFailure​

readonly pposWithFailure: Subscribable<GeoPointInterface>

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:43

The current position of the airplane, or (NaN, NaN) when GPS data is in a failed state.

Implementation of​

GtcPositionHeadingDataProvider.pposWithFailure

Methods​

destroy()​

destroy(): void

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:214

Destroys this data provider. Once destroyed, this data provider will no longer update its provided data, and can no longer be paused or resumed.

Returns​

void


init()​

init(paused): void

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:104

Initializes this data provider. Once initialized, this data provider will continuously update its data until paused or destroyed.

Parameters​

ParameterTypeDefault valueDescription
pausedbooleanfalseWhether to initialize this data provider as paused. If true, this data provider will provide an initial set of data but will not update the provided data until it is resumed. Defaults to false.

Returns​

void

Throws​

Error if this data provider is dead.


pause()​

pause(): void

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:187

Pauses this data provider. Once paused, this data provider will not update its data until it is resumed.

Returns​

void

Throws​

Error if this data provider is dead.


resume()​

resume(): void

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Navigation/GtcPositionHeadingDataProvider.ts:162

Resumes this data provider. Once resumed, this data provider will continuously update its data until paused or destroyed.

Returns​

void

Throws​

Error if this data provider is dead.