Skip to main content

Class: LNavUtils

A utility class for working with LNAV.

Constructors

constructor

new LNavUtils(): LNavUtils

Returns

LNavUtils

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

NameType
Indexextends number

Parameters

NameTypeDescription
indexIndexThe 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

NameTypeDescription
calcLegCalculationsThe calculations for a flight plan leg.
modeLNavTransitionModeA transition mode.
isSuspendedbooleanWhether sequencing is suspended.

Returns

CircleVector[]

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

NameTypeDescription
indexnumberThe 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(a, b): boolean

Checks whether two LNAV tracking states are equal.

Parameters

NameTypeDescription
aLNavTrackingStateThe first state.
bLNavTrackingStateThe second state.

Returns

boolean

Whether the two LNAV tracking states are equal.

Defined in

src/sdk/autopilot/lnav/LNavUtils.ts:35