Skip to main content

Class: WT21FmsUtils

Utility Methods for the WT21 FMS.

Constructors

constructor

new WT21FmsUtils(): WT21FmsUtils

Returns

WT21FmsUtils

Properties

DTO_LEG_OFFSET

Static Readonly DTO_LEG_OFFSET: 3

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:22


PRIMARY_ACT_PLAN_INDEX

Static Readonly PRIMARY_ACT_PLAN_INDEX: 0

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:19


PRIMARY_MOD_PLAN_INDEX

Static Readonly PRIMARY_MOD_PLAN_INDEX: 1

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:20


PROC_PREVIEW_PLAN_INDEX

Static Readonly PROC_PREVIEW_PLAN_INDEX: 2

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:21


USER_DATA_KEY_ALTN

Static Readonly USER_DATA_KEY_ALTN: "wt21.altn"

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:23


USER_DATA_KEY_FIX_INFO

Static Readonly USER_DATA_KEY_FIX_INFO: "wt21.fix-info"

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:24


getBestRnavType

Static getBestRnavType: (query: ApproachProcedure | RnavTypeFlags) => RnavTypeFlags = ApproachUtils.getBestRnavType

Utility method to return a single RnavTypeFlag from multiple possible flags.

Param

The input RnavTypeFlags.

Type declaration

▸ (query): RnavTypeFlags

Utility method to return a single RnavTypeFlag from multiple possible flags.

Parameters
NameType
queryApproachProcedure | RnavTypeFlags
Returns

RnavTypeFlags

A single RnavTypeFlag

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:182

Methods

approachHasNavFrequency

approachHasNavFrequency(approach): boolean

Checks whether an approach has a primary NAV frequency based on its type. Only approaches of the following types have primary NAV frequencies: ILS, LOC (BC), LDA, SDF, VOR(DME).

Parameters

NameTypeDescription
approachApproachProcedureThe approach to check.

Returns

boolean

Whether the specified approach has a primary NAV frequency based on its type.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:488


buildRunwayLeg

buildRunwayLeg(airport, oneWayRunway, isOriginRunway): FlightPlanLeg

Utility method to return a one-way runway leg

Parameters

NameTypeDescription
airportAirportFacilityThe runway's parent airport.
oneWayRunwayOneWayRunwayis the one wway runway object
isOriginRunwaybooleanis a bool whether this is the origin or destination (origin = true, dest = false)

Returns

FlightPlanLeg

a leg object for the runway

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:63


buildRunwayLegForApproach

buildRunwayLegForApproach(airport, runwayIcao): undefined | FlightPlanLeg

Utility method to return a one-way runway leg from an approach runway leg definition

Parameters

NameTypeDescription
airportAirportFacilityis the facility associated with the arrival
runwayIcaostringis the icao string for the runway waypoint in the final legs

Returns

undefined | FlightPlanLeg

a leg object for the runway

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:80


buildVisualApproach

buildVisualApproach(facRepo, airport, runway, finalLegDistance, name?, finalLegIdent?): ApproachProcedure

Utility method to return a visual approach for a runway.

Parameters

NameTypeDescription
facRepoFacilityRepositoryis a facility repository in which to store the created faf leg facility
airportAirportFacilityis the airport facility for the visual approach.
runwayOneWayRunwayis the runway to build the visual approach for.
finalLegDistancenumberis the distance from the runway to place the faf leg in NM.
name?stringis the optional name for the approach.
finalLegIdent?stringis the optional name for the faf leg.

Returns

ApproachProcedure

an approach procedure.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:108


buildWT21LegName

buildWT21LegName(leg): string

Builds leg names using default nomenclature.

Parameters

NameTypeDescription
legFlightPlanLegThe leg to build a name for.

Returns

string

The name of the leg.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1022


canLegBeSelectedOnDirectPage

canLegBeSelectedOnDirectPage(leg): boolean

Checks whether a leg should appear on the Direct To Page based on leg type.

Parameters

NameTypeDescription
legFlightPlanLegThe FlightPlanLeg to evaluate.

Returns

boolean

whether or not the leg should appear on the Direct To page.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:996


distanceBetweenDiscontinuedLegs

distanceBetweenDiscontinuedLegs(prevLeg, nextLeg): number

