Skip to main content

Type Alias: APNavDirectorPhaseSelectorFunc()

APNavDirectorPhaseSelectorFunc = (currentPhase, deflection, xtk, course, track, isLoc, isInZoneOfConfusion) => APNavDirectorPhase

Defined in: src/sdk/autopilot/directors/APNavDirector.ts:163

Selects a phase for APNavDirector to use while it is active and tracking a navigation signal.

Parameters

ParameterTypeDescription
currentPhaseAPNavDirectorPhase | undefinedThe current phase, or undefined if no phase has been selected since the last time the director was activated.
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 that the plane is to the right of the track.
coursenumberThe true course of the desired track, in degrees.
tracknumberThe actual true ground track of the airplane, in degrees.
isLocbooleanWhether the source of the tracked navigation signal is a localizer.
isInZoneOfConfusionbooleanWhether the source of the tracked navigation signal is a VOR and the airplane's position is close enough to the VOR to render lateral deflection values unreliable.

Returns

APNavDirectorPhase

The phase to use while tracking the navigation signal.