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
| Parameter | Type | Description |
|---|---|---|
currentPhase | APNavDirectorPhase | undefined | The current phase, or undefined if no phase has been selected since the last time the director was activated. |
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 that the plane is to the right of the track. |
course | number | The true course of the desired track, in degrees. |
track | number | The actual true ground track of the airplane, in degrees. |
isLoc | boolean | Whether the source of the tracked navigation signal is a localizer. |
isInZoneOfConfusion | boolean | Whether 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
The phase to use while tracking the navigation signal.