Interface: LNavOverrideModule
Defined in: src/sdk/autopilot/lnav/LNavOverrideModule.ts:32
A module that can optionally override an LNAV computer's default tracking behavior.
Methods
activate()
activate(
lnavState,aircraftState,eventBusTopicRecord):void
Defined in: src/sdk/autopilot/lnav/LNavOverrideModule.ts:59
Activates this module. When this module is activated, it is responsible for generating steering commands and publishing LNAV data to the event bus.
Parameters
| Parameter | Type | Description |
|---|---|---|
lnavState | LNavState | The current LNAV state. |
aircraftState | Readonly<LNavAircraftState> | The current state of the airplane. |
eventBusTopicRecord | LNavEventBusTopicPublisherRecord | A record of publishers to use to publish data to LNAV event bus topics. |
Returns
void
canActivate()
canActivate(
lnavState,aircraftState):boolean
Defined in: src/sdk/autopilot/lnav/LNavOverrideModule.ts:50
Checks whether this module can be activated.
Parameters
| Parameter | Type | Description |
|---|---|---|
lnavState | LNavState | The current LNAV state. |
aircraftState | Readonly<LNavAircraftState> | The current state of the airplane. |
Returns
boolean
deactivate()
deactivate(
lnavState):void
Defined in: src/sdk/autopilot/lnav/LNavOverrideModule.ts:66
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
| Parameter | Type | Description |
|---|---|---|
lnavState | LNavState | The current LNAV state. |
Returns
void
getSteerCommand()
getSteerCommand():
Readonly<LNavSteerCommand>
Defined in: src/sdk/autopilot/lnav/LNavOverrideModule.ts:37
Gets this module's generated steering command.
Returns
Readonly<LNavSteerCommand>
This module's generated steering command.
isActive()
isActive():
boolean
Defined in: src/sdk/autopilot/lnav/LNavOverrideModule.ts:43
Checks whether this module is active.
Returns
boolean
Whether this module is active.
update()
update(
lnavState,aircraftState,eventBusTopicRecord?):void
Defined in: src/sdk/autopilot/lnav/LNavOverrideModule.ts:75
Updates this module.
Parameters
| Parameter | Type | Description |
|---|---|---|
lnavState | LNavState | The current LNAV state. |
aircraftState | Readonly<LNavAircraftState> | The current state of the airplane. |
eventBusTopicRecord? | LNavEventBusTopicPublisherRecord | A record of publishers to use to publish data to LNAV event bus topics. The record is only provided when the module is active. |
Returns
void