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
Parameter | 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.
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
Parameter | Type | Description |
---|---|---|
altitude | number | MSL altitude |
rule | HoldMaxSpeedRule | hold speed rule |
Returns
[number
, boolean
]
hold speed and whether that number is in Mach