Skip to main content

Class: DefaultAttitudeDataProvider

Defined in: workingtitle-instruments-epic2/shared/Instruments/AttitudeDataProvider.ts:18

An attitude data provider implementation.

Implements​

Constructors​

Constructor​

new DefaultAttitudeDataProvider(bus, adahrsIndex): DefaultAttitudeDataProvider

Defined in: workingtitle-instruments-epic2/shared/Instruments/AttitudeDataProvider.ts:66

Ctor.

Parameters​

ParameterTypeDescription
busEventBusThe instrument event bus.
adahrsIndexAdahrsSystemChannel | Subscribable<AdahrsSystemChannel>The ADAHRS channel to use.

Returns​

DefaultAttitudeDataProvider

Properties​

dataValid​

readonly dataValid: Subscribable<boolean>

Defined in: workingtitle-instruments-epic2/shared/Instruments/AttitudeDataProvider.ts:43

Whether the attitude data subjects are all valid.

Implementation of​

AttitudeDataProvider.dataValid


excessiveAttitude​

readonly excessiveAttitude: Subscribable<boolean>

Defined in: workingtitle-instruments-epic2/shared/Instruments/AttitudeDataProvider.ts:40

Whether the aircraft is in an excessive attitude condition

Implementation of​

AttitudeDataProvider.excessiveAttitude


pitch​

readonly pitch: Subscribable<null | number>

Defined in: workingtitle-instruments-epic2/shared/Instruments/AttitudeDataProvider.ts:37

The current pitch of the airplane in degrees, or null when invalid. Positive values indicate downward pitch.

Implementation of​

AttitudeDataProvider.pitch


roll​

readonly roll: Subscribable<null | number>

Defined in: workingtitle-instruments-epic2/shared/Instruments/AttitudeDataProvider.ts:34

The current roll (bank) of the airplane in degrees, or null when invalid. Positive values indicate leftward roll.

Implementation of​

AttitudeDataProvider.roll

Methods​

init()​

init(): void

Defined in: workingtitle-instruments-epic2/shared/Instruments/AttitudeDataProvider.ts:98

Returns​

void

Inherit Doc​

Implementation of​

Instrument.init


onUpdate()​

onUpdate(): void

Defined in: workingtitle-instruments-epic2/shared/Instruments/AttitudeDataProvider.ts:103

Returns​

void

Inherit Doc​

Implementation of​

Instrument.onUpdate


pause()​

pause(): void

Defined in: workingtitle-instruments-epic2/shared/Instruments/AttitudeDataProvider.ts:141

Pause the data output.

Returns​

void


resume()​

resume(): void

Defined in: workingtitle-instruments-epic2/shared/Instruments/AttitudeDataProvider.ts:148

Resume the data output.

Returns​

void