Skip to main content

Class: FmsUtils

Utility Methods for the FMS.

Constructors

constructor

new FmsUtils(): FmsUtils

Returns

FmsUtils

Properties

DTO_LEG_OFFSET

Static Readonly DTO_LEG_OFFSET: 3

The number of flight plan legs between a direct-to target leg and its associated direct-to leg.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:31


DTO_RANDOM_PLAN_INDEX

Static Readonly DTO_RANDOM_PLAN_INDEX: 1

The index of the off-route direct-to flight plan.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:25


PRIMARY_PLAN_INDEX

Static Readonly PRIMARY_PLAN_INDEX: 0

The index of the primary flight plan.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:22


PROC_PREVIEW_PLAN_INDEX

Static Readonly PROC_PREVIEW_PLAN_INDEX: 2

The index of the procedure preview flight plan.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:28


getBestRnavType

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

Gets the best RNAV minimum type available for a given approach.

Param

The approach to check, or its RNAV type flags.

Type declaration

▸ (query): RnavTypeFlags

Gets the best RNAV minimum type available for a given approach.

Parameters
NameTypeDescription
queryApproachProcedure | RnavTypeFlagsThe approach to check, or its RNAV type flags.
Returns

RnavTypeFlags

The best RNAV minimum type available for the specified approach.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:418


isApproachRnpAr

Static isApproachRnpAr: (approach: ApproachProcedure) => boolean = ApproachUtils.isRnpAr

Checks whether an approach procedure is an RNP (AR) approach.

Param

The approach procedure to check.

Type declaration

▸ (approach): boolean

Checks whether an approach procedure is an RNP (AR) approach.

Parameters
NameType
approachApproachProcedure
Returns

boolean

Whether the approach procedure is an RNP (AR) approach.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:718

Methods

approachDetailsEquals

approachDetailsEquals(a, b): boolean

Checks whether two FMS approach details objects are equal.

Parameters

NameTypeDescription
aReadonly<ApproachDetails>The first FMS approach details object to compare.
bReadonly<ApproachDetails>The second FMS approach details object to compare.

Returns

boolean

Whether the two FMS approach details objects are equal.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1603


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

src/garminsdk/flightplan/FmsUtils.ts:823


buildEmptyVisualApproach

buildEmptyVisualApproach(runway): ApproachProcedure

Builds an empty approach procedure object for a visual approach. The empty object contains all descriptive data for the approach but lacks flight plan leg information for the approach.

Parameters

NameTypeDescription
runwayOneWayRunwayThe runway to which the approach belongs.

Returns

ApproachProcedure

An empty approach procedure object for the specified approach.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:304


buildRunwayLeg

buildRunwayLeg(airport, runway, isInitialFix): FlightPlanLeg

Builds a flight plan leg to a runway fix.

Parameters

NameTypeDescription
airportstring | AirportFacilityThe runway's parent airport or its ICAO.
runwayOneWayRunwayThe runway associated with the runway fix.
isInitialFixbooleanWhether to create the flight plan leg as an initial fix (IF) leg instead of a track-to-fix (TF) leg.

Returns

FlightPlanLeg

A flight plan leg to the specified runway fix.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:162


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

src/garminsdk/flightplan/FmsUtils.ts:179


buildVfrApproach

buildVfrApproach(airport, approachIndex): undefined | GarminVfrApproachProcedure

Creates a VFR approach object based on a published approach.

Parameters

NameTypeDescription
airportAirportFacilityThe airport facility containing the published approach on which the VFR approach is based.
approachIndexnumberThe index of the published approach on which the VFR approach is based.

Returns

undefined | GarminVfrApproachProcedure

A new VFR approach object based on the specified published approach, or undefined if a VFR approach could not be generated.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:329


buildVisualApproach

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

Utility method to return a visual approach for a runway.

Parameters

NameTypeDescription
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.
initialLegDistancenumberis the distance from the final leg to place the iaf leg in NM.
name?stringis the optional name for the approach.
finalLegIdent?stringis the optional name for the faf leg.
initialLegIdent?stringis the optional name for the iaf leg.

Returns

ApproachProcedure

an approach procedure.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:208


checkForCourseReversal

