Skip to main content

Class: Epic2VnavUtils

Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2VnavUtils.ts:14

Utilities for Epic 2 VNAV

Constructors​

Constructor​

new Epic2VnavUtils(): Epic2VnavUtils

Returns​

Epic2VnavUtils

Methods​

calculateCruiseToc()​

static calculateCruiseToc(predictionFunctions, lateralPlan, verticalPlan, activeLegIndex, distanceAlongLeg, currentGroundSpeed, currentAltitude, currentWeight, cruiseAltitude, currentVS, out): TocBocDetails

Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2VnavUtils.ts:85

Calculates the cruise TOC

Parameters​

ParameterTypeDescription
predictionFunctionsEpic2VerticalPredictionFunctionsThe aircraft specific vertical prediction functions
lateralPlanFlightPlanThe lateral flight plan.
verticalPlanVerticalFlightPlanThe vertical flight plan.
activeLegIndexnumberThe current active leg index.
distanceAlongLegnumberThe distance the plane is along the current leg in meters.
currentGroundSpeednumberThe current ground speed, in knots.
currentAltitudenumberThe current indicated altitude in meters.
currentWeightnumberThe current weight in pounds
cruiseAltitudenumberThe cruise altitude, in meters.
currentVSnumberThe current VS in feet
outTocBocDetailsThe object to which to write the TOC/BOC details.

Returns​

TocBocDetails

The VNAV TOC/BOC to cruise altitude details.


getVerticalPredictionFunctions()​

static getVerticalPredictionFunctions(pluginSystem): Epic2VerticalPredictionFunctions

Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2VnavUtils.ts:20

Gets an interface which defines the various vnav prediction functions

Parameters​

ParameterTypeDescription
pluginSystemPluginSystem<Epic2AvionicsPlugin<Epic2PluginBinder>, Epic2PluginBinder>The upper MFD plugin system

Returns​

Epic2VerticalPredictionFunctions

An interface of aircraft specific vertical predictions