Class: WTLineFms<T>
Defined in: wtlinesdk/fms/WTLineFms.ts:70
A WT 21 FMS
Extended by
Type Parameters
Type Parameter |
---|
T extends FlightPlanIndexTypes <number , number > |
Constructors
Constructor
new WTLineFms<
T
>(bus
,facLoader
,flightPlanner
,verticalPathCalculator
,fixInfo
,flightPlanRepo
):WTLineFms
<T
>
Defined in: wtlinesdk/fms/WTLineFms.ts:155
Initialize an instance of the FMS for the WT21.
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | is the event bus |
facLoader | FacilityLoader | The facility loader. |
flightPlanner | FlightPlanner | is the flight planner |
verticalPathCalculator | SmoothingPathCalculator | is the VNAV Path Calculator. |
fixInfo | WTLineFixInfoManager | The fix info manager. |
flightPlanRepo | WTLineFlightPlanRepository <FlightPlanIndexType <T >, MainFlightPlanIndexType <T >> | The flight plan repository. |
Returns
WTLineFms
<T
>
Properties
approachDetails
approachDetails:
ApproachDetails
Defined in: wtlinesdk/fms/WTLineFms.ts:101
bus
readonly
bus:EventBus
Defined in: wtlinesdk/fms/WTLineFms.ts:156
is the event bus
facilityInfo
facilityInfo:
FacilityInfo
Defined in: wtlinesdk/fms/WTLineFms.ts:96
Information on our origin, arrival and destination facilities to save lookups. When in MOD, this will reflect the current origin and destination in the MOD plan.
Deprecated
look facilities up using facLoader instead - they are cached anyway, and this does not support the secondary plan
facLoader
readonly
facLoader:FacilityLoader
Defined in: wtlinesdk/fms/WTLineFms.ts:157
The facility loader.
fixInfo
readonly
fixInfo:WTLineFixInfoManager
Defined in: wtlinesdk/fms/WTLineFms.ts:160
The fix info manager.
flightPlanner
readonly
flightPlanner:FlightPlanner
Defined in: wtlinesdk/fms/WTLineFms.ts:158
is the flight planner
flightPlanRepo
protected
readonly
flightPlanRepo:WTLineFlightPlanRepository
<FlightPlanIndexType
<T
>,MainFlightPlanIndexType
<T
>>
Defined in: wtlinesdk/fms/WTLineFms.ts:161
The flight plan repository.
lnavLegDistanceAlong
readonly
lnavLegDistanceAlong:Accessible
<number
>
Defined in: wtlinesdk/fms/WTLineFms.ts:143
lnavLegDistanceRemaining
readonly
lnavLegDistanceRemaining:Accessible
<number
>
Defined in: wtlinesdk/fms/WTLineFms.ts:144
lnavTrackedLegIndex
readonly
lnavTrackedLegIndex:Accessible
<number
>
Defined in: wtlinesdk/fms/WTLineFms.ts:142
planInMod
readonly
planInMod:MutableSubscribable
<boolean
,boolean
>
Defined in: wtlinesdk/fms/WTLineFms.ts:72
Set to true by FMC pages when the plan on this FMS instance is in modification and awaiting a cancel or exec.
ppos
readonly
ppos:GeoPoint
Defined in: wtlinesdk/fms/WTLineFms.ts:79
remotePlanInMod
remotePlanInMod:
boolean
=false
Defined in: wtlinesdk/fms/WTLineFms.ts:75
Set to true when an event is received from the bus indicating that another instrument is in MOD on the plan.
userFacilities
readonly
userFacilities:ExistingUserWaypointsArray
Defined in: wtlinesdk/fms/WTLineFms.ts:83
verticalDtoWasCreatedInModPlan
verticalDtoWasCreatedInModPlan:
boolean
=false
Defined in: wtlinesdk/fms/WTLineFms.ts:132
Set to true when a new vertical DTO is created, meaning its origin should be regularly updated while in MOD and when hitting EXEC. Should be reset whenever leaving MOD.
verticalDtoWasCreatedInModPlanWasAutomatic
verticalDtoWasCreatedInModPlanWasAutomatic:
boolean
=false
Defined in: wtlinesdk/fms/WTLineFms.ts:138
Set to true when the vertical DTO in the mod flight plan was automatic
verticalPathCalculator
readonly
verticalPathCalculator:SmoothingPathCalculator
Defined in: wtlinesdk/fms/WTLineFms.ts:159
is the VNAV Path Calculator.
Methods
activateLeg()
activateLeg(
segmentIndex
,legIndex
,removeExistingDTO
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:2970
Method to activate a leg in the flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
segmentIndex | number | undefined | is the index of the segment containing the leg to activate. |
legIndex | number | undefined | is the index of the leg in the selected segment activate. |
removeExistingDTO | boolean | true | Whether to check for and remove the existing direct to legs. |
Returns
void
activateSecondaryPlan()
activateSecondaryPlan():
void
Defined in: wtlinesdk/fms/WTLineFms.ts:368
Activates the secondary flight plan.
Returns
void
addUserFacility()
addUserFacility(
userFacility
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:802
Adds a user facility.
Parameters
Parameter | Type | Description |
---|---|---|
userFacility | UserFacility | the facility to add. |
Returns
void
canActivateLeg()
canActivateLeg(
segmentIndex
,segmentLegIndex
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:642
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: wtlinesdk/fms/WTLineFms.ts:2164
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.
cancelMod()
cancelMod():
void
Defined in: wtlinesdk/fms/WTLineFms.ts:382
Handles when the CANCEL MOD button is pressed.
FIXME make work with multiple plans
Returns
void
canDirectTo()
canDirectTo(
segmentIndex
,segmentLegIndex
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:688
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.
canEditPlan()
canEditPlan(
mainPlanIndex
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:440
Checks whether the plan can go into MOD/be edited on this instance of WT21Fms.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
mainPlanIndex | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | the main plan index to query |
Returns
boolean
Whether to allow plan edits or not
canMissedApproachActivate()
canMissedApproachActivate():
boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:2990
Method to check if there is a currently loaded missed approach to be activated.
Returns
boolean
whether the approach can activate
clearApproachDetails()
protected
clearApproachDetails():void
Defined in: wtlinesdk/fms/WTLineFms.ts:4686
Clears the approach details
Returns
void
copyActivePlanIntoSecondaryPlan()
copyActivePlanIntoSecondaryPlan():
void
Defined in: wtlinesdk/fms/WTLineFms.ts:361
Copies the active flight plan into the secondary flight plan.
Returns
void
createDirectTo()
createDirectTo(
segmentIndex?
,segmentLegIndex?
,isNewDTO?
,course?
,facility?
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:3028
Method to create a direct to in the plan. This method will also then call activateLeg. A DTO consists of 4 legs:
- The original leg that was used to create the DTO. a. We preserve this leg so that we will have a vlid FROM leg in case the DTO needs to be removed.
- A DISCO leg, because a DTO is not connected to any legs that came before it.
- The FROM leg, initializes to the present position (PPOS).
- The TO leg.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
segmentIndex? | number | undefined | is the index of the segment containing the leg to activate as direct to. |
segmentLegIndex? | number | undefined | is the index of the leg in the specified segment to activate as direct to. |
isNewDTO? | boolean | true | whether to treat this as a new directo to or not. |
course? | number | undefined | is the course for this direct to in degrees magnetic, if specified. |
facility? | Facility | undefined | is the new facility to add to the plan and then create a direct to for, for the case of a direct to random. |
Returns
void
createDirectToAirport()
createDirectToAirport(
airportFacility
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:3153
Method to create a direct to in the flight plan to an arbitrary airport.
This:
- empties out the flight plan;
- sets the destination as the provided airport facility;
- creates a direct-to sequence to that facility.
Parameters
Parameter | Type | Description |
---|---|---|
airportFacility | AirportFacility | the airport facility to go direct to |
Returns
void
createDirectToExistingNextValidLeg()
createDirectToExistingNextValidLeg(
globalLegIndex
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:3369
Creates a direct to existing to the next valid leg in the plan after the input global leg index.
Parameters
Parameter | Type | Description |
---|---|---|
globalLegIndex | number | The global leg index. |
Returns
boolean
Whether a direct to existing was created.
createDirectToRunwayVisualApproach()
createDirectToRunwayVisualApproach(
airportFacility
,runway
):Promise
<void
>
Defined in: wtlinesdk/fms/WTLineFms.ts:3184
Method to create a direct to in the flight plan to an arbitrary airport+runway using a visual approach.
This:
- empties out the flight plan;
- sets the destination as the provided airport facility;
- inserts a visual approach to the provided runway;
- creates a direct-to sequence to the FAF of that approach.
Parameters
Parameter | Type | Description |
---|---|---|
airportFacility | AirportFacility | the airport facility to go direct to |
runway | OneWayRunway | the one way runway to insert a visual approach for |
Returns
Promise
<void
>
createVerticalDirectTo()
createVerticalDirectTo(
plan
,globalIndex
,finalAltitude
,isAutomatic
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:3301
Creates a vertical direct-to to a leg. This creates a manual constraint with an fpa that reaches the desired altitude using a continuous descent from the present position and altitude.
NOTE: This will not delete any constraints - it is the responsibility of the caller to do so.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
plan | FlightPlan | undefined | the plan to use |
globalIndex | number | undefined | the global leg index to apply the constraint to |
finalAltitude | number | undefined | the altitude to target, in metres. |
isAutomatic | boolean | false | whether this was an automatic VDTO (created with a lateral DTO) |
Returns
boolean
whether the vdto was successfully created
emptyFlightPlanForEdit()
emptyFlightPlanForEdit(
mainPlanIndex
,notify
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:3414
Empties a main flight plan as part of an edit that resets the flight plan, creating a MOD plan
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
mainPlanIndex | MainFlightPlanIndexType <T > | undefined | the index of the plan to target the edit to |
notify | boolean | true | whether to emit sync events |
Returns
void
ensureOnlyOneSegmentOfType()
protected
ensureOnlyOneSegmentOfType(planIndex
,segmentType
,insert
):number
Defined in: wtlinesdk/fms/WTLineFms.ts:1242
Method to ensure only one segment of a specific type exists in the flight plan and optionally insert it if needed.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
planIndex | FlightPlanIndexType <T > | undefined | is the index of the plan to edit. |
segmentType | FlightPlanSegmentType | undefined | is the segment type we want to evaluate. |
insert | boolean | true | is whether to insert the segment if missing |
Returns
number
segmentIndex of the only segment of this type in the flight plan, -1 if insert is false and and the segment does not exist.
execModFlightPlan()
execModFlightPlan():
void
Defined in: wtlinesdk/fms/WTLineFms.ts:321
Executes changes to the mod flight plan.
Returns
void
findLastEnrouteSegmentIndex()
findLastEnrouteSegmentIndex(
plan
):number
Defined in: wtlinesdk/fms/WTLineFms.ts:2149
Method to find the last enroute segment of the supplied flight plan.
Parameters
Parameter | Type | Description |
---|---|---|
plan | FlightPlan | is the flight plan to find the last enroute segment in. |
Returns
number
a segment index.
getAirwayDistance()
getAirwayDistance(
segmentIndex
):number
Defined in: wtlinesdk/fms/WTLineFms.ts:1151
Method to get the distance of an airway segment.
Parameters
Parameter | Type | Description |
---|---|---|
segmentIndex | number | is the index of the segment of the airway. |
Returns
number
the cumulative distance for the airway segment.
getCdiSource()
getCdiSource():
NavSourceId
Defined in: wtlinesdk/fms/WTLineFms.ts:220
Returns
getDirectToState()
getDirectToState(
planIndex
):DirectToState
Defined in: wtlinesdk/fms/WTLineFms.ts:719
Gets the current Direct To State.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
planIndex | WTLineLegacyFlightPlans | WTLineFmsUtils.PRIMARY_ACT_PLAN_INDEX | The Plan Index to check. |
Returns
the DirectToState.
getDirectToTargetIcao()
getDirectToTargetIcao():
undefined
|string
Defined in: wtlinesdk/fms/WTLineFms.ts:753
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.
Deprecated
use getDirectToTargetIcaoStruct instead
getDirectToTargetIcaoStruct()
getDirectToTargetIcaoStruct(
planIndex
):undefined
|IcaoValue
Defined in: wtlinesdk/fms/WTLineFms.ts:762
Gets the ICAO string of the current Direct To target.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
planIndex | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | the plan index. |
Returns
undefined
| IcaoValue
The ICAO string of the current Direct To target, or undefined if Direct To is not active.
getFlightPlan()
getFlightPlan(
index
):FlightPlan
Defined in: wtlinesdk/fms/WTLineFms.ts:239
Gets a specified flightplan, or by default the primary flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
index | WTLineLegacyFlightPlans | WTLineLegacyFlightPlans.Active | The index of the flight plan. |
Returns
the requested flight plan
Throws
Error if no flight plan exists at the specified index.
getFlightPlanAlternate()
getFlightPlanAlternate(
planIndex?
):undefined
|string
Defined in: wtlinesdk/fms/WTLineFms.ts:512
Gets the ALTN airport of a flight plan
Parameters
Parameter | Type | Description |
---|---|---|
planIndex? | FlightPlanIndexType <T > | the flight plan index |
Returns
undefined
| string
the ALTN airport FS ICAO, or undefined
getPilotDefinedWaypoints()
getPilotDefinedWaypoints():
SubscribableArray
<FacilityWaypoint
<UserFacility
>>
Defined in: wtlinesdk/fms/WTLineFms.ts:828
Gets all pilot waypoints
Returns
SubscribableArray
<FacilityWaypoint
<UserFacility
>>
a subscribable array of user facility waypoints
getPilotDefinedWaypointsArray()
getPilotDefinedWaypointsArray(): readonly
FacilityWaypoint
<UserFacility
>[]
Defined in: wtlinesdk/fms/WTLineFms.ts:837
Gets all pilot waypoints
Returns
readonly FacilityWaypoint
<UserFacility
>[]
an array of user facility waypoints
getPlanIndexToDisplay()
getPlanIndexToDisplay(
mainPlanIndex
):FlightPlanIndexType
<T
>
Defined in: wtlinesdk/fms/WTLineFms.ts:396
Gets the current lateral flight plan index for the FMC pages based on whether the plan is in MOD or ACT.
Parameters
Parameter | Type | Description |
---|---|---|
mainPlanIndex | MainFlightPlanIndexType <T > | the main plan to target |
Returns
A Lateral Flight Plan
getPlanToDisplay()
getPlanToDisplay(
mainPlanIndex
):FlightPlan
Defined in: wtlinesdk/fms/WTLineFms.ts:405
Gets the current lateral flight plan for the FMC pages based on whether the plan is in MOD or ACT.
Parameters
Parameter | Type | Description |
---|---|---|
mainPlanIndex | MainFlightPlanIndexType <T > | the main plan to target |
Returns
A Lateral Flight Plan
getPlanToEdit()
getPlanToEdit(
index
):FlightPlan
Defined in: wtlinesdk/fms/WTLineFms.ts:431
Gets the flight plan to edit depending on the desired plan on which to make a modification, taking into account MOD logic
Parameters
Parameter | Type | Description |
---|---|---|
index | FlightPlanIndexType <T > | the index of the plan |
Returns
a flight plan
getPrimaryFlightPlan()
getPrimaryFlightPlan():
FlightPlan
Defined in: wtlinesdk/fms/WTLineFms.ts:256
Gets the primary lateral flight plan.
Returns
The primary flight plan.
Throws
Error if the primary flight plan does not exist.
getSecondaryFlightPlan()
getSecondaryFlightPlan():
FlightPlan
Defined in: wtlinesdk/fms/WTLineFms.ts:306
Gets the secondary lateral flight plan.
Returns
The secondary flight plan.
Throws
Error if the secondary flight plan does not exist.
getVerticalPlanToDisplay()
getVerticalPlanToDisplay(
mainPlanIndex
):VerticalFlightPlan
Defined in: wtlinesdk/fms/WTLineFms.ts:414
Gets the current vertical flight plan for the FMC pages based on whether the plan is in MOD or ACT.
Parameters
Parameter | Type | Description |
---|---|---|
mainPlanIndex | MainFlightPlanIndexType <T > | the main plan to target |
Returns
A Vertical Flight Plan
hasFlightPlan()
hasFlightPlan(
index
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:229
Checks whether an indexed flight plan exists.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | A flight plan index. |
Returns
boolean
Whether a flight plan at the specified index exists.
hasPrimaryFlightPlan()
hasPrimaryFlightPlan():
boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:247
Checks whether the primary flight plan exists.
Returns
boolean
Whether the primary flight plan exists.
hasPrimaryModFlightPlan()
hasPrimaryModFlightPlan():
boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:272
Checks whether the Primary Mod Flight Plan Exists - when modifications to the plan are being made.
Returns
boolean
Whether the Primary Mod Flight Plan Exists flight plan exists.
hasSecondaryFlightPlan()
hasSecondaryFlightPlan():
boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:297
Checks whether the Secondary Flight Plan Exists.
Returns
boolean
Whether the Secondary Flight Plan Exists flight plan exists.
initFlightPlans()
initFlightPlans():
Promise
<void
>
Defined in: wtlinesdk/fms/WTLineFms.ts:215
Initializes and empties the flight plans used by the FMS
Returns
Promise
<void
>
insertAirwaySegment()
insertAirwaySegment(
airway
,entry
,exit
,segmentIndex
,legIndex
,planIndex
):number
Defined in: wtlinesdk/fms/WTLineFms.ts:3442
Adds an airway and airway segment to the flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
airway | AirwayData | undefined | The airway object. |
entry | IntersectionFacility | undefined | The entry intersection facility. |
exit | IntersectionFacility | undefined | The exit intersection facility. |
segmentIndex | number | undefined | Is the segment index for the entry leg. |
legIndex | number | undefined | Is the leg index of the entry leg in the segment. |
planIndex | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | Is the index of the plan to target the edit to. |
Returns
number
The index of the airway segment that was added to the flight plan.
insertApproach()
insertApproach(
facility
,approachIndex
,approachTransitionIndex
,visualRunwayNumber?
,visualRunwayDesignator?
,transStartIndex?
,skipCourseReversal?
,visualRunwayOffset?
,planIndex?
):Promise
<boolean
>
Defined in: wtlinesdk/fms/WTLineFms.ts:2190
Method to add or replace an approach procedure in the flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
facility | AirportFacility | undefined | is the facility that contains the procedure to add. |
approachIndex | number | undefined | is the index of the approach procedure. |
approachTransitionIndex | number | undefined | is the index of the approach transition. |
visualRunwayNumber? | number | undefined | is the visual runway number, if any. |
visualRunwayDesignator? | RunwayDesignator | undefined | is the visual runway designator, if any. |
transStartIndex? | number | undefined | is the starting leg index for the transition, if any. |
skipCourseReversal? | boolean | undefined | Whether to skip the course reversal. |
visualRunwayOffset? | number | undefined | The visual runway offset. |
planIndex? | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | The plan index to target the edit to. |
Returns
Promise
<boolean
>
A Promise which is fulfilled with whether the approach was inserted.
insertArrival()
insertArrival(
facility
,arrivalIndex
,arrivalRunwayTransitionIndex
,enrouteTransitionIndex
,oneWayRunway?
,planIndex?
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:1658
Method to add or replace an arrival procedure in the flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
facility | AirportFacility | undefined | is the facility that contains the procedure to add. |
arrivalIndex | number | undefined | is the index of the arrival procedure. |
arrivalRunwayTransitionIndex | number | undefined | is the index of the arrival runway transition. |
enrouteTransitionIndex | number | undefined | is the index of the enroute transition. |
oneWayRunway? | OneWayRunway | undefined | is the one way runway to set as the destination leg. |
planIndex? | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | is the index of the plan to target the edit to |
Returns
void
Deprecated
Please use loadArrival()
instead.
insertDeparture()
insertDeparture(
facility
,departureIndex
,departureRunwayIndex
,enrouteTransitionIndex
,oneWayRunway?
,planIndex?
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:1394
Method to add or replace a departure procedure in the flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
facility | AirportFacility | undefined | is the facility that contains the procedure to add. |
departureIndex | number | undefined | is the index of the departure |
departureRunwayIndex | number | undefined | is the index of the runway transition |
enrouteTransitionIndex | number | undefined | is the index of the enroute transition |
oneWayRunway? | OneWayRunway | undefined | is the one way runway to set as the origin leg. |
planIndex? | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | is the index of the plan to target the edit to |
Returns
void
Deprecated
Please use loadDeparture()
instead.
insertHold()
insertHold(
segmentIndex
,legIndex
,holdLeg
,planIndex
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:3707
Inserts a hold-at-waypoint leg to the primary flight plan. The hold leg will be inserted immediately after the specified parent leg. The hold leg must have the same fix as the parent leg.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
segmentIndex | number | undefined | The index of the segment that contains the hold's parent leg. |
legIndex | number | undefined | The index of the hold's parent leg in its segment. |
holdLeg | FlightPlanLeg | undefined | The hold leg to add. |
planIndex | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | The index of the plan to target the edit to. |
Returns
boolean
Whether the hold-at-waypoint leg was successfully inserted.
insertPposHold()
insertPposHold(
partial?
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:3748
Inserts a PPOS hold as the active leg
Parameters
Parameter | Type | Description |
---|---|---|
partial? | Partial <FlightPlanLeg > | an object to modify the PPOS hold leg with, if applicable |
Returns
boolean
whether the leg was inserted
insertWaypoint()
insertWaypoint(
facility
,segmentIndex?
,legIndex?
,mainPlanIndex?
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:868
Method to insert a waypoint to the flightplan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
facility | Facility | undefined | is the new facility to add a leg to. |
segmentIndex? | number | undefined | is index of the segment to add the waypoint to |
legIndex? | number | undefined | is the index to insert the waypoint (if none, append) |
mainPlanIndex? | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | is the index of the flight plan on which to target the edit |
Returns
boolean
whether the waypoint was successfully inserted.
isFirstEnrouteSegment()
isFirstEnrouteSegment(
segmentIndex
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:787
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.
loadArrival()
loadArrival(
facility
,arrivalIndex
,runwayTransitionIndex
,enrouteTransitionIndex
,oneWayRunway?
,planIndex?
):Promise
<boolean
>
Defined in: wtlinesdk/fms/WTLineFms.ts:1787
Loads an arrival procedure into the primary flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
facility | AirportFacility | undefined | The procedure's parent airport facility. |
arrivalIndex | number | undefined | The index of the procedure in the parent airport facility's arrival array. |
runwayTransitionIndex | number | undefined | The index of the procedure's runway transition, or -1 if the procedure does not include a runway transition. |
enrouteTransitionIndex | number | undefined | The index of the procedure's enroute transition, or -1 if the procedure does not include an enroute transition. |
oneWayRunway? | OneWayRunway | undefined | The runway associated with the procedure, or undefined if there is no associated runway. |
planIndex? | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | The index of the plan to target the edit to. |
Returns
Promise
<boolean
>
A Promise which fulfills with whether the specified arrival procedure was successfully loaded.
loadDeparture()
loadDeparture(
facility
,departureIndex
,runwayTransitionIndex
,enrouteTransitionIndex
,oneWayRunway?
,planIndex?
):Promise
<boolean
>
Defined in: wtlinesdk/fms/WTLineFms.ts:1465
Loads a departure procedure into a flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
facility | AirportFacility | undefined | The procedure's parent airport facility. |
departureIndex | number | undefined | The index of the procedure in the parent airport facility's departure array. |
runwayTransitionIndex | number | undefined | The index of the procedure's runway transition, or -1 if the procedure does not include a runway transition. |
enrouteTransitionIndex | number | undefined | The index of the procedure's enroute transition, or -1 if the procedure does not include an enroute transition. |
oneWayRunway? | OneWayRunway | undefined | The runway associated with the procedure, or undefined if there is no associated runway. |
planIndex? | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | The index of the plan to target the edit to. |
Returns
Promise
<boolean
>
A Promise which fulfills with whether the specified departure procedure was successfully loaded.
pilotDefinedWaypointExistsWithIdent()
pilotDefinedWaypointExistsWithIdent(
ident
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:819
Returns whether a user facility exists with a given ident
Parameters
Parameter | Type | Description |
---|---|---|
ident | string | the identifier |
Returns
boolean
a boolean
removeAirway()
removeAirway(
segmentIndex
,planIndex
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:3631
Method to remove an airway from the flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
segmentIndex | number | undefined | is the segment index of the airway to remove. |
planIndex | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | is the index of the plan to target the edit to. |
Returns
void
removeApproach()
removeApproach(
planIndex
):Promise
<void
>
Defined in: wtlinesdk/fms/WTLineFms.ts:2851
Method to remove the approach from the flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
planIndex | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | the index of the plan to target the edit to. |
Returns
Promise
<void
>
removeArrival()
removeArrival(
planIndex
):Promise
<void
>
Defined in: wtlinesdk/fms/WTLineFms.ts:2809
Method to remove the arrival from the flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
planIndex | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | The index of the plan to target for edit. |
Returns
Promise
<void
>
removeDeparture()
removeDeparture(
planIndex
):Promise
<void
>
Defined in: wtlinesdk/fms/WTLineFms.ts:2768
Method to remove the departure from the flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
planIndex | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | the index of the flight plan to target the edit to. |
Returns
Promise
<void
>
removeUserFacility()
removeUserFacility(
userFacility
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:810
Removes a user facility.
Parameters
Parameter | Type | Description |
---|---|---|
userFacility | UserFacility | the facility to remove. |
Returns
void
removeWaypoint()
removeWaypoint(
segmentIndex
,segmentLegIndex
,skipVectorsCheck
,skipFafMapCheck
,skipHoldDelete
,planIndex
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:1045
Removes a leg to a waypoint from the primary flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
segmentIndex | number | undefined | The index of the segment containing the leg to remove. |
segmentLegIndex | number | undefined | The index of the leg to remove in its segment. |
skipVectorsCheck | boolean | false | Whether to force deletion regardless of vectors legs being before a discontinuity |
skipFafMapCheck | boolean | false | Whether to force deletion regardless of FAF/MAP flags |
skipHoldDelete | boolean | false | Whether to skip deleting holds associated with this leg |
planIndex | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | The index of the plan to target the edit to. |
Returns
boolean
Whether the waypoint was successfully removed.
setDestination()
setDestination(
airport
,runway?
,mainPlanIndex?
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:1214
Method to add a new destination airport and runway to the flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
airport | undefined | AirportFacility | undefined | is the facility of the destination airport. |
runway? | OneWayRunway | undefined | is the selected runway at the destination facility. |
mainPlanIndex? | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | is the plan index to target the edit to |
Returns
void
setFacilityInfo()
setFacilityInfo():
Promise
<void
>
Defined in: wtlinesdk/fms/WTLineFms.ts:484
Sets the Facility Info cache in the WT21Fms.
Returns
Promise
<void
>
setFlightPlanAlternate()
setFlightPlanAlternate(
facility
,planIndex
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:524
Sets the ALTN airport of a flight plan
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
facility | undefined | AirportFacility | undefined | the ALTN airport facility, or undefined |
planIndex | WTLineLegacyFlightPlans | WTLineLegacyFlightPlans.Active | the flight plan index |
Returns
void
setOrigin()
setOrigin(
airport
,runway?
,planIndex?
):void
Defined in: wtlinesdk/fms/WTLineFms.ts:1166
Method to add a new origin airport and runway to the flight plan.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
airport | undefined | AirportFacility | undefined | is the facility of the origin airport. |
runway? | OneWayRunway | undefined | is the new runway |
planIndex? | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | is the index of the plan to target the edit to |
Returns
void
setUserConstraint()
setUserConstraint(
globalLegIndex
,verticalData
,mainPlanIndex
):boolean
Defined in: wtlinesdk/fms/WTLineFms.ts:1091
Sets the speed and altitude constraints for a log.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
globalLegIndex | number | undefined | Global leg index of the leg to modify. |
verticalData | Omit <VerticalData , "phase" > | undefined | The vertical data to set on the leg. Will be merged with existing data. |
mainPlanIndex | MainFlightPlanIndexType <T > | WTLineLegacyFlightPlans.Active | The index of the flight plan to target the edit to. |
Returns
boolean
Whether the data was set.