Class: G3XFms
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:71
A G3X Touch flight management system.
Constructors
Constructor
new G3XFms(
isPrimary
,bus
,flightPlanner
,options
):G3XFms
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:95
Creates a new instance of G3XFms.
Parameters
Parameter | Type | Description |
---|---|---|
isPrimary | boolean | Whether this FMS is the primary instance. Only the primary FMS will execute certain operations that have global effects across the entire airplane. |
bus | EventBus | The event bus. |
flightPlanner | FlightPlanner <"g3x" > | The internal flight planner for the new FMS to use. |
options | Readonly <G3XFmsOptions > | Options with which to configure the FMS. |
Returns
G3XFms
Properties
facLoader
readonly
facLoader:FacilityLoader
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:78
The facility loader used by this FMS.
flightPlanner
readonly
flightPlanner:FlightPlanner
<"g3x"
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:81
The internal flight planner used by this FMS.
internalFms
readonly
internalFms:Fms
<"g3x"
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:75
The Garmin FMS instance to which this FMS delegates for its internal flight plan data source.
Methods
activateApproach()
activateApproach(
isVtf
):Promise
<void
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1129
Activates the approach that is currently loaded into the internal primary flight plan. Activating the approach will insert the approach legs into the internal primary flight plan and either activate an on-route Direct-To targeting the faf (for non-vectors-to-final approaches) or activate the vectors-to-final leg to the faf (for vectors-to-final approaches).
Parameters
Parameter | Type | Description |
---|---|---|
isVtf | boolean | Whether to activate the approach as a vectors-to-final (VTF) approach. |
Returns
Promise
<void
>
activateLeg()
activateLeg(
segmentIndex
,segmentLegIndex
,planIndex
,inhibitImmediateSequence
):void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1097
Activates a flight plan leg for the internal flight plan source.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
segmentIndex | number | undefined | The index of the flight plan segment containing the leg to activate. |
segmentLegIndex | number | undefined | The index of the leg to activate in its containing segment. |
planIndex | number | FmsUtils.PRIMARY_PLAN_INDEX | The index of the flight plan containing the leg to activate. Defaults to the index of the primary flight plan. |
inhibitImmediateSequence | boolean | false | Whether to inhibit immediate automatic sequencing past the activated leg. Defaults to false . |
Returns
void
activateNearestLeg()
activateNearestLeg(
allowMissedApproach
):boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1332
Activates the nearest and most applicable leg of the internal primary flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
allowMissedApproach | boolean | false | Whether to allow activation of missed approach legs. Defaults to false . |
Returns
boolean
Whether a leg was successfully activated.
addUserFacility()
addUserFacility(
userFacility
):void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:460
Adds a user facility.
Parameters
Parameter | Type | Description |
---|---|---|
userFacility | UserFacility | the facility to add. |
Returns
void
buildApproachPreviewPlan()
buildApproachPreviewPlan(
calculator
,facility
,approachIndex
,isVtf
):Promise
<FlightPlan
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1345
Builds a flight plan to preview an approach procedure that can be loaded into the internal primary flight plan.
Parameters
Parameter | Type | Description |
---|---|---|
calculator | FlightPathCalculator | The flight path calculator to assign to the preview plan. |
facility | AirportFacility | The airport facility containing the published approach on which the VFR approach to preview is based. |
approachIndex | number | The index of the published approach on which the VFR approach to preview is based. |
isVtf | boolean | Whether to preview the approach as a vectors-to-final (VTF) approach. |
Returns
Promise
<FlightPlan
>
A Promise which will be fulfilled with the preview plan after it has been built.
canActivateApproach()
canActivateApproach():
boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1111
Checks whether an approach can be activated. An approach can be activated if and only if the primary flight plan has a non-vectors-to-final approach loaded.
Returns
boolean
Whether an approach can be activated.
canActivateLeg()
canActivateLeg(
segmentIndex
,segmentLegIndex
):boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:416
Checks whether a leg in the primary flight plan can be manually activated.
Parameters
Parameter | Type | Description |
---|---|---|
segmentIndex | number | The index of the segment in which the leg resides. |
segmentLegIndex | number | The index of the leg in its segment. |
Returns
boolean
Whether the leg can be manually activated.
canApproachLoad()
canApproachLoad():
boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1077
Method to check whether an approach can load, or only activate.
Returns
boolean
true if the approach can be loaded and not activated, otherwise the approach can only be immediatly activated.
cancelDirectTo()
cancelDirectTo():
boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1288
Cancels the currently active internal on-route or off-route Direct-To.
Returns
boolean
Whether an active Direct-To was cancelled.
canDirectTo()
canDirectTo(
segmentIndex
,segmentLegIndex
):boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:427
Checks whether a leg in the primary flight plan is a valid direct to target.
Parameters
Parameter | Type | Description |
---|---|---|
segmentIndex | number | The index of the segment in which the leg resides. |
segmentLegIndex | number | The index of the leg in its segment. |
Returns
boolean
Whether the leg is a valid direct to target.
Throws
Error if a leg could not be found at the specified location.
canEdit()
canEdit():
boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:381
Checks whether the internal flight plans can be edited.
Returns
boolean
Whether the internal flight plans can be edited.
createDirectTo()
createDirectTo(
target
,course?
):Promise
<void
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1225
Creates and activates a Direct-To for the internal flight plan source. If the target fix does not appear in the internal flight plan, then this will replace the primary flight plan with a single leg to the Direct-To's target waypoint and create and activate a Direct-To targeting the waypoint. If the target fix does appear in the internal flight plan, then this will create and activate an on-route Direct-To targeting the last occurrence of the target fix in the flight plan.
Parameters
Parameter | Type | Description |
---|---|---|
target | Facility | The Direct-To's target waypoint facility. |
course? | number | The magnetic course for the Direct-To, in degrees. If not defined, then the Direct-To will be initiated from the airplane's present position. |
Returns
Promise
<void
>
deleteFlightPlanName()
deleteFlightPlanName(
planIndex
):void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:406
Deletes the name of an internal flight plan.
Parameters
Parameter | Type | Description |
---|---|---|
planIndex | number | The index of the flight plan for which to delete the name. |
Returns
void
deletePrimaryFlightPlan()
deletePrimaryFlightPlan():
Promise
<void
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1308
Empties the internal primary flight plan and deletes its name.
Returns
Promise
<void
>
emptyPrimaryFlightPlan()
emptyPrimaryFlightPlan():
Promise
<void
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1295
Empties the internal primary flight plan.
Returns
Promise
<void
>
getApproachRunway()
getApproachRunway():
null
|OneWayRunway
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:389
Gets the approach runway:
Returns
null
| OneWayRunway
Selected approach runway
getCurrentFms()
getCurrentFms():
Fms
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:191
Gets the Garmin FMS instance for the current flight plan source.
Returns
The Garmin FMS instance for the current flight plan source.
getDirectToFlightPlan()
getDirectToFlightPlan():
FlightPlan
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:373
Gets the off-route Direct-To flight plan for the current flight plan source.
Returns
The off-route Direct-To flight plan for the current flight plan source.
Throws
Error if the off-route Direct-To flight plan does not exist.
getDirectToState()
getDirectToState():
DirectToState
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:435
Gets the current Direct To State.
Returns
the DirectToState.
getDirectToTargetIcao()
getDirectToTargetIcao():
undefined
|string
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:443
Gets the ICAO string of the current Direct To target.
Returns
undefined
| string
The ICAO string of the current Direct To target, or undefined if Direct To is not active.
getExternalDirectToFlightPlan()
getExternalDirectToFlightPlan(
index
):FlightPlan
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:364
Gets the off-route Direct-To flight plan for an external flight plan source.
Parameters
Parameter | Type | Description |
---|---|---|
index | G3XExternalNavigatorIndex | The index of the external flight plan source from which to get the flight plan. |
Returns
The off-route Direct-To flight plan for the specified external flight plan source.
Throws
Error if the external flight plan source is not supported or if the off-route Direct-To flight plan does not exist.
getExternalFlightPlan()
getExternalFlightPlan(
sourceIndex
,index
):FlightPlan
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:256
Gets a specified external flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
sourceIndex | G3XExternalNavigatorIndex | undefined | The index of the external flight plan source from which to get a flight plan. |
index | number | FmsUtils.PRIMARY_PLAN_INDEX | The index of the flight plan. Defaults to the index of the primary flight plan. |
Returns
The requested external flight plan.
Throws
Error if the external flight plan source is not supported or if no flight plan exists at the specified index.
getExternalFms()
getExternalFms(
index
):Fms
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:178
Retrieves the Garmin FMS instance to which this FMS delegates for an external flight plan source.
Parameters
Parameter | Type | Description |
---|---|---|
index | G3XExternalNavigatorIndex | The index of the external flight plan source for which to retrieve an FMS. |
Returns
The Garmin FMS instance to which this FMS delegates for the specified external flight plan source.
Throws
Error if the external flight plan source is not supported.
getExternalPrimaryFlightPlan()
getExternalPrimaryFlightPlan(
index
):FlightPlan
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:310
Gets the primary flight plan for an external flight plan source.
Parameters
Parameter | Type | Description |
---|---|---|
index | G3XExternalNavigatorIndex | The index of the external flight plan source from which to get the flight plan. |
Returns
The primary flight plan for the specified external flight plan source.
Throws
Error if the external flight plan source is not supported or if the primary flight plan does not exist.
getFlightPlan()
getFlightPlan(
index
):FlightPlan
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:266
Gets a specified flight plan from the current flight plan source.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
index | number | FmsUtils.PRIMARY_PLAN_INDEX | The index of the flight plan. Defaults to the index of the primary flight plan. |
Returns
The requested flight plan from the current flight plan source.
Throws
Error if no flight plan exists at the specified index.
getInternalDirectToFlightPlan()
getInternalDirectToFlightPlan():
FlightPlan
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:353
Gets the off-route Direct-To flight plan for the internal flight plan source.
Returns
The off-route Direct-To flight plan for the internal flight plan source.
Throws
Error if the off-route Direct-To flight plan does not exist.
getInternalEventSubscriber()
getInternalEventSubscriber():
EventSubscriber
<FmsEventsForId
<"g3x"
>>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:149
Gets an event bus subscriber for topics published by this FMS.
Returns
EventSubscriber
<FmsEventsForId
<"g3x"
>>
An event bus subscriber for topics published by this flight planner.
getInternalFlightPlan()
getInternalFlightPlan(
index
):FlightPlan
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:244
Gets a specified internal flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
index | number | FmsUtils.PRIMARY_PLAN_INDEX | The index of the flight plan. Defaults to the index of the primary flight plan. |
Returns
The requested internal flight plan.
Throws
Error if no flight plan exists at the specified index.
getInternalPrimaryFlightPlan()
getInternalPrimaryFlightPlan():
FlightPlan
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:300
Gets the primary flight plan for the internal flight plan source.
Returns
The primary flight plan for the internal flight plan source.
Throws
Error if the primary flight plan does not exist.
getPrimaryFlightPlan()
getPrimaryFlightPlan():
FlightPlan
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:319
Gets the primary flight plan for the current flight plan source.
Returns
The primary flight plan for the current flight plan source.
Throws
Error if the primary flight plan does not exist.
hasDirectToFlightPlan()
hasDirectToFlightPlan():
boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:344
Checks whether the off-route Direct-To flight plan exists for the current flight plan source.
Returns
boolean
Whether the off-route Direct-To flight plan exists for the current flight plan source.
hasExternalDirectToFlightPlan()
hasExternalDirectToFlightPlan(
index
):boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:336
Checks whether the off-route Direct-To flight plan exists for an external flight plan source.
Parameters
Parameter | Type | Description |
---|---|---|
index | G3XExternalNavigatorIndex | The index of the external flight plan source to check. |
Returns
boolean
Whether the off-route Direct-To flight plan exists for the specified external flight plan source.
hasExternalFlightPlan()
hasExternalFlightPlan(
sourceIndex
,index
):boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:225
Checks whether an external indexed flight plan exists.
Parameters
Parameter | Type | Description |
---|---|---|
sourceIndex | G3XExternalNavigatorIndex | The index of the external flight plan source to check. |
index | number | A flight plan index. |
Returns
boolean
Whether an external flight plan at the specified index exists.
hasExternalPrimaryFlightPlan()
hasExternalPrimaryFlightPlan(
index
):boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:283
Checks whether the primary flight plan exists for an external flight plan source.
Parameters
Parameter | Type | Description |
---|---|---|
index | G3XExternalNavigatorIndex | The index of the external flight plan source to check. |
Returns
boolean
Whether the primary flight plan exists for the specified external flight plan source.
hasFlightPlan()
hasFlightPlan(
index
):boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:234
Checks whether an indexed flight plan exists for the current flight plan source.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | A flight plan index. |
Returns
boolean
Whether a flight plan at the specified index exists for the current flight plan source.
hasInternalDirectToFlightPlan()
hasInternalDirectToFlightPlan():
boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:327
Checks whether the off-route Direct-To flight plan exists for the internal flight plan source.
Returns
boolean
Whether the off-route Direct-To flight plan exists for the internal flight plan source.
hasInternalFlightPlan()
hasInternalFlightPlan(
index
):boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:215
Checks whether an internal indexed flight plan exists.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | A flight plan index. |
Returns
boolean
Whether an internal flight plan at the specified index exists.
hasInternalPrimaryFlightPlan()
hasInternalPrimaryFlightPlan():
boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:274
Checks whether the primary flight plan exists for the internal flight plan source.
Returns
boolean
Whether the primary flight plan exists for the internal flight plan source.
hasPrimaryFlightPlan()
hasPrimaryFlightPlan():
boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:291
Checks whether the primary flight plan exists for the current flight plan source.
Returns
boolean
Whether the primary flight plan exists for the current flight plan source.
initPrimaryFlightPlan()
initPrimaryFlightPlan(
force
):Promise
<void
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:206
Initializes the primary flight plan for the internal flight plan source.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
force | boolean | false | Whether to force a new primary flight plan to be created, even if one already exists. |
Returns
Promise
<void
>
insertWaypoint()
insertWaypoint(
segmentIndex
,facility
,segmentLegIndex?
):Promise
<undefined
|LegDefinition
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:482
Inserts a waypoint into the internal primary flight plan.
Parameters
Parameter | Type | Description |
---|---|---|
segmentIndex | number | The index of the flight plan segment into which to insert the waypoint. |
facility | Facility | The waypoint facility to insert. |
segmentLegIndex? | number | The index in the segment at which to insert the waypoint. If a leg already exists at the index, the existing leg and all subsequent legs will be shifted to the right. If not defined, the waypoint will be inserted at the end of the segment. |
Returns
Promise
<undefined
| LegDefinition
>
The leg that was inserted into the flight plan, or undefined
if the insertion operation could not be
carried out.
insertWaypointAtEnd()
insertWaypointAtEnd(
facility
):Promise
<undefined
|LegDefinition
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:528
Inserts a waypoint at the end of the internal primary flight plan.
Parameters
Parameter | Type | Description |
---|---|---|
facility | Facility | The waypoint facility to insert. |
Returns
Promise
<undefined
| LegDefinition
>
The leg that was inserted into the flight plan, or undefined
if the insertion operation could not be
carried out.
invertFlightplan()
invertFlightplan():
void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1069
Inverts the internal primary flightplan.
Returns
void
isFirstEnrouteSegment()
isFirstEnrouteSegment(
segmentIndex
):boolean
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:452
Checks if a segment is the first enroute segment that is not an airway.
Parameters
Parameter | Type | Description |
---|---|---|
segmentIndex | number | is the segment index of the segment to check |
Returns
boolean
whether or not the segment is the first enroute segment that is not an airway.
loadApproach()
loadApproach(
facility
,approachIndex
,activate
,isVtf
):Promise
<boolean
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:599
Loads an approach into the internal primary flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
facility | AirportFacility | undefined | The airport facility containing the published approach on which the VFR approach to load is based. |
approachIndex | number | undefined | The index of the published approach on which the VFR approach to load is based. |
activate | boolean | false | Whether to immediately activate the approach after it has been loaded. Defaults to false . |
isVtf | boolean | false | Whether to activate the approach as a vectors-to-final (VTF) approach. Ignored if activate is false . Defaults to false . |
Returns
Promise
<boolean
>
A Promise which will be fulfilled with whether the specified approach was successfully loaded into the flight plan.
onInternalEvent()
onInternalEvent<
K
>(baseTopic
):Consumer
<BaseFmsEvents
[K
]>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:158
Subscribes to one of the event bus topics published by this FMS.
Type Parameters
Type Parameter |
---|
K extends keyof BaseFmsEvents |
Parameters
Parameter | Type | Description |
---|---|---|
baseTopic | K | The base name of the topic to which to subscribe. |
Returns
A consumer for the specified event bus topic.
removeApproach()
removeApproach():
Promise
<void
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:649
Removes the approach that is currently loaded into the internal primary flight plan.
Returns
Promise
<void
>
removeUserFacility()
removeUserFacility(
userFacility
):void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:468
Removes a user facility.
Parameters
Parameter | Type | Description |
---|---|---|
userFacility | UserFacility | the facility to remove. |
Returns
void
removeWaypoint()
removeWaypoint(
segmentIndex
,segmentLegIndex
):Promise
<boolean
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:552
Removes a leg to a waypoint from the internal primary flight plan.
Parameters
Parameter | Type | Description |
---|---|---|
segmentIndex | number | The index of the segment containing the leg to remove. |
segmentLegIndex | number | The index of the leg to remove in its segment. |
Returns
Promise
<boolean
>
Whether the waypoint was successfully removed.
resetAllFlightPlans()
resetAllFlightPlans():
Promise
<void
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:1321
Resets all internal flight plans to their initial empty states, and cancels any active off-route Direct-To.
Returns
Promise
<void
>
setFlightPlanName()
setFlightPlanName(
planIndex
,name
):void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:398
Sets the name of an internal flight plan.
Parameters
Parameter | Type | Description |
---|---|---|
planIndex | number | The index of the flight plan for which to set the name. |
name | string | The new name for the flight plan. |
Returns
void
tryGetExternalFms()
tryGetExternalFms(
index
):undefined
|Fms
<any
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFms.ts:168
Attempts to retrieve the Garmin FMS instance to which this FMS delegates for an external flight plan source.
Parameters
Parameter | Type | Description |
---|---|---|
index | G3XExternalNavigatorIndex | The index of the external flight plan source for which to retrieve an FMS. |
Returns
undefined
| Fms
<any
>
The Garmin FMS instance to which this FMS delegates for the specified external flight plan source, or
undefined
if the external flight plan source is not supported.