Skip to main content

Class: LNavObsManager

Defined in: src/sdk/autopilot/lnav/LNavObsManager.ts:13

A manager that controls OBS state in response to control events defined in LNavObsControlEvents.

Constructors​

Constructor​

new LNavObsManager(bus, index, useSimObsState): LNavObsManager

Defined in: src/sdk/autopilot/lnav/LNavObsManager.ts:35

Creates a new instance of LNavObsManager.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.
indexnumberThe index of the LNAV that is associated with the OBS state controlled by this manager.
useSimObsStatebooleanWhether this manager uses the sim's native OBS state. If true, then the manager will forward state changes to the sim's native OBS SimVars via key events and sync the values of the native SimVars to the LVars defined in LNavObsVars. If false, then the manager will directly manipulate the LVars defined in LNavObsVars.

Returns​

LNavObsManager

Methods​

destroy()​

destroy(): void

Defined in: src/sdk/autopilot/lnav/LNavObsManager.ts:180

Destroys this manager. Once destroyed, this manager will no longer control OBS state.

Returns​

void


init()​

init(): void

Defined in: src/sdk/autopilot/lnav/LNavObsManager.ts:62

Initializes this manager. Once initialized, the manager will control OBS state in response to control events received on the event bus.

Returns​

void

Throws​

Error if this manager has been destroyed.