Returns the distance between the end of a leg before a discontinuity and the start of the leg after that discontinuity

Parameters

NameTypeDescription
prevLegLegDefinitionthe leg before the discontinuity
nextLegLegDefinitionthe leg after the discontinuity

Returns

number

the great circle distance between the end of the previous leg and the start of the next leg, in metres

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1251


estimateDistanceForSeconds

estimateDistanceForSeconds(seconds, groundSpeed): number

Calculates distance flown for a number of seconds at a ground speed

Parameters

NameTypeDescription
secondsnumbertime flown in number of seconds
groundSpeednumberGS to predict with

Returns

number

distance in nautical miles

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1218


estimateSecondsForDistance

estimateSecondsForDistance(distance, groundSpeed): number

Calculates time in seconds to fly a certain distance at a ground speed

Parameters

NameTypeDescription
distancenumberdistance to fly
groundSpeednumberGS to predict with

Returns

number

time in number of seconds

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1206


findIcaoInSegment

findIcaoInSegment(segment, icao): undefined | number

Checks whether a leg exists in a segment with the specified ICAO and, if so, returns the leg index of that leg.

Parameters

NameTypeDescription
segmentFlightPlanSegmentThe segment to check for the icao.
icaoundefined | stringThe ICAO to check for in the segment.

Returns

undefined | number

The segment leg index of the leg with the matching icao, or -1.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:44


formatFacilityFrequencyType

formatFacilityFrequencyType(frequency, noneString?): string

Formats a facility frequency's type for display on the FMC

Parameters

NameTypeDefault valueDescription
frequencyFacilityFrequencyundefinedthe frequency
noneStringstring'UNKNOWN'(optional) the string to return when the type is "None"

Returns

string

a string

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1274


getActiveSegment

getActiveSegment(plan): undefined | FlightPlanSegment

Gets the active segment in the Lateral Flight Plan.

Parameters

NameTypeDescription
planFlightPlanThe Lateral Flight Plan.

Returns

undefined | FlightPlanSegment

The Active Flight Plan Segment or undefined.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:31


getApproachFromPlan

getApproachFromPlan(plan, destination): undefined | ApproachProcedure

Gets an approach procedure from a flight plan.

Parameters

NameTypeDescription
planFlightPlanA flight plan.
destinationAirportFacilityThe detsination airport of the flight plan.

Returns

undefined | ApproachProcedure

The approach procedure from the flight plan, or undefined if the plan has no approach.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:221


getApproachNameAsParts

getApproachNameAsParts(proc, transitionIndex): ApproachNameParts

Utility method to analyze an approach for its name components and pack them into a custom type.

Parameters

NameTypeDescription
procApproachProcedureThe approach procedure.
transitionIndexnumberThe transition index.

Returns

ApproachNameParts

The name as an ApproachNameParts

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:406


getApproachNameAsString

getApproachNameAsString(facility, procedureIndex, transitionIndex): string

Utility method that gets an approach and returns its name as a flat string suitable for use in embedded text content.

Parameters

NameTypeDescription
facilityAirportFacilityThe Facility.
procedureIndexnumberThe approach index.
transitionIndexnumberThe index of the approach transition.

Returns

string

The formatted name as a string.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:470


getApproachVtfLeg

getApproachVtfLeg(plan): undefined | LegDefinition

Gets the vectors-to-final leg of a flight plan.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

undefined | LegDefinition

The vectors-to-final leg of the flight plan, or undefined if one could not be found.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:272


getArrivalNameAsString

getArrivalNameAsString(facility, procedureIndex, transitionIndex): string

Gets the name of a arrival procedure as a string.

Parameters

NameTypeDescription
facilityAirportFacilityThe airport to which the arrival belongs.
procedureIndexnumberAn arrival procedure index.
transitionIndexnumberThe index of the arrival enroute transition.

Returns

string

The name of the arrival procedure.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:375


getConstraintDisplayForDirectPage

getConstraintDisplayForDirectPage(verticalData, transitionAltitude?): string

Method to get the FMS constraint display data from a verticalData object

Parameters

NameTypeDefault valueDescription
verticalDataVerticalDataundefinedis the Vertical Data object for the leg
transitionAltitudenumber18000is the transition altitude that applies to the constraint

