Class: HoldUtils
Utilities for hold entries
Constructors
constructor
• new HoldUtils(): HoldUtils
Returns
Methods
getDirectionString
▸ getDirectionString(course
, short?
): string
Gets a hold direction UI string for a given inbound course.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
course | number | undefined | The inbound course to get the string for. |
short | boolean | false | Whether 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
Name | Type | Description |
---|---|---|
altitude | number | MSL altitude |
rule | HoldMaxSpeedRule | hold speed rule |
Returns
[speed: number, isMach: boolean]
hold speed and whether that number is in Mach
Defined in
src/sdk/navigation/HoldUtils.ts:60