checkForCourseReversal(legs, ppos): boolean

Checks for a course reversal in the procedure.

Parameters

NameTypeDescription
legsLegDefinition[]The legs in the procedure.
pposGeoPointThe current aircraft present position.

Returns

boolean

true if there is an optional course reversal.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1322


createApproachListItem

createApproachListItem(approach, index): ApproachListItem

Creates an ApproachListItem from an ApproachProcedure and the approach index.

Parameters

NameTypeDescription
approachApproachProcedureThe approach procedure.
indexnumberThe approach index.

Returns

ApproachListItem

The created ApproachListItem.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:937


createApproachTransitionListItem

createApproachTransitionListItem(approach, transitionIndex): TransitionListItem

Creates an TransitionListItem from an ApproachProcedure and the transition index.

Parameters

NameTypeDescription
approachApproachProcedureThe approach procedure.
transitionIndexnumberThe approach transition index.

Returns

TransitionListItem

The created TransitionListItem.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:990


displayAltitudeAsFlightLevel

displayAltitudeAsFlightLevel(altitudeMeters): boolean

Determines whether an altitude should be displayed as a flight level.

Parameters

NameTypeDescription
altitudeMetersnumberThe altitude in meters.

Returns

boolean

Whether an altitude should be displayed as a flight level.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1579


flightPhaseEquals

flightPhaseEquals(a, b): boolean

Checks whether two FMS flight phase objects are equal.

Parameters

NameTypeDescription
aReadonly<FmsFlightPhase>The first FMS flight phase object to compare.
bReadonly<FmsFlightPhase>The second FMS flight phase object to compare.

Returns

boolean

Whether the two FMS flight phase objects are equal.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1590


getAirportFromPlan

getAirportFromPlan(plan, reverse): undefined | string

Gets and returns the ICAO of first or last airport fix from the flight plan legs.

Parameters

NameTypeDescription
planFlightPlanThe flight plan to use.
reversebooleanWhether to get the first or last airport.

Returns

undefined | string

The ICAO of last airport fix from the flight plan legs.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1365


getApproachFafLeg

getApproachFafLeg(plan): undefined | LegDefinition

Gets the final approach fix leg of a flight plan.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

undefined | LegDefinition

The final approach fix leg of a flight plan, or undefined if one could not be found.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:562


getApproachFromPlan

getApproachFromPlan(plan, destination): undefined | GarminApproachProcedure

Gets an approach procedure from a flight plan. If the flight plan has an visual approach loaded, an empty procedure object, containing descriptive data for the approach but lacking flight plan leg information, will be returned.

Parameters

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

Returns

undefined | GarminApproachProcedure

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

Defined in

src/garminsdk/flightplan/FmsUtils.ts:496


getApproachNameAsParts

getApproachNameAsParts(proc): ApproachNameParts

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

Parameters

NameTypeDescription
procGarminApproachProcedureThe approach procedure.

Returns

ApproachNameParts

The name as an ApproachNameParts

Defined in

src/garminsdk/flightplan/FmsUtils.ts:726


getApproachNameAsString

getApproachNameAsString(approach): string

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

Parameters

NameTypeDescription
approachGarminApproachProcedureThe approach as an ApproaceProcedure

Returns

string

The formatted name as a string.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:807


getApproachSegment

getApproachSegment(plan): undefined | FlightPlanSegment

Gets the approach segment from a flight plan.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

undefined | FlightPlanSegment

The approach segment in the specified flight plan, or undefined if one does not exist.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:131


getApproachTransitionName

getApproachTransitionName(approach, transitionIndex): string

Creates an TransitionListItem from an ApproachProcedure and the transition index.

Parameters

NameTypeDescription
approachApproachProcedureThe approach procedure.
transitionIndexnumberThe approach transition index.

Returns

string

The created TransitionListItem.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1003


getApproachTransitions

getApproachTransitions(approachItem?): TransitionListItem[]

Gets the transitions for the approach, adding suffixes, vectors transtion, and default approach if needed.

Parameters

NameTypeDescription
approachItem?ApproachListItemThe approach procedure to get the transitions for.

Returns

TransitionListItem[]

The transitions for the approach.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:958


