Skip to main content

Class: PfdBaroKnobInputHandler

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Input/PfdBaroKnobInputHandler.ts:9

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

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Input/PfdBaroKnobInputHandler.ts:36

Constructor.

Parameters

ParameterTypeDescription
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

Properties

index

readonly index: PfdIndex

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Input/PfdBaroKnobInputHandler.ts:37

The index of this handler's parent PFD.

Methods

destroy()

destroy(): void

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Input/PfdBaroKnobInputHandler.ts:136

Destroys this handler.

Returns

void


init()

init(): Promise<void>

Defined in: workingtitle-instruments-g3000/html_ui/PFD/Input/PfdBaroKnobInputHandler.ts:71

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.