Skip to main content

Class: DefaultFlightDirectorDataProvider

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2/PFD/Components/Horizon/FlightDirectorDataProvider.ts:20

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

Implements​

Constructors​

Constructor​

new DefaultFlightDirectorDataProvider(bus, pitchSmoothingTau, bankSmoothingTau): DefaultFlightDirectorDataProvider

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2/PFD/Components/Horizon/FlightDirectorDataProvider.ts:61

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: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2/PFD/Components/Horizon/FlightDirectorDataProvider.ts:31

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: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2/PFD/Components/Horizon/FlightDirectorDataProvider.ts:27

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: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2/PFD/Components/Horizon/FlightDirectorDataProvider.ts:23

Whether the flight director is active.

Implementation of​

FlightDirectorDataProvider.isFdActive

Methods​

destroy()​

destroy(): void

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2/PFD/Components/Horizon/FlightDirectorDataProvider.ts:164

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: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2/PFD/Components/Horizon/FlightDirectorDataProvider.ts:77

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: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2/PFD/Components/Horizon/FlightDirectorDataProvider.ts:128

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: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2/PFD/Components/Horizon/FlightDirectorDataProvider.ts:108

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: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2/PFD/Components/Horizon/FlightDirectorDataProvider.ts:151

Updates this data provider.

Parameters​

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

Returns​

void