Returns

string

A string to display on the FMC

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:763


getConstraintDisplayForLegs

getConstraintDisplayForLegs(performancePlanData, verticalData, transitionAltitude?, constraintInvalid?, isRunway?): string

Method to get the FMS constraint display data from a verticalData object.

Parameters

NameTypeDefault valueDescription
performancePlanDataPerformancePlanDataundefinedperformance plan data
verticalDataVerticalDataundefinedThe Vertical Data object for the leg.
transitionAltitudenumber18000The transition altitude that applies to the constraint.
constraintInvalid?booleanundefinedIf the constraint is invalid.
isRunway?booleanundefinedIf the constraint is a runway.

Returns

string

A string to display on the FMC.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:684


getDepartureNameAsString

getDepartureNameAsString(facility, procedureIndex): string

Gets the name of a departure procedure as a string.

Parameters

NameTypeDescription
facilityAirportFacilityThe Facility.
procedureIndexnumberThe procedure index.

Returns

string

The name of the departure procedure.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:346


getDirectToCourse

getDirectToCourse(leg): number

Gets the direct to magnetic course from the leg vectors.

Parameters

NameTypeDescription
legLegDefinitionThe Leg Definition

Returns

number

the magnetic course.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:932


getDistanceFromPposToLegEnd

getDistanceFromPposToLegEnd(lateralPlan, globalLegIndex): undefined | number

Returns the distance from PPOS to the end of a leg, given a lateral plan and a global leg index

Parameters

NameTypeDescription
lateralPlanFlightPlanthe lateral plan
globalLegIndexnumberthe global leg index

Returns

undefined | number

the distance, in metres

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1316


getFpaDisplayForLegs

getFpaDisplayForLegs(vnavLeg, vnavConstraint?, phase?): string

Method to get the FMS FPA display data for a leg from a VNavConstraint and VNavLeg.

Parameters

NameTypeDescription
vnavLegVNavLegThe VNav Leg from the vertical flight plan that cooresponds to this leg index.
vnavConstraint?VNavConstraintThe VNav Constraint from the Vertical Flight Plan that cooresponds to this leg index.
phase?VerticalFlightPhaseThe vertical flight phase of this leg.

Returns

string

A string to display on the FMC.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:659


getLastNonMissedApproachLeg

getLastNonMissedApproachLeg(plan): number

Returns the index of the last non-missed approach leg in the flight plan

Parameters

NameTypeDescription
planFlightPlanthe plan to use for lookup

Returns

number

array of index and ident, or undefined if no approach segment

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1229


getNominalFromLeg

getNominalFromLeg(plan, segmentIndex, segmentLegIndex): undefined | LegDefinition

Gets the nominal leg from which a specified flight plan leg originates. The nominal from leg excludes any legs which are part of a direct to or vectors-to-final sequence.

Parameters

NameTypeDescription
planFlightPlanA flight plan.
segmentIndexnumberThe index of the segment containing the leg for which to get the from leg.
segmentLegIndexnumberThe index of the leg for which to get the from leg in its segment.

Returns

undefined | LegDefinition

The nominal leg from which the specified flight plan leg originates.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:511


getNominalFromLegIndex

getNominalFromLegIndex(plan, segmentIndex, segmentLegIndex): number

Gets the global leg index of the nominal leg from which a specified flight plan leg originates. The nominal from leg excludes any legs which are part of a direct to or vectors-to-final sequence.

Parameters

NameTypeDescription
planFlightPlanA flight plan.
segmentIndexnumberThe index of the segment containing the leg for which to get the from leg.
segmentLegIndexnumberThe index of the leg for which to get the from leg in its segment.

Returns

number

The nominal leg from which the specified flight plan leg originates.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:535


getPlanHolds

getPlanHolds(plan, inMissed?): LegDefinition[]

Returns hold legs in the flight plan. Used to determine and show appropriate HOLD pages.

Parameters

NameTypeDefault valueDescription
planFlightPlanundefinedthe flight plan in question
inMissedbooleanfalsewhether to only include missed approach holds

Returns

LegDefinition[]

the result

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1176


getProcedureIndexAndTransitionIndexFromSegmentType

