Skip to main content

Class: GarminAPUtils

A utility class for working with Garmin autopilots.

Constructors

constructor

new GarminAPUtils(): GarminAPUtils

Returns

GarminAPUtils

Methods

lnavIntercept(dtk, xtk, tas): number

Calculates intercept angles for LNAV.

Parameters

NameTypeDescription
dtknumberThe desired track, in degrees true.
xtknumberThe cross-track error, in nautical miles. Negative values indicate that the plane is to the left of the desired track.
tasnumberThe 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

NameTypeDescription
xtknumberThe 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.
tasnumberThe 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(distanceToSource, deflection, xtk, tas, isLoc): number

Calculates intercept angles for radio nav.

Parameters

NameTypeDescription
distanceToSourcenumberThe distance from the plane to the source of the navigation signal, in nautical miles.
deflectionnumberThe 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.
xtknumberThe 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.
tasnumberThe true airspeed of the plane, in knots.
isLocbooleanWhether 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