Skip to main content

Class: Epic2APUtils

Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2APUtils.ts:6

A utility class for working with Epic2 autopilots.

Constructors

Constructor

new Epic2APUtils(): Epic2APUtils

Returns

Epic2APUtils

Methods

static lnavInterceptCurve(dtk, xtk, tas): number

Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2APUtils.ts:34

Calculates intercept angles for LNAV.

Parameters

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


localizerInterceptCurve()

static localizerInterceptCurve(deflection, xtk, tas): number

Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2APUtils.ts:47

Calculates intercept angles for localizers.

Parameters

ParameterTypeDescription
deflectionnumberThe lateral deflection of the desired track relative to the plane, normalized from -1 to 1. Negative values indicate that the desired track is to the left 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.

Returns

number

The intercept angle, in degrees, to capture the localizer course.


static navInterceptCurve(distanceToSource, deflection, xtk, tas, isLoc?): number

Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2APUtils.ts:18

Calculates intercept angles for radio nav.

Parameters

ParameterTypeDescription
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.
isLoc?booleanWhether 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.