Skip to main content

Class: DefaultPositionHeadingDataProvider

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:37

A default implementation of PositionHeadingDataProvider.

Implements

Constructors

Constructor

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

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:88

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

DefaultPositionHeadingDataProvider

Properties

headingTrue

readonly headingTrue: Subscribable<number>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:48

The current true heading of the airplane, in degrees.

Implementation of

PositionHeadingDataProvider.headingTrue


headingTrueWithFailure

readonly headingTrueWithFailure: Subscribable<number>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:52

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

Implementation of

PositionHeadingDataProvider.headingTrueWithFailure


isGpsDataFailed

readonly isGpsDataFailed: Subscribable<boolean>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:66

Whether GPS data is in a failed state.

Implementation of

PositionHeadingDataProvider.isGpsDataFailed


isGpsDeadReckoning

readonly isGpsDeadReckoning: Subscribable<boolean>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:61

Whether GPS position is in dead reckoning mode.

Implementation of

PositionHeadingDataProvider.isGpsDeadReckoning


isHeadingDataFailed

readonly isHeadingDataFailed: Subscribable<boolean>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:56

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

Implementation of

PositionHeadingDataProvider.isHeadingDataFailed


ppos

readonly ppos: Subscribable<GeoPointInterface>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:40

The current position of the airplane.

Implementation of

PositionHeadingDataProvider.ppos


pposWithFailure

readonly pposWithFailure: Subscribable<GeoPointInterface>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:44

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

Implementation of

PositionHeadingDataProvider.pposWithFailure

Methods

destroy()

destroy(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:215

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: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:105

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: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:188

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: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Navigation/PositionHeadingDataProvider.ts:163

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.