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
Name | 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
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