Skip to main content

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

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:21

Methods

getDesiredGlidepathAltitude()

getDesiredGlidepathAltitude(distance): number

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

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:100

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:158

Gets the Glidepath runway altitude in meters.

Returns

number

The Glidepath runway altitude in meters.