Skip to main content

Class: WT21FixInfoManager

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

WT21 Fix Info Implementation

Constructors

Constructor

new WT21FixInfoManager(bus, facLoader, activeRoutePlanIndex, flightPlanner, options?, activeRoutePredictor?): WT21FixInfoManager

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:64

Instantiates the Fix Info subsystem

Parameters

ParameterTypeDescription
busEventBusEvent Bus
facLoaderFacilityLoaderFacility Loader
activeRoutePlanIndexnumberIndex of the active route flight plan
flightPlannerFlightPlannerThe flight planner
options?Partial<WT21FixInfoOptions>Options for fix info.
activeRoutePredictor?FlightPlanPredictionsProviderThe active route predictor

Returns

WT21FixInfoManager

Properties

ndMarkers

readonly ndMarkers: ArraySubject<WT21FixInfoMarker>

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:41


ndWaypoints

readonly ndWaypoints: ArraySubject<WT21FixInfoWaypoint>

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:43


trueRef

readonly trueRef: Subject<boolean>

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:49

FIXME hook up when true ref exists

Methods

clearBearingDistance()

clearBearingDistance(fixIndex, brgDistIndex): boolean

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:541

Clear a pilot-entered bearing/distance pair

Parameters

ParameterTypeDescription
fixIndexnumberIndex of the fix info/page (0-based).
brgDistIndexnumberIndex/row of the bearing/dist pair (0-based).

Returns

boolean

true if the operation succeeded.


clearFix()

clearFix(fixIndex, omitSync): boolean

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:656

Clear a fix info page

Parameters

ParameterTypeDefault valueDescription
fixIndexnumberundefinedIndex of the fix info/page (0-based).
omitSyncbooleanfalsetrue if the flight plan user data sync will be done later

Returns

boolean

true if the operation succeeded.


clearLatitudeLongitude()

clearLatitudeLongitude(fixIndex, latLonIndex): boolean

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:597

Clear a pilot-entered latitude/longitude pair

Parameters

ParameterTypeDescription
fixIndexnumberIndex of the fix info/page (0-based).
latLonIndexnumberIndex/row of the lat/lon pair (0-based).

Returns

boolean

true if the operation succeeded.


clearPrediction()

clearPrediction(fixIndex): boolean

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:728

Clear the time or altitude to predict along-track location for.

Parameters

ParameterTypeDescription
fixIndexnumberIndex of the fix info/page (0-based).

Returns

boolean

true if the operation succeeded.


createAbeamPoint()

createAbeamPoint(fixIndex): Promise<boolean>

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:748

Attempts to find the closest abeam intersection and saves it on this fix info

Parameters

ParameterTypeDescription
fixIndexnumberof the fix info/page (0-based).

Returns

Promise<boolean>

true if an intersection was found, false otherwise


deleteAbeamPoint()

deleteAbeamPoint(fixIndex): boolean

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:774

Removes the abeam fix calculation.

Parameters

ParameterTypeDescription
fixIndexnumberof the fix info/page (0-based).

Returns

boolean

true on success


getCalculatedData()

getCalculatedData(fixIndex): undefined | WT21FixInfoCalculatedData

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:794

Get the calculated data for CDU page rendering

Parameters

ParameterTypeDescription
fixIndexnumberIndex of the fix info/page (0-based).

Returns

undefined | WT21FixInfoCalculatedData

the calculated data


getEnteredData()

getEnteredData(fixIndex): undefined | WT21FixInfoData

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:803

Get the entered data for CDU page rendering

Parameters

ParameterTypeDescription
fixIndexnumberIndex of the fix info/page (0-based).

Returns

undefined | WT21FixInfoData

the entered data


getNumberOfFixes()

getNumberOfFixes(): number

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:834

Get the number of fixes supported by this manager.

Returns

number

The number of fixes.


setAltitudePrediction()

setAltitudePrediction(fixIndex, altitude): boolean

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:708

Set an altitude to predict the distance/along-track location for. This will clear the time to predict if set.

Parameters

ParameterTypeDescription
fixIndexnumberIndex of the fix info/page (0-based).
altitudenumberAltitude in metres.

Returns

boolean

true if the operation succeeded.


setBearingDistance()

setBearingDistance(fixIndex, brgDistIndex, bearing, distance): Promise<boolean>

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:510

Set a pilot-entered bearing and/or distance.

Parameters

ParameterTypeDescription
fixIndexnumberIndex of the fix info/page (0-based).
brgDistIndexnumberIndex/row of the bearing/dist pair (0-based).
bearingnull | numberBearing in degrees, true or magnetic depending on reference mode, or null to allow FMS intersection computation.
distancenull | numberDistance/radius in metres, or null to allow FMS intersection computation.

Returns

Promise<boolean>

true if the operation succeeded.


setFix()

setFix(fixIndex, fix): boolean

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:621

Set the fix for a fix info page, clearing all other data on the page

Parameters

ParameterTypeDescription
fixIndexnumberIndex of the fix info/page (0-based).
fixFacilityThe fix facility

Returns

boolean

true if the operation succeeded.


setLatitudeLongitude()

setLatitudeLongitude(fixIndex, latLonIndex, latitude, longitude): Promise<boolean>

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:567

Set a pilot-entered latitude and/or longitude.

Parameters

ParameterTypeDescription
fixIndexnumberIndex of the fix info/page (0-based).
latLonIndexnumberIndex/row of the bearing/dist pair (0-based).
latitudenull | numberLatitude in degrees, or null to allow FMS intersection computation.
longitudenull | numberLongitude in degrees, or null to allow FMS intersection computation.

Returns

Promise<boolean>

true if the operation succeeded.


setTimePrediction()

setTimePrediction(fixIndex, time): boolean

Defined in: workingtitle-instruments-wt21/shared/Systems/FixInfo/WT21FixInfoManager.ts:686

Set a time to predict the distance/along-track location for. This will clear the altitude to predict if set.

Parameters

ParameterTypeDescription
fixIndexnumberIndex of the fix info/page (0-based).
timenumberUnix timestamp in milliseconds

Returns

boolean

true if the operation succeeded.