Skip to main content

Class: WT21FixInfoCalculator

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoCalculator.ts:10

A calculator for fix info intersections and predictions data

Constructors

Constructor

new WT21FixInfoCalculator(bus, maxDistance, activeRoutePredictor?): WT21FixInfoCalculator

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoCalculator.ts:40

Instantiates a Fix Info Calculator

Parameters

ParameterTypeDescription
busEventBusThe event bus
maxDistancenumberMaximum distance in metres
activeRoutePredictor?FlightPlanPredictionsProviderThe active route predictor

Returns

WT21FixInfoCalculator

Properties

trueRef

readonly trueRef: Subject<boolean>

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoCalculator.ts:29

FIXME hook up when true ref exists

Methods

calculateAllIntersections()

calculateAllIntersections(plan, fixInfos): void

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoCalculator.ts:419

Calculates intersections with the active flight plan for fix infos

Parameters

ParameterTypeDescription
planFlightPlanThe active flight plan
fixInfosWT21FixInfoData[]All of the fix infos

Returns

void


calculateEtaAltitudePrediction()

calculateEtaAltitudePrediction(plan, fixInfo, calcData): void

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoCalculator.ts:58

Calculates the time or altitude distance prediction

Parameters

ParameterTypeDescription
planFlightPlanActive flight plan
fixInfoWT21FixInfoDataThe pilot-entered input data
calcDataWT21FixInfoCalculatedDataOutput data for the CDU page

Returns

void


calculateFixPredictions()

calculateFixPredictions(plan, fixInfo, calcData): void

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoCalculator.ts:141

Calculates fix info predictions and intersections

Parameters

ParameterTypeDescription
planFlightPlanActive flight plan
fixInfoWT21FixInfoDataThe pilot-entered input data
calcDataWT21FixInfoCalculatedDataOutput data for the CDU page

Returns

void


calculateIntersectionBearingDistances()

calculateIntersectionBearingDistances(fixInfos, calcDatas): void

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoCalculator.ts:360

Calculates the bearings and distances from the fix to flight plan intersections

Parameters

ParameterTypeDescription
fixInfosWT21FixInfoData[]All of the fix infos
calcDatasWT21FixInfoCalculatedData[]Corresponding calculated data objects

Returns

void


clearFixIntersections()

clearFixIntersections(fixInfo): void

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoCalculator.ts:394

Clear data from a calculated flight plan intersection

Parameters

ParameterTypeDescription
fixInfoWT21FixInfoDataThe fix info to clear

Returns

void


clearIntersection()

clearIntersection(intersection): void

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoCalculator.ts:385

Clear data from a calculated flight plan intersection

Parameters

ParameterTypeDescription
intersectionFlightPlanIntersectionFlight plan intersection object to clear

Returns

void


isIntersectionValid()

isIntersectionValid(intersection): boolean

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoCalculator.ts:260

Checks if an intersection is valid

Parameters

ParameterTypeDescription
intersectionFlightPlanIntersectionFlight plan intersection data

Returns

boolean

true if the intersection is valid/calculated