Skip to main content

Class: DefaultTemperatureInfoDataProvider

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TemperatureInfo/TemperatureInfoDataProvider.ts:24

A default implementation of TemperatureInfoDataProvider.

Implements

Constructors

Constructor

new DefaultTemperatureInfoDataProvider(bus, adcIndex): DefaultTemperatureInfoDataProvider

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TemperatureInfo/TemperatureInfoDataProvider.ts:56

Constructor.

Parameters

ParameterTypeDescription
busEventBusThe event bus.
adcIndexnumber | Subscribable<number>The index of the ADC that is the source of this provider's airspeed data.

Returns

DefaultTemperatureInfoDataProvider

Properties

deltaIsa

readonly deltaIsa: Subscribable<number>

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TemperatureInfo/TemperatureInfoDataProvider.ts:36

The current deviation of outside air temperature from ISA, in degrees Celsius.

Implementation of

TemperatureInfoDataProvider.deltaIsa


isDataFailed

readonly isDataFailed: Subscribable<boolean>

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TemperatureInfo/TemperatureInfoDataProvider.ts:40

Whether this provider's data is in a failed state.

Implementation of

TemperatureInfoDataProvider.isDataFailed


oat

readonly oat: Subscribable<number>

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TemperatureInfo/TemperatureInfoDataProvider.ts:27

The current outside (static) air temperature, in degrees Celsius.

Implementation of

TemperatureInfoDataProvider.oat

Methods

destroy()

destroy(): void

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TemperatureInfo/TemperatureInfoDataProvider.ts:146

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-g3000/html_ui/PFD/Components/BottomInfoPanel/TemperatureInfo/TemperatureInfoDataProvider.ts:70

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 is dead.


pause()

pause(): void

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TemperatureInfo/TemperatureInfoDataProvider.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 is dead.


resume()

resume(): void

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Components/BottomInfoPanel/TemperatureInfo/TemperatureInfoDataProvider.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 is dead.