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
Parameter | Type | Description |
---|---|---|
bus | EventBus | Event Bus |
facLoader | FacilityLoader | Facility Loader |
activeRoutePlanIndex | number | Index of the active route flight plan |
flightPlanner | FlightPlanner | The flight planner |
options? | Partial <WT21FixInfoOptions > | Options for fix info. |
activeRoutePredictor? | FlightPlanPredictionsProvider | The 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
Parameter | Type | Description |
---|---|---|
fixIndex | number | Index of the fix info/page (0-based). |
brgDistIndex | number | Index/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
Parameter | Type | Default value | Description |
---|---|---|---|
fixIndex | number | undefined | Index of the fix info/page (0-based). |
omitSync | boolean | false | true 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
Parameter | Type | Description |
---|---|---|
fixIndex | number | Index of the fix info/page (0-based). |
latLonIndex | number | Index/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
Parameter | Type | Description |
---|---|---|
fixIndex | number | Index 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
Parameter | Type | Description |
---|---|---|
fixIndex | number | of 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
Parameter | Type | Description |
---|---|---|
fixIndex | number | of 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
Parameter | Type | Description |
---|---|---|
fixIndex | number | Index 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
Parameter | Type | Description |
---|---|---|
fixIndex | number | Index 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
Parameter | Type | Description |
---|---|---|
fixIndex | number | Index of the fix info/page (0-based). |
altitude | number | Altitude 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
Parameter | Type | Description |
---|---|---|
fixIndex | number | Index of the fix info/page (0-based). |
brgDistIndex | number | Index/row of the bearing/dist pair (0-based). |
bearing | null | number | Bearing in degrees, true or magnetic depending on reference mode, or null to allow FMS intersection computation. |
distance | null | number | Distance/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
Parameter | Type | Description |
---|---|---|
fixIndex | number | Index of the fix info/page (0-based). |
fix | Facility | The 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
Parameter | Type | Description |
---|---|---|
fixIndex | number | Index of the fix info/page (0-based). |
latLonIndex | number | Index/row of the bearing/dist pair (0-based). |
latitude | null | number | Latitude in degrees, or null to allow FMS intersection computation. |
longitude | null | number | Longitude 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
Parameter | Type | Description |
---|---|---|
fixIndex | number | Index of the fix info/page (0-based). |
time | number | Unix timestamp in milliseconds |
Returns
boolean
true if the operation succeeded.