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
Parameter | Type | Description |
---|---|---|
index | PfdIndex | The index of this handler's parent PFD. |
bus | EventBus | The event bus. |
altimeterIndex | number | The index of the sim altimeter controlled by this handler. |
dataProvider | AltimeterDataProvider | A provider of altimeter data for this handler's parent PFD. |
supportBaroPreselect | boolean | Whether 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.