getApproachVtfLeg

getApproachVtfLeg(plan): undefined | LegDefinition

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

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

undefined | LegDefinition

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

Defined in

src/garminsdk/flightplan/FmsUtils.ts:587


getApproaches

getApproaches(airport?, includeVisual?): ApproachListItem[]

Gets an array of approach list items from an airport.

Parameters

NameTypeDefault valueDescription
airport?AirportFacilityundefinedAn airport.
includeVisualbooleantrueWhether to include visual approaches. Defaults to true.

Returns

ApproachListItem[]

An array of approach list items for the specified airport.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:844


getArrivalEnrouteTransitionName

getArrivalEnrouteTransitionName(procedure, transitionIndex, rwyTransitionIndex): string

Gets the transition name and creates a default transition when the procedure has no transitions.

Parameters

NameTypeDescription
procedureProcedureis the arrival procedure.
transitionIndexnumberis the index of the enroute transition in the procedure.
rwyTransitionIndexnumberis the index of the runway transition in the procedure.

Returns

string

The transition name string.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:690


getArrivalNameAsString

getArrivalNameAsString(airport, arrival, transitionIndex, runway): string

Gets the name of a arrival procedure as a string.

Parameters

NameTypeDescription
airportAirportFacilityThe airport to which the departure belongs.
arrivalProcedureAn arrival procedure definition.
transitionIndexnumberThe index of the arrival enroute transition.
runwayundefined | OneWayRunwayThe runway of the arrival, if any.

Returns

string

The name of the arrival procedure.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:631


getArrivalSegment

getArrivalSegment(plan): undefined | FlightPlanSegment

Gets the arrival segment from a flight plan.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

undefined | FlightPlanSegment

The arrival segment in the specified flight plan, or undefined if one does not exist.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:117


getBestApproachType

getBestApproachType(airport, includeVisual?, includeRnpAr?): ExtendedApproachType

Gets the best approach type available at an airport.

Parameters

NameTypeDefault valueDescription
airportAirportFacilityundefinedAn airport facility.
includeVisualbooleanfalseWhether to include visual approaches. Defaults to false.
includeRnpArbooleanfalseWhether to include RNP AR approaches. Defaults to false.

Returns

ExtendedApproachType

The best approach type available at the specified airport.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:443


getDepartureEnrouteTransitionName

getDepartureEnrouteTransitionName(procedure, transitionIndex, rwyTransitionIndex): string

Gets the transition name and creates a default transition when the procedure has no transitions.

Parameters

NameTypeDescription
procedureProcedureis the departure procedure.
transitionIndexnumberis the index of the enroute transition in the procedure.
rwyTransitionIndexnumberis the index of the runway transition in the procedure.

Returns

string

The transition name string.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:657


getDepartureNameAsString

getDepartureNameAsString(airport, departure, transitionIndex, runway): string

Gets the name of a departure procedure as a string.

Parameters

NameTypeDescription
airportAirportFacilityThe airport to which the departure belongs.
departureProcedureA departure procedure definition.
transitionIndexnumberThe index of the departure enroute transition.
runwayundefined | OneWayRunwayThe runway of the departure, if any.

Returns

string

The name of the departure procedure.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:604


getDepartureSegment

getDepartureSegment(plan): undefined | FlightPlanSegment

Gets the departure segment from a flight plan.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

undefined | FlightPlanSegment

The departure segment in the specified flight plan, or undefined if one does not exist.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:69


getDestinationSegment

getDestinationSegment(plan): undefined | FlightPlanSegment

Gets the destination segment from a flight plan.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

undefined | FlightPlanSegment

The destination segment in the specified flight plan, or undefined if one does not exist.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:145


getFirstAirportFromPlan

getFirstAirportFromPlan(plan): undefined | string

Gets and returns the ICAO of first airport fix from the flight plan legs.

Parameters

NameTypeDescription
planFlightPlanThe flight plan to use.

Returns

undefined | string

The ICAO of first airport fix from the flight plan legs.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1346


getFirstEnrouteSegment

getFirstEnrouteSegment(plan): undefined | FlightPlanSegment

Gets the first enroute segment from a flight plan.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

undefined | FlightPlanSegment

