Class: LNavUtils
Defined in: src/sdk/autopilot/lnav/LNavUtils.ts:9
A utility class for working with LNAV.
Constructors
Constructor
new LNavUtils():
LNavUtils
Returns
LNavUtils
Methods
getEventBusTopicSuffix()
staticgetEventBusTopicSuffix<Index>(index):Indexextends0?"":`_${Index}`
Defined in: src/sdk/autopilot/lnav/LNavUtils.ts:58
Gets the suffix for event bus topics published by a LNAV computer with a given index.
Type Parameters
| Type Parameter |
|---|
Index extends number |
Parameters
| Parameter | Type | Description |
|---|---|---|
index | Index | The index of the LNAV computer for which to get the suffix. |
Returns
Index extends 0 ? "" : `_${Index}`
The suffix for event bus topics published by a LNAV computer with the specified index.
getVectorsForTransitionMode()
staticgetVectorsForTransitionMode(calc,mode,isSuspended):FlightPathVector[]
Defined in: src/sdk/autopilot/lnav/LNavUtils.ts:17
Gets the flight path vectors to navigate for a leg and a given transition mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
calc | LegCalculations | The calculations for a flight plan leg. |
mode | LNavTransitionMode | A transition mode. |
isSuspended | boolean | Whether sequencing is suspended. |
Returns
The flight path vectors to navigate for the given leg and transition mode.
isValidLNavIndex()
staticisValidLNavIndex(index):boolean
Defined in: src/sdk/autopilot/lnav/LNavUtils.ts:49
Checks whether an index is a valid LNAV computer index.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | The index to check. |
Returns
boolean
Whether the specified index is a valid LNAV computer index.
lnavTrackingStateEquals()
staticlnavTrackingStateEquals(a,b):boolean
Defined in: src/sdk/autopilot/lnav/LNavUtils.ts:36
Checks whether two LNAV tracking states are equal.
Parameters
| Parameter | Type | Description |
|---|---|---|
a | LNavTrackingState | The first state. |
b | LNavTrackingState | The second state. |
Returns
boolean
Whether the two LNAV tracking states are equal.