Skip to main content

Class: GlidePathCalculator

Handles the calculation of a Glide Path.

Constructors

constructor

new GlidePathCalculator(bus, flightPlanner, primaryPlanIndex): GlidePathCalculator

Creates a new instance of GlidePathCalculator.

Parameters

NameTypeDescription
busEventBusThe event bus.
flightPlannerFlightPlanner<any>The flight planner to use with this instance.
primaryPlanIndexnumberThe primary plan index to use for calculating GlidePath.

Returns

GlidePathCalculator

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

NameTypeDescription
distancenumberThe 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

NameTypeDescription
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.

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