Class: WT21Fms
A WT 21 FMS
Constructors
constructor
• new WT21Fms(bus
, flightPlanner
, fmsPos
, verticalPathCalculator
, messageService
, fixInfo
): WT21Fms
Initialize an instance of the FMS for the WT21.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | is the event bus |
flightPlanner | FlightPlanner <any > | is the flight planner |
fmsPos | FmsPos | is the FMS position system |
verticalPathCalculator | SmoothingPathCalculator | is the VNAV Path Calculator. |
messageService | MessageService | is the message service. |
fixInfo | WT21FixInfoManager | The fix info manager. |
Returns
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:217
Properties
approachDetails
• approachDetails: ApproachDetails
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:100
basePerformanceManager
• Readonly
basePerformanceManager: BasePerformanceDataManager
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:183
bus
• Readonly
bus: EventBus
is the event bus
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:218
facLoader
• Readonly
facLoader: FacilityLoader
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:91
facilityInfo
• facilityInfo: FacilityInfo
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.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:95
fixInfo
• Readonly
fixInfo: WT21FixInfoManager
The fix info manager.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:223
flightPlanner
• Readonly
flightPlanner: FlightPlanner
<any
>
is the flight planner
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:219
fmsPos
• Readonly
fmsPos: FmsPos
is the FMS position system
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:220
messageService
• Readonly
messageService: MessageService
is the message service.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:222
performancePlanProxy
• Readonly
performancePlanProxy: PerformancePlanProxy
Proxy to the currently relevant performance plan. This allows subbing to subscribables that always point to the right value, whether we are in ACT or MOD, without worrying about switching around subscriptions.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:147
planInMod
• Readonly
planInMod: Subject
<boolean
>
Set to true by FMC pages when the plan on this FMS instance is in modification and awaiting a cancel or exec.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:81
ppos
• Readonly
ppos: GeoPoint
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:88
remotePlanInMod
• remotePlanInMod: boolean
= false
Set to true when an event is received from the bus indicating that another instrument is in MOD on the plan.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:84
verticalDtoWasCreatedInModPlan
• verticalDtoWasCreatedInModPlan: boolean
= false
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.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:131
verticalDtoWasCreatedInModPlanWasAutomatic
• verticalDtoWasCreatedInModPlanWasAutomatic: boolean
= false
Set to true when the vertical DTO in the mod flight plan was automatic
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:137
verticalPathCalculator
• Readonly
verticalPathCalculator: SmoothingPathCalculator
is the VNAV Path Calculator.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:221
Accessors
activePerformancePlan
• get
activePerformancePlan(): PerformancePlan
Returns the active performance plan
Returns
PerformancePlan
the performance plan for the active flight plan index
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:179
Methods
activateApproach
▸ activateApproach(): void
Activates an approach. Activating an approach activates a Direct To to the first approach waypoint of the primary flight plan, and attempts to load the primary approach frequency (if one exists) to the nav radios. If the primary flight plan does not have an approach loaded, this method has no effect.
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:2749
activateLeg
▸ activateLeg(segmentIndex
, legIndex
, removeExistingDTO?
): void
Method to activate a leg in the flight plan.
Parameters
Name | 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
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:2714
activateVtf
▸ activateVtf(): Promise
<void
>
Activates vectors-to-final. Activating vectors-to-final activates the primary flight plan's vectors-to-final leg, and attempts to load the primary approach frequency (if one exists) to the nav radios. If the primary flight plan has a non-VTF approach loaded, it will be replaced by its VTF counterpart. If the primary flight plan has no approach loaded, this method has no effect.
Returns
Promise
<void
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:2779
addUserFacility
▸ addUserFacility(userFacility
): void
Adds a user facility.
Parameters
Name | Type | Description |
---|---|---|
userFacility | UserFacility | the facility to add. |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:857
canActivateApproach
▸ canActivateApproach(): boolean
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.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:2735
canActivateLeg
▸ canActivateLeg(segmentIndex
, segmentLegIndex
): boolean
Checks whether a leg in the primary flight plan can be manually activated.
Parameters
Name | 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.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:709
canActivateVtf
▸ canActivateVtf(): boolean
Checks whether vectors-to-final can be activated. VTF can be activated if and only if the primary flight plan has an approach loaded.
Returns
boolean
Whether vectors-to-final can be activated.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:2764
canApproachLoad
▸ canApproachLoad(): boolean
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.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:1946
canDirectTo
▸ canDirectTo(segmentIndex
, segmentLegIndex
): boolean
Checks whether a leg in the primary flight plan is a valid direct to target.
Parameters
Name | 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.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:755
canEditPlan
▸ canEditPlan(): boolean
Checks whether the plan can go into MOD/be edited on this instance of WT21Fms.
Returns
boolean
Whether to allow plan edits or not
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:480
canMissedApproachActivate
▸ canMissedApproachActivate(): boolean
Method to check if there is a currently loaded missed approach to be activated.
Returns
boolean
whether the approach can activate
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:2864
cancelMod
▸ cancelMod(): void
Handles when the CANCEL MOD button is pressed.
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:419
createDirectTo
▸ createDirectTo(segmentIndex?
, segmentLegIndex?
, isNewDTO?
, course?
, facility?
): void
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
Name | 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
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:2902
createDirectToAirport
▸ createDirectToAirport(airportFacility
): void
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
Name | Type | Description |
---|---|---|
airportFacility | AirportFacility | the airport facility to go direct to |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:3026
createDirectToExistingNextValidLeg
▸ createDirectToExistingNextValidLeg(globalLegIndex
): boolean
Creates a direct to existing to the next valid leg in the plan after the input global leg index.
Parameters
Name | Type | Description |
---|---|---|
globalLegIndex | number | The global leg index. |
Returns
boolean
Whether a direct to existing was created.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:3242
createDirectToRunwayVisualApproach
▸ createDirectToRunwayVisualApproach(airportFacility
, runway
): Promise
<void
>
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
Name | 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
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:3057
createVerticalDirectTo
▸ createVerticalDirectTo(plan
, globalIndex
, finalAltitude
, isAutomatic?
): boolean
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
Name | 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
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:3174
emptyModFlightPlan
▸ emptyModFlightPlan(notify?
): void
Empties the mod flight plan.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
notify | boolean | false | whether to emit sync events |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:3317
emptyPrimaryFlightPlan
▸ emptyPrimaryFlightPlan(): Promise
<void
>
Empties the primary flight plan.
Returns
Promise
<void
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:3285
findLastEnrouteSegmentIndex
▸ findLastEnrouteSegmentIndex(plan
): number
Method to find the last enroute segment of the supplied flight plan.
Parameters
Name | Type | Description |
---|---|---|
plan | FlightPlan | is the flight plan to find the last enroute segment in. |
Returns
number
a segment index.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:1931
getActivePerformancePlan
▸ getActivePerformancePlan(): PerformancePlan
Gets the performance plan for the ACT flight plan.
Returns
PerformancePlan
the performance plan
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:197
getAirwayDistance
▸ getAirwayDistance(segmentIndex
): number
Method to get the distance of an airway segment.
Parameters
Name | Type | Description |
---|---|---|
segmentIndex | number | is the index of the segment of the airway. |
Returns
number
the cumulative distance for the airway segment.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:1174
getCdiSource
▸ getCdiSource(): NavSourceId
Returns
NavSourceId
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:295
getDirectToState
▸ getDirectToState(planIndex?
): DirectToState
Gets the current Direct To State.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
planIndex | number | WT21FmsUtils.PRIMARY_ACT_PLAN_INDEX | The Plan Index to check. |
Returns
the DirectToState.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:786
getDirectToTargetIcao
▸ getDirectToTargetIcao(): undefined
| string
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.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:819
getFlightPlan
▸ getFlightPlan(index?
): FlightPlan
Gets a specified flightplan, or by default the primary flight plan.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
index | number | WT21FmsUtils.PRIMARY_ACT_PLAN_INDEX | The index of the flight plan. |
Returns
FlightPlan
the requested flight plan
Throws
Error if no flight plan exists at the specified index.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:314
getFlightPlanAlternate
▸ getFlightPlanAlternate(planIndex?
): undefined
| string
Gets the ALTN airport of a flight plan
Parameters
Name | Type | Description |
---|---|---|
planIndex? | number | the flight plan index |
Returns
undefined
| string
the ALTN airport FS ICAO, or undefined
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:556
getModFlightPlan
▸ getModFlightPlan(): FlightPlan
Handles when a modification is being made to the plan to ensure the plan is in MOD mode
Returns
FlightPlan
The Flight Plan to modify
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:432
getPlanForFmcRender
▸ getPlanForFmcRender(): FlightPlan
Gets the current lateral flight plan for the FMC pages based on whether the plan is in MOD or ACT.
Returns
FlightPlan
A Lateral Flight Plan
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:456
getPlanIndexForFmcPage
▸ getPlanIndexForFmcPage(): number
Gets the plan index FMC pages should use to monitor events.
Returns
number
A Flight Plan Index
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:445
getPrimaryFlightPlan
▸ getPrimaryFlightPlan(): FlightPlan
Gets the primary lateral flight plan.
Returns
FlightPlan
The primary flight plan.
Throws
Error if the primary flight plan does not exist.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:331
getUserFacilities
▸ getUserFacilities(): UserFacility
[]
Gets all user facilities.
Returns
UserFacility
[]
an array of user facilities
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:874
getVerticalPlanForFmcRender
▸ getVerticalPlanForFmcRender(): VerticalFlightPlan
Gets the current vertical flight plan for the FMC pages based on whether the plan is in MOD or ACT.
Returns
VerticalFlightPlan
A Vertical Flight Plan
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:468
hasFlightPlan
▸ hasFlightPlan(index
): boolean
Checks whether an indexed flight plan exists.
Parameters
Name | Type | Description |
---|---|---|
index | number | A flight plan index. |
Returns
boolean
Whether a flight plan at the specified index exists.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:304
hasPrimaryFlightPlan
▸ hasPrimaryFlightPlan(): boolean
Checks whether the primary flight plan exists.
Returns
boolean
Whether the primary flight plan exists.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:322
hasPrimaryModFlightPlan
▸ hasPrimaryModFlightPlan(): boolean
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.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:347
initPrimaryFlightPlan
▸ initPrimaryFlightPlan(): Promise
<void
>
Initializes the primary flight plan. Does nothing if the primary flight plan already exists.
Returns
Promise
<void
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:282
insertAirwaySegment
▸ insertAirwaySegment(airway
, entry
, exit
, segmentIndex
, legIndex
): void
Adds an airway and airway segment to the flight plan.
Parameters
Name | Type | Description |
---|---|---|
airway | AirwayObject | The airway object. |
entry | IntersectionFacility | The entry intersection facility. |
exit | IntersectionFacility | The exit intersection facility. |
segmentIndex | number | Is the segment index for the entry leg. |
legIndex | number | Is the leg index of the entry leg in the segment of the |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:3347
insertApproach
▸ insertApproach(facility
, approachIndex
, approachTransitionIndex
, visualRunwayNumber?
, visualRunwayDesignator?
, transStartIndex?
, skipCourseReversal?
, visualRunwayOffset?
): Promise
<boolean
>
Method to add or replace an approach procedure in the flight plan.
Parameters
Name | Type | Description |
---|---|---|
facility | AirportFacility | is the facility that contains the procedure to add. |
approachIndex | number | is the index of the approach procedure. |
approachTransitionIndex | number | is the index of the approach transition. |
visualRunwayNumber? | number | is the visual runway number, if any. |
visualRunwayDesignator? | RunwayDesignator | is the visual runway designator, if any. |
transStartIndex? | number | is the starting leg index for the transition, if any. |
skipCourseReversal? | boolean | Whether to skip the course reversal. |
visualRunwayOffset? | number | The visual runway offset. |
Returns
Promise
<boolean
>
A Promise which is fulfilled with whether the approach was inserted.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:1971
insertArrival
▸ insertArrival(facility
, arrivalIndex
, arrivalRunwayTransitionIndex
, enrouteTransitionIndex
, oneWayRunway?
): void
Method to add or replace an arrival procedure in the flight plan.
Parameters
Name | Type | Description |
---|---|---|
facility | AirportFacility | is the facility that contains the procedure to add. |
arrivalIndex | number | is the index of the arrival procedure. |
arrivalRunwayTransitionIndex | number | is the index of the arrival runway transition. |
enrouteTransitionIndex | number | is the index of the enroute transition. |
oneWayRunway? | OneWayRunway | is the one way runway to set as the destination leg. |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:1639
insertDeparture
▸ insertDeparture(facility
, departureIndex
, departureRunwayIndex
, enrouteTransitionIndex
, oneWayRunway?
): void
Method to add or replace a departure procedure in the flight plan.
Parameters
Name | Type | Description |
---|---|---|
facility | AirportFacility | is the facility that contains the procedure to add. |
departureIndex | number | is the index of the departure |
departureRunwayIndex | number | is the index of the runway transition |
enrouteTransitionIndex | number | is the index of the enroute transition |
oneWayRunway? | OneWayRunway | is the one way runway to set as the origin leg. |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:1513
insertHold
▸ insertHold(segmentIndex
, legIndex
, holdLeg
): boolean
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
Name | Type | Description |
---|---|---|
segmentIndex | number | The index of the segment that contains the hold's parent leg. |
legIndex | number | The index of the hold's parent leg in its segment. |
holdLeg | FlightPlanLeg | The hold leg to add. |
Returns
boolean
Whether the hold-at-waypoint leg was successfully inserted.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:3590
insertPposHold
▸ insertPposHold(partial?
): boolean
Inserts a PPOS hold as the active leg
Parameters
Name | Type | Description |
---|---|---|
partial? | Partial <FlightPlanLeg > | an object to modify the PPOS hold leg with, if applicable |
Returns
boolean
whether the leg was inserted
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:3628
insertWaypoint
▸ insertWaypoint(facility
, segmentIndex?
, legIndex?
): boolean
Method to insert a waypoint to the flightplan.
Parameters
Name | Type | Description |
---|---|---|
facility | Facility | is the new facility to add a leg to. |
segmentIndex? | number | is index of the segment to add the waypoint to |
legIndex? | number | is the index to insert the waypoint (if none, append) |
Returns
boolean
whether the waypoint was successfully inserted.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:913
invertFlightplan
▸ invertFlightplan(): void
Method to invert the flightplan. TODO Does the WT21 support this?
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:1280
isApproachVtf
▸ isApproachVtf(): boolean
Method to check if the approach is VTF.
Returns
boolean
whether the approach is VTF.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:2852
isFirstEnrouteSegment
▸ isFirstEnrouteSegment(segmentIndex
): boolean
Checks if a segment is the first enroute segment that is not an airway.
Parameters
Name | 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.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:842
removeAirway
▸ removeAirway(segmentIndex
): void
Method to remove an airway from the flight plan.
Parameters
Name | Type | Description |
---|---|---|
segmentIndex | number | is the segment index of the airway to remove. |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:3518
removeApproach
▸ removeApproach(): Promise
<void
>
Method to remove the approach from the flight plan.
Returns
Promise
<void
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:2605
removeArrival
▸ removeArrival(): Promise
<void
>
Method to remove the arrival from the flight plan.
Returns
Promise
<void
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:2574
removeDeparture
▸ removeDeparture(): Promise
<void
>
Method to remove the departure from the flight plan.
Returns
Promise
<void
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:2545
removeUserFacility
▸ removeUserFacility(userFacility
): void
Removes a user facility.
Parameters
Name | Type | Description |
---|---|---|
userFacility | UserFacility | the facility to remove. |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:865
removeWaypoint
▸ removeWaypoint(segmentIndex
, segmentLegIndex
, skipVectorsCheck?
, skipFafMapCheck?
, skipHoldDelete?
): boolean
Removes a leg to a waypoint from the primary flight plan.
Parameters
Name | 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 |
Returns
boolean
Whether the waypoint was successfully removed.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:1078
setDestination
▸ setDestination(airport
, runway?
): void
Method to add a new destination airport and runway to the flight plan.
Parameters
Name | Type | Description |
---|---|---|
airport | undefined | AirportFacility | is the facility of the destination airport. |
runway? | OneWayRunway | is the selected runway at the destination facility. |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:1221
setFacilityInfo
▸ setFacilityInfo(): Promise
<void
>
Sets the Facility Info cache in the WT21Fms.
Returns
Promise
<void
>
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:529
setFlightPlanAlternate
▸ setFlightPlanAlternate(facility
): void
Sets the ALTN airport of a flight plan
Parameters
Name | Type | Description |
---|---|---|
facility | undefined | AirportFacility | the ALTN airport facility, or undefined |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:567
setOrigin
▸ setOrigin(airport
, runway?
): void
Method to add a new origin airport and runway to the flight plan.
Parameters
Name | Type | Description |
---|---|---|
airport | undefined | AirportFacility | is the facility of the origin airport. |
runway? | OneWayRunway | is the onewayrunway |
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:1188
setUserConstraint
▸ setUserConstraint(globalLegIndex
, verticalData
): boolean
Sets the speed and altitude constraints for a log.
Parameters
Name | Type | Description |
---|---|---|
globalLegIndex | number | Global leg index of the leg to modify. |
verticalData | Omit <VerticalData , "phase" > | The vertical data to set on the leg. Will be merged with existing data. |
Returns
boolean
Whether the data was set.
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:1116
switchPerformanceProxyToRenderPlan
▸ switchPerformanceProxyToRenderPlan(): void
Switches the performance proxy to use the FMC render plan
Returns
void
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/FlightPlan/WT21Fms.ts:204