Class: GlidePathCalculator
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator.ts:14
Handles the calculation of a Glide Path.
Constructors
Constructor
new GlidePathCalculator(
bus
,flightPlanner
,primaryPlanIndex
):GlidePathCalculator
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator.ts:29
Creates a new instance of GlidePathCalculator.
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
flightPlanner | FlightPlanner | The flight planner to use with this instance. |
primaryPlanIndex | number | The primary plan index to use for calculating GlidePath. |
Returns
GlidePathCalculator
Properties
glidepathFpa
glidepathFpa:
number
=0
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator.ts:21
Methods
getDesiredGlidepathAltitude()
getDesiredGlidepathAltitude(
distance
):number
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator.ts:150
Gets the Glidepath desired altitude in meters.
Parameters
Parameter | Type | Description |
---|---|---|
distance | number | The current Glidepath distance in meters. |
Returns
number
The current Glidepath desired altitude in meters.
getGlidepathDistance()
getGlidepathDistance(
index
,distanceAlongLeg
):number
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator.ts:100
Gets the current Glidepath distance in meters.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The global index of the active leg. |
distanceAlongLeg | number | The aircraft's current distance along the active leg, in meters. |
Returns
number
The current Glidepath distance in meters.
getRunwayAltitude()
getRunwayAltitude():
number
Defined in: src/sdk/autopilot/calculators/GlidePathCalculator.ts:158
Gets the Glidepath runway altitude in meters.
Returns
number
The Glidepath runway altitude in meters.