Skip to main content

Class: DefaultFlightDirectorDataProvider

A default implementation of FlightDirectorDataProvider which smooths pitch and bank commands.

Implements

Constructors

constructor

new DefaultFlightDirectorDataProvider(bus, pitchSmoothingTau, bankSmoothingTau): DefaultFlightDirectorDataProvider

Constructor.

Parameters

NameTypeDescription
busEventBusThe event bus.
pitchSmoothingTaunumberThe time constant used for smoothing pitch commands, in milliseconds.
bankSmoothingTaunumberThe time constant used for smoothing bank commands, in milliseconds.

Returns

DefaultFlightDirectorDataProvider

Defined in

src/garminsdk/components/nextgenpfd/horizon/FlightDirectorDataProvider.ts:69

Properties

fdBank

Readonly fdBank: Subscribable<number>

The bank commanded by the flight director, in degrees. Positive values indicate rightward bank.

Implementation of

FlightDirectorDataProvider.fdBank

Defined in

src/garminsdk/components/nextgenpfd/horizon/FlightDirectorDataProvider.ts:35


fdPitch

Readonly fdPitch: Subscribable<number>

The pitch commanded by the flight director, in degrees. Positive values indicated upward pitch.

Implementation of

FlightDirectorDataProvider.fdPitch

Defined in

src/garminsdk/components/nextgenpfd/horizon/FlightDirectorDataProvider.ts:31


isFdActive

Readonly isFdActive: Subscribable<boolean>

Whether the flight director is active.

Implementation of

FlightDirectorDataProvider.isFdActive

Defined in

src/garminsdk/components/nextgenpfd/horizon/FlightDirectorDataProvider.ts:27

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/garminsdk/components/nextgenpfd/horizon/FlightDirectorDataProvider.ts:194


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 has been destroyed.

Defined in

src/garminsdk/components/nextgenpfd/horizon/FlightDirectorDataProvider.ts:85


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 has been destroyed.

Defined in

src/garminsdk/components/nextgenpfd/horizon/FlightDirectorDataProvider.ts:154


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 has been destroyed.

Defined in

src/garminsdk/components/nextgenpfd/horizon/FlightDirectorDataProvider.ts:134


update

update(time): void

Updates this data provider.

Parameters

NameTypeDescription
timenumberThe current real (operating system) time, as a UNIX timestamp in milliseconds.

Returns

void

Defined in

src/garminsdk/components/nextgenpfd/horizon/FlightDirectorDataProvider.ts:177