The first enroute segment in the specified flight plan, or undefined if one does not exist.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:83


getFromLegForArrowDisplay

getFromLegForArrowDisplay(plan, globalLegIndex): undefined | LegDefinition

Gets the leg from which a specified flight plan leg originates for the purpose of displaying the flight plan from-to arrow.

Parameters

NameTypeDescription
planFlightPlanA flight plan.
globalLegIndexnumberThe global index of the leg for which to get the from leg.

Returns

undefined | LegDefinition

The leg from which the specified flight plan leg originates for the purpose of displaying the from -to arrow.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1113

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

Gets the leg from which a specified flight plan leg originates for the purpose of displaying the flight plan from-to arrow.

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 leg from which the specified flight plan leg originates for the purpose of displaying the from -to arrow.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1123


getGlobalLegIndex

getGlobalLegIndex(lateralPlan, segmentIndex, segmentLegIndex): number

Gets the global leg index from a segment and segment leg index, whether or not the leg exists.

Parameters

NameTypeDescription
lateralPlanFlightPlanThe Lateral Flight Plan.
segmentIndexnumberThe Segment Index.
segmentLegIndexnumberThe Segment Leg Index.

Returns

number

The global leg index.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1024


getLastAirportFromPlan

getLastAirportFromPlan(plan): undefined | string

Gets and returns the ICAO of last airport fix from the flight plan legs.

Parameters

NameTypeDescription
planFlightPlanThe flight plan to use.

Returns

undefined | string

The ICAO of last airport fix from the flight plan legs.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1355


getLastEnrouteSegment

getLastEnrouteSegment(plan): undefined | FlightPlanSegment

Gets the last enroute segment from a flight plan.

Parameters

NameTypeDescription
planFlightPlanA flight plan.

Returns

undefined | FlightPlanSegment

The last enroute segment in the specified flight plan, or undefined if one does not exist.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:100


getLegIndexes

getLegIndexes(lateralPlan, leg): undefined | LegIndexes

Gets the indexes for a leg.

Parameters

NameTypeDescription
lateralPlanFlightPlanThe Lateral Flight Plan.
legLegDefinitionThe leg definition.

Returns

undefined | LegIndexes

The leg indexes, or undefined if not found.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1038


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

src/garminsdk/flightplan/FmsUtils.ts:1062


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

src/garminsdk/flightplan/FmsUtils.ts:1086


getNominalLegDtk

getNominalLegDtk(leg, out): Float64Array

Gets the nominal desired track for a flight plan leg, as [dtk, magVar] where dtk is the true desired track and magVar is the magnetic variation used to convert between true and magnetic desired tracks, both in degrees. If a nominal desired track could not be obtained, then the value of dtk will be equal to NaN.

Parameters

NameTypeDescription
legLegDefinitionThe leg for which to get the nominal desired track.
outFloat64ArrayThe array to which to write the results.

Returns

Float64Array

The nominal desired track for the specified flight plan leg, as [dtk, magVar] where dtk is the true desired track and magVar is the magnetic variation used to convert between true and magnetic desired tracks, both in degrees.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1182


getPublishedSpeedDescBasedOnSegment

getPublishedSpeedDescBasedOnSegment(publishedSpeedRestriction, segmentType): SpeedRestrictionType

Returns the speed restriction type to use based on the published speed and what segment it's in.

Parameters

NameTypeDescription
publishedSpeedRestrictionnumberThe published speed.
segmentTypeFlightPlanSegmentTypeThe segment type.

Returns

SpeedRestrictionType

The speed restriction type to use.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1566


getSequenceLegFixTypeSuffix

getSequenceLegFixTypeSuffix(leg, allowHdg?): string

Gets the string for the leg fix type for use in a sequence list.

Parameters

NameTypeDefault valueDescription
legLegDefinitionundefinedThe leg definition.
allowHdgbooleantrueIf false, will not return 'hdg'. Defaults to true.

Returns

string

The left padded suffix string or empty string.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1298


getVfrApproaches

getVfrApproaches(airport?): VfrApproachListItem[]

Gets an array of approach list items from an airport.

Parameters

NameTypeDescription
airport?AirportFacilityAn airport.

