Skip to main content

Class: WT21FixInfoManager

WT21 Fix Info Implementation

Constructors

constructor

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

Instantiates the Fix Info subsystem

Parameters

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

Returns

WT21FixInfoManager

Defined in

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

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>

FIXME hook up when true ref exists

Defined in

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

Methods

clearBearingDistance

clearBearingDistance(fixIndex, brgDistIndex): boolean

Clear a pilot-entered bearing/distance pair

Parameters

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

Returns

boolean

true if the operation succeeded.

Defined in

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


clearFix

clearFix(fixIndex, omitSync?): boolean

Clear a fix info page

Parameters

NameTypeDefault 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.

Defined in

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


clearLatitudeLongitude

clearLatitudeLongitude(fixIndex, latLonIndex): boolean

Clear a pilot-entered latitude/longitude pair

Parameters

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

Returns

boolean

true if the operation succeeded.

Defined in

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


clearPrediction

clearPrediction(fixIndex): boolean

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

Parameters

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

Returns

boolean

true if the operation succeeded.

Defined in

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


createAbeamPoint

createAbeamPoint(fixIndex): Promise<boolean>

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

Parameters

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

Returns

Promise<boolean>

true if an intersection was found, false otherwise

Defined in

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


deleteAbeamPoint

deleteAbeamPoint(fixIndex): boolean

Removes the abeam fix calculation.

Parameters

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

Returns

boolean

true on success

Defined in

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


getCalculatedData

getCalculatedData(fixIndex): undefined | WT21FixInfoCalculatedData

Get the calculated data for CDU page rendering

Parameters

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

Returns

undefined | WT21FixInfoCalculatedData

the calculated data

Defined in

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


getEnteredData

getEnteredData(fixIndex): undefined | WT21FixInfoData

Get the entered data for CDU page rendering

Parameters

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

Returns

undefined | WT21FixInfoData

the entered data

Defined in

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


getNumberOfFixes

getNumberOfFixes(): number

Get the number of fixes supported by this manager.

Returns

number

The number of fixes.

Defined in

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


setAltitudePrediction

setAltitudePrediction(fixIndex, altitude): boolean

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

Parameters

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

Returns

boolean

true if the operation succeeded.

Defined in

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


setBearingDistance

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

Set a pilot-entered bearing and/or distance.

Parameters

NameTypeDescription
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.

Defined in

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


setFix

setFix(fixIndex, fix): boolean

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

Parameters

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

Returns

boolean

true if the operation succeeded.

Defined in

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


setLatitudeLongitude

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

Set a pilot-entered latitude and/or longitude.

Parameters

NameTypeDescription
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.

Defined in

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


setTimePrediction

setTimePrediction(fixIndex, time): boolean

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

Parameters

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

Returns

boolean

true if the operation succeeded.

Defined in

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