Skip to main content

Class: LNavObsManager

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

Constructors

constructor

new LNavObsManager(bus, index, useSimObsState): LNavObsManager

Creates a new instance of LNavObsManager.

Parameters

NameTypeDescription
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

Defined in

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

Methods

destroy

destroy(): void

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

Returns

void

Defined in

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


init

init(): void

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.

Defined in

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