Skip to main content

Interface: LNavOverrideModule

A module that can optionally override an LNAV computer's default tracking behavior.

Methods

activate

activate(lnavState, aircraftState): void

Activates this module. When this module is activated, it is responsible for generating steering commands and publishing LNAV data to the event bus.

Parameters

NameTypeDescription
lnavStateLNavStateThe current LNAV state.
aircraftStateReadonly<LNavAircraftState>The current state of the airplane.

Returns

void

Defined in

src/sdk/autopilot/lnav/LNavOverrideModule.ts:32


canActivate

canActivate(lnavState, aircraftState): boolean

Checks whether this module can be activated.

Parameters

NameTypeDescription
lnavStateLNavStateThe current LNAV state.
aircraftStateReadonly<LNavAircraftState>The current state of the airplane.

Returns

boolean

Defined in

src/sdk/autopilot/lnav/LNavOverrideModule.ts:24


deactivate

deactivate(lnavState): void

Deactivates this module. When this module is deactivated, it is no longer responsible for generating steering commands or publishing LNAV data to the event bus.

Parameters

NameTypeDescription
lnavStateLNavStateThe current LNAV state.

Returns

void

Defined in

src/sdk/autopilot/lnav/LNavOverrideModule.ts:39


getSteerCommand

getSteerCommand(): Readonly<LNavSteerCommand>

Gets this module's generated steering command.

Returns

Readonly<LNavSteerCommand>

This module's generated steering command.

Defined in

src/sdk/autopilot/lnav/LNavOverrideModule.ts:11


isActive

isActive(): boolean

Checks whether this module is active.

Returns

boolean

Whether this module is active.

Defined in

src/sdk/autopilot/lnav/LNavOverrideModule.ts:17


update

update(lnavState, aircraftState): void

Updates this module.

Parameters

NameTypeDescription
lnavStateLNavStateThe current LNAV state.
aircraftStateReadonly<LNavAircraftState>The current state of the airplane.

Returns

void

Defined in

src/sdk/autopilot/lnav/LNavOverrideModule.ts:46