Skip to main content

Class: HoldUtils

Utilities for hold entries

Constructors

constructor

new HoldUtils(): HoldUtils

Returns

HoldUtils

Methods

getDirectionString

getDirectionString(course, short?): string

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

Parameters

NameTypeDefault 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.

Defined in

src/sdk/navigation/HoldUtils.ts:30


getHoldSpeed

getHoldSpeed(altitude, rule): [speed: number, isMach: boolean]

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

Parameters

NameTypeDescription
altitudenumberMSL altitude
ruleHoldMaxSpeedRulehold speed rule

Returns

[speed: number, isMach: boolean]

hold speed and whether that number is in Mach

Defined in

src/sdk/navigation/HoldUtils.ts:60