Class: LNavUtils
A utility class for working with LNAV.
Constructors
constructor
• new LNavUtils(): LNavUtils
Returns
Methods
getEventBusTopicSuffix
▸ getEventBusTopicSuffix<Index
>(index
): Index
extends 0
? ""
: `_${Index}`
Gets the suffix for event bus topics published by a LNAV computer with a given index.
Type parameters
Name | Type |
---|---|
Index | extends number |
Parameters
Name | 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.
Defined in
src/sdk/autopilot/lnav/LNavUtils.ts:57
getVectorsForTransitionMode
▸ getVectorsForTransitionMode(calc
, mode
, isSuspended
): CircleVector
[]
Gets the flight path vectors to navigate for a leg and a given transition mode.
Parameters
Name | 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.
Defined in
src/sdk/autopilot/lnav/LNavUtils.ts:16
isValidLNavIndex
▸ isValidLNavIndex(index
): boolean
Checks whether an index is a valid LNAV computer index.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index to check. |
Returns
boolean
Whether the specified index is a valid LNAV computer index.
Defined in
src/sdk/autopilot/lnav/LNavUtils.ts:48
lnavTrackingStateEquals
▸ lnavTrackingStateEquals(a
, b
): boolean
Checks whether two LNAV tracking states are equal.
Parameters
Name | Type | Description |
---|---|---|
a | LNavTrackingState | The first state. |
b | LNavTrackingState | The second state. |
Returns
boolean
Whether the two LNAV tracking states are equal.
Defined in
src/sdk/autopilot/lnav/LNavUtils.ts:35