Skip to main content

Class: HoldUtils

Defined in: src/sdk/navigation/HoldUtils.ts:20

Utilities for hold entries

Constructors

Constructor

new HoldUtils(): HoldUtils

Returns

HoldUtils

Methods

getDirectionString()

static getDirectionString(course, short): string

Defined in: src/sdk/navigation/HoldUtils.ts:30

Gets a hold direction UI string for a given inbound course.

Parameters

ParameterTypeDefault valueDescription
coursenumberundefinedThe inbound course to get the string for.
shortbooleanfalseWhether to get the string in short form (single letter)

Returns

string

A UI human-readable course string.


getHoldSpeed()

static getHoldSpeed(altitude, rule): [number, boolean]

Defined in: src/sdk/navigation/HoldUtils.ts:60

Obtains hold speed (number and isMach) depending on altitude and speed rule (ICAO or FAA)

Parameters

ParameterTypeDescription
altitudenumberMSL altitude
ruleHoldMaxSpeedRulehold speed rule

Returns

[number, boolean]

hold speed and whether that number is in Mach