Skip to main content

Class: PfdBaroKnobInputHandler

Handles baro knob inputs for a PFD to change the baro setting for the PFD's altimeter.

Constructors

constructor

new PfdBaroKnobInputHandler(index, bus, altimeterIndex, dataProvider, supportBaroPreselect): PfdBaroKnobInputHandler

Constructor.

Parameters

NameTypeDescription
indexPfdIndexThe index of this handler's parent PFD.
busEventBusThe event bus.
altimeterIndexnumberThe index of the sim altimeter controlled by this handler.
dataProviderAltimeterDataProviderA provider of altimeter data for this handler's parent PFD.
supportBaroPreselectbooleanWhether to support baro setting pre-select in STD BARO mode.

Returns

PfdBaroKnobInputHandler

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/Input/PfdBaroKnobInputHandler.ts:36

Properties

index

Readonly index: PfdIndex

The index of this handler's parent PFD.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/Input/PfdBaroKnobInputHandler.ts:37

Methods

destroy

destroy(): void

Destroys this handler.

Returns

void

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/Input/PfdBaroKnobInputHandler.ts:136


init

init(): Promise<void>

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.

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/PFD/Input/PfdBaroKnobInputHandler.ts:71