Skip to main content

Class: GlidePathCalculator

Defined in: src/sdk/autopilot/calculators/GlidePathCalculator.ts:15

Handles the calculation of a Glide Path.

Constructors​

Constructor​

new GlidePathCalculator(bus, flightPlanner, primaryPlanIndex): GlidePathCalculator

Defined in: src/sdk/autopilot/calculators/GlidePathCalculator.ts:30

Creates a new instance of GlidePathCalculator.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.
flightPlannerFlightPlannerThe flight planner to use with this instance.
primaryPlanIndexnumberThe primary plan index to use for calculating GlidePath.

Returns​

GlidePathCalculator

Properties​

glidepathFpa​

glidepathFpa: number = 0

Defined in: src/sdk/autopilot/calculators/GlidePathCalculator.ts:22

Methods​

getDesiredGlidepathAltitude()​

getDesiredGlidepathAltitude(distance): number

Defined in: src/sdk/autopilot/calculators/GlidePathCalculator.ts:151

Gets the Glidepath desired altitude in meters.

Parameters​

ParameterTypeDescription
distancenumberThe 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:101

Gets the current Glidepath distance in meters.

Parameters​

ParameterTypeDescription
indexnumberThe global index of the active leg.
distanceAlongLegnumberThe 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:159

Gets the Glidepath runway altitude in meters.

Returns​

number

The Glidepath runway altitude in meters.