Skip to main content

Class: WT21FixInfoCalculator

A calculator for fix info intersections and predictions data

Constructors

constructor

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

Instantiates a Fix Info Calculator

Parameters

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

Returns

WT21FixInfoCalculator

Defined in

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

Properties

trueRef

Readonly trueRef: Subject<boolean>

FIXME hook up when true ref exists

Defined in

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

Methods

calculateAllIntersections

calculateAllIntersections(plan, fixInfos): void

Calculates intersections with the active flight plan for fix infos

Parameters

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

Returns

void

Defined in

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


calculateEtaAltitudePrediction

calculateEtaAltitudePrediction(plan, fixInfo, calcData): void

Calculates the time or altitude distance prediction

Parameters

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

Returns

void

Defined in

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


calculateFixPredictions

calculateFixPredictions(plan, fixInfo, calcData): void

Calculates fix info predictions and intersections

Parameters

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

Returns

void

Defined in

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


calculateIntersectionBearingDistances

calculateIntersectionBearingDistances(fixInfos, calcDatas): void

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

Parameters

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

Returns

void

Defined in

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


clearFixIntersections

clearFixIntersections(fixInfo): void

Clear data from a calculated flight plan intersection

Parameters

NameTypeDescription
fixInfoWT21FixInfoDataThe fix info to clear

Returns

void

Defined in

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


clearIntersection

clearIntersection(intersection): void

Clear data from a calculated flight plan intersection

Parameters

NameTypeDescription
intersectionFlightPlanIntersectionFlight plan intersection object to clear

Returns

void

Defined in

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


isIntersectionValid

isIntersectionValid(intersection): boolean

Checks if an intersection is valid

Parameters

NameTypeDescription
intersectionFlightPlanIntersectionFlight plan intersection data

Returns

boolean

true if the intersection is valid/calculated

Defined in

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