Class: GlidePathCalculator
Handles the calculation of a Glide Path.
Constructors
constructor
• new GlidePathCalculator(bus
, flightPlanner
, primaryPlanIndex
): GlidePathCalculator
Creates a new instance of GlidePathCalculator.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
flightPlanner | FlightPlanner <any > | The flight planner to use with this instance. |
primaryPlanIndex | number | The primary plan index to use for calculating GlidePath. |
Returns
Defined in
src/sdk/autopilot/calculators/GlidePathCalculator.ts:29
Properties
glidepathFpa
• glidepathFpa: number
= 0
Defined in
src/sdk/autopilot/calculators/GlidePathCalculator.ts:21
Methods
getDesiredGlidepathAltitude
▸ getDesiredGlidepathAltitude(distance
): number
Gets the Glidepath desired altitude in meters.
Parameters
Name | Type | Description |
---|---|---|
distance | number | The current Glidepath distance in meters. |
Returns
number
The current Glidepath desired altitude in meters.
Defined in
src/sdk/autopilot/calculators/GlidePathCalculator.ts:150
getGlidepathDistance
▸ getGlidepathDistance(index
, distanceAlongLeg
): number
Gets the current Glidepath distance in meters.
Parameters
Name | 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.
Defined in
src/sdk/autopilot/calculators/GlidePathCalculator.ts:100
getRunwayAltitude
▸ getRunwayAltitude(): number
Gets the Glidepath runway altitude in meters.
Returns
number
The Glidepath runway altitude in meters.
Defined in
src/sdk/autopilot/calculators/GlidePathCalculator.ts:158