Class: GarminAPUtils
A utility class for working with Garmin autopilots.
Constructors
constructor
• new GarminAPUtils(): GarminAPUtils
Returns
Methods
lnavIntercept
▸ lnavIntercept(dtk
, xtk
, tas
): number
Calculates intercept angles for LNAV.
Parameters
Name | Type | Description |
---|---|---|
dtk | number | The desired track, in degrees true. |
xtk | number | The cross-track error, in nautical miles. Negative values indicate that the plane is to the left of the desired track. |
tas | number | The true airspeed of the plane, in knots. |
Returns
number
The intercept angle, in degrees, to capture the desired track from the navigation signal.
Defined in
src/garminsdk/autopilot/GarminAPUtils.ts:34
localizerIntercept
▸ localizerIntercept(xtk
, tas
): number
Calculates intercept angles for localizers.
Parameters
Name | Type | Description |
---|---|---|
xtk | number | The cross-track error of the plane from the desired track, in nautical miles. Positive values indicate indicate that the plane is to the right of the track. |
tas | number | The true airspeed of the plane, in knots. |
Returns
number
The intercept angle, in degrees, to capture the localizer course.
Defined in
src/garminsdk/autopilot/GarminAPUtils.ts:45
navIntercept
▸ navIntercept(distanceToSource
, deflection
, xtk
, tas
, isLoc
): number
Calculates intercept angles for radio nav.
Parameters
Name | Type | Description |
---|---|---|
distanceToSource | number | The distance from the plane to the source of the navigation signal, in nautical miles. |
deflection | number | The lateral deflection of the desired track relative to the plane, normalized from -1 to 1 . Positive values indicate that the desired track is to the right of the plane. |
xtk | number | The cross-track error of the plane from the desired track, in nautical miles. Positive values indicate indicate that the plane is to the right of the track. |
tas | number | The true airspeed of the plane, in knots. |
isLoc | boolean | Whether the source of the navigation signal is a localizer. Defaults to false . |
Returns
number
The intercept angle, in degrees, to capture the desired track from the navigation signal.
Defined in
src/garminsdk/autopilot/GarminAPUtils.ts:18