Skip to main content

Class: WT21SpeedConstraintStore

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Autopilot/WT21SpeedConstraintStore.ts:28

A store which keeps track of the speed constraints in the active flight plan.

Constructors

Constructor

new WT21SpeedConstraintStore(bus, flightPlanner): WT21SpeedConstraintStore

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Autopilot/WT21SpeedConstraintStore.ts:41

Creates the store.

Parameters

ParameterTypeDescription
busEventBusThe Event Bus.
flightPlannerFlightPlannerThe Flight Planner.

Returns

WT21SpeedConstraintStore

Methods

getCurrentSpeedConstraint()

getCurrentSpeedConstraint(globalLegIndex, flightPhase): undefined | Readonly<SpeedConstraintListItem>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Autopilot/WT21SpeedConstraintStore.ts:115

Gets the speed constraint in effect for a given flight plan leg and vertical flight phase.

Parameters

ParameterTypeDescription
globalLegIndexnumberThe global index of the flight plan leg for which to get the speed constraint in effect.
flightPhaseVerticalFlightPhaseThe vertical flight phase for which to get the speed constraint in effect.

Returns

undefined | Readonly<SpeedConstraintListItem>

The speed constraint in effect for the specified flight plan leg and vertical flight phase, or undefined if there is no speed constraint in effect.


getNextSpeedConstraint()

getNextSpeedConstraint(globalLegIndex, flightPhase): undefined | Readonly<SpeedConstraintListItem>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Autopilot/WT21SpeedConstraintStore.ts:126

Gets the next speed constraint to take effect for a given flight plan leg and vertical flight phase.

Parameters

ParameterTypeDescription
globalLegIndexnumberThe global index of the flight plan leg for which to get the speed constraint in effect.
flightPhaseVerticalFlightPhaseThe vertical flight phase for which to get the speed constraint in effect.

Returns

undefined | Readonly<SpeedConstraintListItem>

The next speed constraint to take effect for the specified flight plan leg and vertical flight phase, or undefined if there is no speed constraint in effect.