Skip to main content

Class: DefaultPositionHeadingDataProvider

A default implementation of PositionHeadingDataProvider.

Implements

Constructors

constructor

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

Constructor.

Parameters

NameTypeDescription
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

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:88

Properties

headingTrue

Readonly headingTrue: Subscribable<number>

The current true heading of the airplane, in degrees.

Implementation of

PositionHeadingDataProvider.headingTrue

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:48


headingTrueWithFailure

Readonly headingTrueWithFailure: Subscribable<number>

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

Implementation of

PositionHeadingDataProvider.headingTrueWithFailure

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:52


isGpsDataFailed

Readonly isGpsDataFailed: Subscribable<boolean>

Whether GPS data is in a failed state.

Implementation of

PositionHeadingDataProvider.isGpsDataFailed

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:66


isGpsDeadReckoning

Readonly isGpsDeadReckoning: Subscribable<boolean>

Whether GPS position is in dead reckoning mode.

Implementation of

PositionHeadingDataProvider.isGpsDeadReckoning

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:61


isHeadingDataFailed

Readonly isHeadingDataFailed: Subscribable<boolean>

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

Implementation of

PositionHeadingDataProvider.isHeadingDataFailed

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:56


ppos

Readonly ppos: Subscribable<GeoPointInterface>

The current position of the airplane.

Implementation of

PositionHeadingDataProvider.ppos

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:40


pposWithFailure

Readonly pposWithFailure: Subscribable<GeoPointInterface>

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

Implementation of

PositionHeadingDataProvider.pposWithFailure

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:44

Methods

destroy

destroy(): void

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

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:215


init

init(paused?): void

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

Parameters

NameTypeDefault 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.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:105


pause

pause(): void

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.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:188


resume

resume(): void

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.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Navigation/PositionHeadingDataProvider.ts:163