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
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus |
maxDistance | number | Maximum distance in metres |
activeRoutePredictor? | FlightPlanPredictionsProvider | The active route predictor |
Returns
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
Name | Type | Description |
---|---|---|
plan | FlightPlan | The active flight plan |
fixInfos | WT21FixInfoData [] | 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
Name | Type | Description |
---|---|---|
plan | FlightPlan | Active flight plan |
fixInfo | WT21FixInfoData | The pilot-entered input data |
calcData | WT21FixInfoCalculatedData | Output 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
Name | Type | Description |
---|---|---|
plan | FlightPlan | Active flight plan |
fixInfo | WT21FixInfoData | The pilot-entered input data |
calcData | WT21FixInfoCalculatedData | Output 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
Name | Type | Description |
---|---|---|
fixInfos | WT21FixInfoData [] | All of the fix infos |
calcDatas | WT21FixInfoCalculatedData [] | 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
Name | Type | Description |
---|---|---|
fixInfo | WT21FixInfoData | The 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
Name | Type | Description |
---|---|---|
intersection | FlightPlanIntersection | Flight 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
Name | Type | Description |
---|---|---|
intersection | FlightPlanIntersection | Flight plan intersection data |
Returns
boolean
true if the intersection is valid/calculated
Defined in
workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoCalculator.ts:260