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