Type Alias: APBackCourseDirectorPhaseSelectorFunc()
APBackCourseDirectorPhaseSelectorFunc = (
currentPhase,deflection,xtk,course,track) =>APBackCourseDirectorPhase
Defined in: src/sdk/autopilot/directors/APBackCourseDirector.ts:151
Selects a phase for APBackCourseDirector to use while it is active and tracking a localizer signal.
Parameters
| Parameter | Type | Description |
|---|---|---|
currentPhase | APBackCourseDirectorPhase | 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. |
Returns
The phase to use while tracking the navigation signal.