Skip to main content

Class: DefaultFlightDirectorDataProvider

Defined in: src/garminsdk/components/nextgenpfd/horizon/FlightDirectorDataProvider.ts:24

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

Implements

Constructors

Constructor

new DefaultFlightDirectorDataProvider(bus, pitchSmoothingTau, bankSmoothingTau): DefaultFlightDirectorDataProvider

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

Constructor.

Parameters

ParameterTypeDescription
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

Properties

fdBank

readonly fdBank: Subscribable<number>

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

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

Implementation of

FlightDirectorDataProvider.fdBank


fdPitch

readonly fdPitch: Subscribable<number>

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

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

Implementation of

FlightDirectorDataProvider.fdPitch


isFdActive

readonly isFdActive: Subscribable<boolean>

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

Whether the flight director is active.

Implementation of

FlightDirectorDataProvider.isFdActive

Methods

destroy()

destroy(): void

Defined in: src/garminsdk/components/nextgenpfd/horizon/FlightDirectorDataProvider.ts:194

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

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


pause()

pause(): void

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

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.


resume()

resume(): void

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

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.


update()

update(time): void

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

Updates this data provider.

Parameters

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

Returns

void