Skip to main content

Class: WT21PilotWaypointUtils

Utilities for WT21 pilot defined waypoints

Constructors

constructor

new WT21PilotWaypointUtils(): WT21PilotWaypointUtils

Returns

WT21PilotWaypointUtils

Methods

createAlongTrackOffset

createAlongTrackOffset(facLoader, plan, globalLegIndex, lnavActiveLegIndex, lnavDistanceAlongActiveLeg, distance): Promise<[point: GeoPoint, insertAfter: boolean] | AlongTrackOffsetError>

Creates an along-track offset position with input data

Parameters

NameTypeDescription
facLoaderFacilityLoaderthe facility loader
planFlightPlanthe flight plan the ATO is being created from
globalLegIndexnumberthe global leg index in the plan the ATO is being created from (WT21: LSK position)
lnavActiveLegIndexnumberthe active lnav leg index (not nominal)
lnavDistanceAlongActiveLegnumberthe distance flown along the active lnav leg
distancenumberthe distance input

Returns

Promise<[point: GeoPoint, insertAfter: boolean] | AlongTrackOffsetError>

a GeoPoint

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21PilotWaypointUtils.ts:425


createFromScratchpadEntry

createFromScratchpadEntry(fms, selectWptFromIdent, scratchpadContents, targetGlobalLegIndex?): Promise<null | [fac: UserFacility, insertAfter: boolean]>

Converts a scratchpad entry made on a provided CDU page to a UserFacility if applicable

Parameters

NameTypeDescription
fmsWT21Fmsthe WT21Fms instance
selectWptFromIdent(ident: string, refPos: GeoPoint) => Promise<null | Facility>the function called to select a facility
scratchpadContentsstringthe scratchpad contents
targetGlobalLegIndex?numberthe target global leg index, if applicable

Returns

Promise<null | [fac: UserFacility, insertAfter: boolean]>

a user facility, or null if none is parsed

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21PilotWaypointUtils.ts:146


createPlaceBearingDistance

createPlaceBearingDistance(facility, bearing, bearingTrue, distance): GeoPoint

Creates a PB/D position with input data

Parameters

NameTypeDescription
facilityFacilitythe facility representing the origin
bearingnumberthe bearing to use
bearingTruebooleanwhether the bearing is already provided in TRUE form
distancenumberthe distance to use

Returns

GeoPoint

a GeoPoint

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21PilotWaypointUtils.ts:296


createPlaceBearingPlaceBearing

createPlaceBearingPlaceBearing(facilityA, bearingA, facilityB, bearingB): null | GeoPoint

Creates a PB/PB position with input data

Parameters

NameTypeDescription
facilityAFacilitythe facility representing the first origin
bearingAnumberthe bearing to use from the first origin
facilityBFacilitythe facility representing the second origin
bearingBnumberthe distance to use from the second origin

Returns

null | GeoPoint

a GeoPoint

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21PilotWaypointUtils.ts:359


isLimitReached

isLimitReached(facilities): boolean

Returns whether the limit number of pilot defined waypoints is reached

Parameters

NameTypeDescription
facilitiesUserFacility[]the existing user facilities

Returns

boolean

a boolean

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21PilotWaypointUtils.ts:110


nextAutoGeneratedName

nextAutoGeneratedName(facilities, ident): string

Returns the next available auto-generated name, given existing user facilities and an ident

Parameters

NameTypeDescription
facilitiesUserFacility[]the existing user facilities
identstringthe ident of the facility

Returns

string

a string to be used as an ident for a user facility

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21PilotWaypointUtils.ts:122


parseAlongTrackOffset

parseAlongTrackOffset(str): null | AlongTrackOffsetInput

Parses a string according to the along-track offset format

Parameters

NameTypeDescription
strstringthe string to parse

Returns

null | AlongTrackOffsetInput

a AlongTrackOffsetInput object if a valid ATO definition and null otherwise

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21PilotWaypointUtils.ts:399


parsePlaceBearingDistance

parsePlaceBearingDistance(str): null | PlaceBearingDistanceInput

Parses a string according to the PB/D format

Parameters

NameTypeDescription
strstringthe string to parse

Returns

null | PlaceBearingDistanceInput

a PlaceBearingDistanceInput object if a valid PBD definition and null otherwise

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21PilotWaypointUtils.ts:265


parsePlaceBearingPlaceBearing

parsePlaceBearingPlaceBearing(str): null | PlaceBearingPlaceBearingInput

Parses a string according to the PB/PB format

Parameters

NameTypeDescription
strstringthe string to parse

Returns

null | PlaceBearingPlaceBearingInput

a PlaceBearingPlaceBearingInput object if a valid PBPB definition and null otherwise

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Navigation/WT21PilotWaypointUtils.ts:326