getProcedureIndexAndTransitionIndexFromSegmentType(segmentType, lateralPlan): number[]

Gets the procedure index and transition index from procedure details of the lateral plan based on segment type.

Parameters

NameTypeDescription
segmentTypeFlightPlanSegmentTypeThe segment type.
lateralPlanFlightPlanThe lateral flight plan.

Returns

number[]

an array of procedureIndex, transitionIndex.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:291


getProcedureNameAsString

getProcedureNameAsString(segmentType, facility, procedureIndex, transitionIndex?): string

Combiner method to get a procedure name as a string for the FPLN Page.

Parameters

NameTypeDescription
segmentTypeFlightPlanSegmentTypeThe segment type.
facilityundefined | AirportFacilityThe facility.
procedureIndexnumberThe procedure index.
transitionIndex?numberThe transition index.

Returns

string

the name as a string.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:311


isAirwayAtLeg

isAirwayAtLeg(facLoader, icao, airwayName): Promise<undefined | AirwayObject>

Checks for an airway at a leg and returns the airway or undefined

Parameters

NameTypeDescription
facLoaderFacilityLoaderThe facility loader.
icaostringThe icao of the entry to check.
airwayNamestringThe airway to search for.

Returns

Promise<undefined | AirwayObject>

The airway object or undefined

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:959


isAltitudeLeg

isAltitudeLeg(legType): boolean

Checks if leg type is an "to altitude" leg type.

Parameters

NameTypeDescription
legTypeLegTypeThe LegType.

Returns

boolean

Whether the leg type is a "to altitude" leg type.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:886


isApproachLoaded

isApproachLoaded(plan): boolean

Checks whether a flight plan has an approach loaded.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

boolean

Whether the flight plan has an approach loaded.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:254


isCourseToLeg

isCourseToLeg(legType): boolean

Checks if leg type is a "course to" leg type.

Parameters

NameTypeDescription
legTypeLegTypeThe LegType.

Returns

boolean

Whether the leg type is a "course to" leg type.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:895


isDiscontinuityLeg

isDiscontinuityLeg(legType): boolean

Checks if leg type is a "discontinuity" leg type.

Parameters

NameTypeDescription
legTypeLegTypeThe LegType.

Returns

boolean

Whether the leg type is a "discontinuity" leg type.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:904


isGpsApproach

isGpsApproach(approachType): boolean

Utility method to check whether an approach is authorized for GPS guidance.

Parameters

NameTypeDescription
approachTypeAPPROACH_TYPE_UNKNOWN | APPROACH_TYPE_GPS | APPROACH_TYPE_VOR | APPROACH_TYPE_NDB | APPROACH_TYPE_ILS | APPROACH_TYPE_LOCALIZER | APPROACH_TYPE_SDF | APPROACH_TYPE_LDA | APPROACH_TYPE_VORDME | APPROACH_TYPE_NDBDME | APPROACH_TYPE_RNAV | APPROACH_TYPE_LOCALIZER_BACK_COURSE | APPROACH_TYPE_VISUALThe approach type.

Returns

boolean

True if GPS guidance is authorized, false otherwise.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:189


isHeadingToLeg

isHeadingToLeg(legType): boolean

Checks if leg type is a "heading to" leg type.

Parameters

NameTypeDescription
legTypeLegTypeThe LegType.

Returns

boolean

Whether the leg type is a "heading to" leg type.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:868


isHoldAtLeg

isHoldAtLeg(legType): boolean

Checks if leg type is a "hold at" leg type.

Parameters

NameTypeDescription
legTypeLegTypeThe LegType.

Returns

boolean

Whether the leg type is a "hold at" leg type.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:877


isLegHold

isLegHold(leg): boolean

Returns true if the leg is a hold leg

Parameters

NameTypeDescription
legFlightPlanLegthe leg in question

Returns

boolean

the result

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1140


isLegValidAirwayExit

isLegValidAirwayExit(airway, icao): undefined | IntersectionFacility

Checks for an airway exit at a given icao.

Parameters

NameTypeDescription
airwayAirwayObjectThe Airway Object.
icaostringThe icao of the entry to check.

Returns

undefined | IntersectionFacility

The Intersection Facility if the leg is a valid exit to the airway.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:977


