Class: GlidePathCalculator2
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator2.ts:70
A calculator that tracks RNAV approach glidepaths for a flight plan.
The calculator attempts to find a glidepath for its flight plan by searching for a reference flight plan leg which defines a published AT/AT OR ABOVE altitude constraint and a non-zero vertical angle. This leg must follow the last leg in the flight plan that is designated as a final approach fix (FAF), if such a leg exists. If multiple legs meet the criteria for a reference leg, then the one that appears last in the flight plan is chosen. If a reference leg is found, then the glidepath reference point is set to the end of the reference leg at an altitude equal to the leg's altitude constraint. The glidepath is then set to be the vertical path of angle equal to the reference leg's published vertical angle that passes through the reference point.
Constructors
Constructor
new GlidePathCalculator2(
flightPlanner
,options
):GlidePathCalculator2
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator2.ts:112
Creates a new instance of GlidePathCalculator2.
Parameters
Parameter | Type | Description |
---|---|---|
flightPlanner | FlightPlanner | The flight planner to use. |
options | Readonly <GlidePathCalculator2Options > | Options with which to configure the calculator. |
Returns
GlidePathCalculator2
Properties
glidepath
readonly
glidepath:Subscribable
<GlidePathDescription
>
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator2.ts:97
A description of this calculator's tracked glidepath.
isGlidepathSynced
readonly
isGlidepathSynced:Subscribable
<boolean
>
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator2.ts:101
Whether this calculator's tracked glidepath is in sync with the tracked flight plan.
Methods
destroy()
destroy():
void
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator2.ts:294
Destroys this calculator.
Returns
void
getDesiredAltitude()
getDesiredAltitude(
distanceFromReference
):undefined
|number
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator2.ts:221
Gets the desired altitude along this calculator's tracked glidepath at a given distance to the glidepath reference point.
Parameters
Parameter | Type | Description |
---|---|---|
distanceFromReference | number | The distance to the glidepath reference point, in meters. |
Returns
undefined
| number
The desired altitude along this calculator's tracked glidepath at the specified distance to the glidepath
reference point, or undefined
if there is no tracked glidepath.
getDistanceToReference()
getDistanceToReference(
globalLegIndex
,distanceFromLegEnd
):undefined
|number
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator2.ts:193
Gets the distance from a point along this calculator's tracked flight plan to the glidepath reference point.
Parameters
Parameter | Type | Description |
---|---|---|
globalLegIndex | number | The global index of the flight plan leg containing the query point. |
distanceFromLegEnd | number | The distance from the query point to the end of its containing leg, in meters. |
Returns
undefined
| number
The distance from the specified point to the glidepath reference point. A positive value indicates the
query point is located prior to the reference point along the flight plan. A negative value indicates the query
point is located after the reference point along the flight plan. If this calculator has no tracked glidepath or
the query point is not valid, then undefined
will be returned.
update()
update():
void
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator2.ts:234
Updates this calculator, syncing the state of its tracked glidepath with its tracked flight plan.
Returns
void