Skip to main content

Class: DefaultAirspeedIndicatorGsDataProvider

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/PFD/Components/AirspeedIndicator/AirspeedIndicatorGsDataProvider.ts:19

A default implementation of AirspeedIndicatorGsDataProvider.

Implements​

Constructors​

Constructor​

new DefaultAirspeedIndicatorGsDataProvider(bus, fmsPosIndex): DefaultAirspeedIndicatorGsDataProvider

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/PFD/Components/AirspeedIndicator/AirspeedIndicatorGsDataProvider.ts:41

Creates a new instance of DefaultAirspeedIndicatorGsDataProvider.

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.

Returns​

DefaultAirspeedIndicatorGsDataProvider

Properties​

gsKnots​

readonly gsKnots: Subscribable<number>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/PFD/Components/AirspeedIndicator/AirspeedIndicatorGsDataProvider.ts:25

The current ground speed, in knots.

Implementation of​

AirspeedIndicatorGsDataProvider.gsKnots


isDataFailed​

readonly isDataFailed: Subscribable<boolean>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/PFD/Components/AirspeedIndicator/AirspeedIndicatorGsDataProvider.ts:28

Whether ground speed data is in a failure state.

Implementation of​

AirspeedIndicatorGsDataProvider.isDataFailed

Methods​

destroy()​

destroy(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/PFD/Components/AirspeedIndicator/AirspeedIndicatorGsDataProvider.ts:120

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/PFD/Components/AirspeedIndicator/AirspeedIndicatorGsDataProvider.ts:54

Initializes this data provider. Once initialized

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/PFD/Components/AirspeedIndicator/AirspeedIndicatorGsDataProvider.ts:101

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/PFD/Components/AirspeedIndicator/AirspeedIndicatorGsDataProvider.ts:82

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.