Class: LNavUtils
Defined in: src/sdk/autopilot/lnav/LNavUtils.ts:8
A utility class for working with LNAV.
Constructors
Constructor
new LNavUtils():
LNavUtils
Returns
LNavUtils
Methods
getEventBusTopicSuffix()
static
getEventBusTopicSuffix<Index
>(index
):Index
extends0
?""
:`_${Index}`
Defined in: src/sdk/autopilot/lnav/LNavUtils.ts:57
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()
static
getVectorsForTransitionMode(calc
,mode
,isSuspended
):CircleVector
[]
Defined in: src/sdk/autopilot/lnav/LNavUtils.ts:16
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()
static
isValidLNavIndex(index
):boolean
Defined in: src/sdk/autopilot/lnav/LNavUtils.ts:48
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()
static
lnavTrackingStateEquals(a
,b
):boolean
Defined in: src/sdk/autopilot/lnav/LNavUtils.ts:35
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.