isLegVectOrDisco

isLegVectOrDisco(leg): boolean

Returns true if a leg is a vector of discontinuity.

Parameters

NameTypeDescription
legFlightPlanLegThe FlightPlanLeg

Returns

boolean

Whether the leg is a vector of discontinuity

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1156


isLocalizerApproach

isLocalizerApproach(approachType): boolean

Utility method to check for an approach with a a tunable localizer.

Parameters

NameTypeDescription
approachTypeExtendedApproachTypeThe approach procedure type

Returns

boolean

True if a localizer needs to be tuned, otherwise false.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:203


isVectorsLeg

isVectorsLeg(legType): boolean

Checks if leg type is a "vectors" leg type.

Parameters

NameTypeDescription
legTypeLegTypeThe LegType.

Returns

boolean

Whether the leg type is a "vectors" leg type.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:913


isVtfApproachLoaded

isVtfApproachLoaded(plan): boolean

Checks whether a plan has a vectors-to-final approach loaded.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

boolean

Whether the flight plan has a vectors-to-final approach loaded.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:263


matchIdentToAirway

matchIdentToAirway(airway, ident): undefined | IntersectionFacility

Checks for an airway exit matching an input ident

Parameters

NameTypeDescription
airwayAirwayObjectThe AirwayObject.
identstringThe Ident to search for.

Returns

undefined | IntersectionFacility

The Intersection Facility if the leg is a valid exit to the airway.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:987


parseAltitudeForDisplay

parseAltitudeForDisplay(altitudeMeters, transitionAltitudeFeet): string

Gets an altitude for display with padding, Flight Level Handling

Parameters

NameTypeDescription
altitudeMetersnumberthe altitude IN METERS to evaluate
transitionAltitudeFeetnumberthe transition altitude IN FEET to evaluate

Returns

string

A display string

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:792


parseConstraintInput

parseConstraintInput(value, verticalData): undefined | boolean

Copied from the CJ4 mod

Parameters

NameTypeDescription
valuestringThe scratchpad value.
verticalDataVerticalDataThe existing leg vertical data.

Returns

undefined | boolean

False if invalid entry.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:557


parseDtkDistanceForDisplay

parseDtkDistanceForDisplay(leg, isToLeg, ppos, distance?): string

Gets a DTK and Distance string for the FMC Legs Page Display.

Parameters

NameTypeDescription
legLegDefinitionThe Leg Definition.
isToLegbooleanWhether the leg is the TO loeg or not.
pposGeoPointThe plane's present position.
distance?numberA manual distance to calculate with.

Returns

string

A Display string.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:809


reconcileDirectToData

reconcileDirectToData(plan): void

Reconciles a flight plan's Direct-To data with its internal leg structure. Scans the legs of the flight plan for Direct-To legs and sets the segment index and segment leg index of the plan's Direct-To data to point to the leg immediately preceding the first Direct-To leg found, or to -1 for both if the plan contains no Direct-To legs.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

void

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1063


removeAllDirectToData

removeAllDirectToData(plan): void

Removes all of a flight plan's Direct-To data, but from the DirectToData object and from any legs in the plan. Scans the legs of the flight plan for Direct-To legs and removes them.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

void

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1086


removeDisplacedActiveLegs

removeDisplacedActiveLegs(plan): void

Removes all of a flight plan's Displaced Active Legs, which are flagged when a procedure is added and the active leg array is moved to enroute.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

void

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1107


removeFixTypeFlags

removeFixTypeFlags(legs): FlightPlanLeg[]

Removes fix type flags from legs being moved from an approach procedure to the enroute segment.

Parameters

NameTypeDescription
legsFlightPlanLeg[]The FlightPlanLegs to remove fix type flags from.

Returns

FlightPlanLeg[]

The array of FlightPlanLegs with the flags removed.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:1126


shouldShowLegCourse

shouldShowLegCourse(legType): boolean

Checks if leg type is a course or heading leg, which should have the leg course shown instead of the initial dtk.

Parameters

NameTypeDescription
legTypeLegTypeThe LegType.

Returns

boolean

Whether the leg type is a course or heading leg.

Defined in

workingtitle-instruments-wt21/shared/Systems/FMS/WT21FmsUtils.ts:923