Skip to main content

Class: DefaultFlightPathAnticipatedDataCalculator

Defined in: src/sdk/flightplan/flightpath/DefaultFlightPathAnticipatedDataCalculator.ts:37

Calculates the anticipated speeds for given legs.

Implements​

Constructors​

Constructor​

new DefaultFlightPathAnticipatedDataCalculator(bus, aircraftData): DefaultFlightPathAnticipatedDataCalculator

Defined in: src/sdk/flightplan/flightpath/DefaultFlightPathAnticipatedDataCalculator.ts:49

Creates *

Parameters​

ParameterTypeDescription
busEventBusevent bus
aircraftDataDefaultFlightPathAnticipatedDataCalculatorOptionsaircraft specific data

Returns​

DefaultFlightPathAnticipatedDataCalculator

Methods​

getAnticipatedData()​

getAnticipatedData(legs, startIndex, endIndex, dataContext, out): readonly FlightPathAnticipatedData[]

Defined in: src/sdk/flightplan/flightpath/DefaultFlightPathAnticipatedDataCalculator.ts:81

Calculates anticipated speed and wind data. For this calculator, we always cover all the legs and ignore the start- and end-index.

Parameters​

ParameterTypeDescription
legsLegDefinition[]fp legs
startIndexnumberfirst index to calculate
endIndexnumberlast index to calculate
dataContextFlightPathAnticipatedDataContextdata for the calculation
outreadonly FlightPathAnticipatedData[]input and output array

Returns​

readonly FlightPathAnticipatedData[]

the array which was provided as out param

Implementation of​

FlightPathAnticipatedDataCalculator.getAnticipatedData