Skip to main content

Class: AltimeterBaroKeyEventHandler

Defined in: workingtitle-instruments-epic2/shared/Misc/AltimeterBaroKeyEventHandler.ts:32

A handler for altimeter barometric setting key events.

Constructors

Constructor

new AltimeterBaroKeyEventHandler(bus, managedAltimeterInfos, pfdSettings, activePerfPlan): AltimeterBaroKeyEventHandler

Defined in: workingtitle-instruments-epic2/shared/Misc/AltimeterBaroKeyEventHandler.ts:63

Constructor.

Parameters

ParameterTypeDescription
busEventBusThe event bus.
managedAltimeterInfosIterable<Readonly<AltimeterBaroInfo>>Information describing the altimeters to be managed by the handler.
pfdSettingsPfdUserSettingManagerThe PFD settings for this PFD.
activePerfPlanEpic2PerformancePlanThe active performance plan.

Returns

AltimeterBaroKeyEventHandler

Methods

destroy()

destroy(): void

Defined in: workingtitle-instruments-epic2/shared/Misc/AltimeterBaroKeyEventHandler.ts:356

Destroys this handler.

Returns

void


init()

init(): Promise<void>

Defined in: workingtitle-instruments-epic2/shared/Misc/AltimeterBaroKeyEventHandler.ts:107

Initializes this handler. Once this handler is initialized, it will change the baro setting for this handler's PFD's altimeter in response to baro knob input events.

Returns

Promise<void>

A Promise which will be fulfilled when this handler is fully initialized, or rejected if this handler is destroyed before then.


onBaroUnitChanged()

onBaroUnitChanged(): void

Defined in: workingtitle-instruments-epic2/shared/Misc/AltimeterBaroKeyEventHandler.ts:338

Handles setting the baro correction to the nearest hPa or in.Hg when the correction unit changes.

Returns

void