Returns

VfrApproachListItem[]

An array of approach list items for the specified airport.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:885


getVisualApproaches

getVisualApproaches(facility): ApproachProcedure[]

Gets the visual approaches for the facility.

Parameters

NameTypeDescription
facilityAirportFacilityis the facility.

Returns

ApproachProcedure[]

The Approach Procedures.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:910


isAltitudeEditable

isAltitudeEditable(plan, leg, isAdvancedVNav): boolean

Checks whether a flight plan leg's altitude constraint should be editable.

Parameters

NameTypeDescription
planFlightPlanThe flight plan containing the leg to evaluate.
legLegDefinitionThe flight plan leg to evaluate.
isAdvancedVNavbooleanWhether this is for advanced vnav mode or not.

Returns

boolean

whether a leg's altitude constraint should be editable.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1420


isAltitudeVisible

isAltitudeVisible(plan, leg, isAdvancedVNav, isEditable?): boolean

Checks whether a leg's altitude constraint should be visible.

Parameters

NameTypeDescription
planFlightPlanThe flight plan containing the leg to evaluate.
legLegDefinitionThe flight plan leg to evaluate.
isAdvancedVNavbooleanWhether this is for advanced vnav mode or not.
isEditable?booleanWhether the constraint is editable, leave undefined if we don't know yet.

Returns

boolean

whether a leg's altitude constraint should be visible.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1482


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

src/garminsdk/flightplan/FmsUtils.ts:522


isGpsApproach

isGpsApproach(approach): boolean

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

Parameters

NameTypeDescription
approachApproachProcedureThe approach procedure

Returns

boolean

True if GPS guidance is authorized, false otherwise.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:462


isLegAltitudeEdited

isLegAltitudeEdited(leg, isAdvancedVNav): boolean

Determines if a flight plan leg's altitude constraint is considered to be edited. If the leg does not have a designated altitude constraint, false will be returned.

Parameters

NameTypeDescription
legLegDefinitionA flight plan leg.
isAdvancedVNavbooleanWhether advanced VNAV is supported.

Returns

boolean

Whether the specified flight plan leg's altitude constraint is considered to be edited.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:1381


isLocalizerApproach

isLocalizerApproach(approach): boolean

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

Parameters

NameTypeDescription
approachApproachProcedureThe approach procedure

Returns

boolean

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

Defined in

src/garminsdk/flightplan/FmsUtils.ts:476


isPublishedApproachLoaded

isPublishedApproachLoaded(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

src/garminsdk/flightplan/FmsUtils.ts:533


isVfrApproachLoaded

isVfrApproachLoaded(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

src/garminsdk/flightplan/FmsUtils.ts:552


isVisualApproachLoaded

isVisualApproachLoaded(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

src/garminsdk/flightplan/FmsUtils.ts:542


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

src/garminsdk/flightplan/FmsUtils.ts:576


onFmsEvent

onFmsEvent<ID, K>(id, bus, baseTopic): Consumer<BaseFmsEvents[K]>

Subscribes to one of the event bus topics published by an FMS with a given ID.

Type parameters

NameType
IDextends string
Kextends keyof BaseFmsEvents

Parameters

NameTypeDescription
idIDThe ID of the FMS.
busEventBusThe event bus to which to subscribe.
baseTopicKThe base name of the topic to which to subscribe.

Returns

Consumer<BaseFmsEvents[K]>

A consumer for the specified event bus topic.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:44

onFmsEvent<ID, K>(id, subscriber, baseTopic): Consumer<BaseFmsEvents[K]>

Subscribes to one of the event bus topics published by an FMS with a given ID.

Type parameters

NameType
IDextends string
Kextends keyof BaseFmsEvents

Parameters

NameTypeDescription
idIDThe ID of the FMS.
subscriberEventSubscriber<FmsEventsForId<ID>>The event subscriber to use to subscribe.
baseTopicKThe base name of the topic to which to subscribe.

Returns

Consumer<BaseFmsEvents[K]>

A consumer for the specified event bus topic.

Defined in

src/garminsdk/flightplan/FmsUtils.ts:52


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

src/garminsdk/flightplan/FmsUtils.ts:1274