Class: WT21Autopilot
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:14
WT21 autopilot.
Extends
Constructors
Constructor
new WT21Autopilot(
bus,flightPlanner,config,stateManager,settingsManager):WT21Autopilot
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:53
Creates an instance of the WT21Autopilot.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus. |
flightPlanner | FlightPlanner | This autopilot's associated flight planner. |
config | APConfig | This autopilot's configuration. |
stateManager | APStateManager | This autopilot's state manager. |
settingsManager | MetricAltitudeSettingsManager | The settings manager to pass to altitude preselect system. |
Returns
WT21Autopilot
Overrides
Properties
_apValues
protectedreadonly_apValues:object
Defined in: sdk/autopilot/Autopilot.ts:65
apApproachModeOn
apApproachModeOn:
Subject<boolean>
approachHasGP
approachHasGP:
Subject<boolean>
approachIsActive
approachIsActive:
Subject<boolean>
capturedAltitude
capturedAltitude:
Subject<number>
cdiId
cdiId:
string
cdiSource
cdiSource:
Subject<Readonly<NavSourceId>>
isSelectedSpeedInMach
isSelectedSpeedInMach:
Subject<boolean>
lateralActive
lateralActive:
Subject<APLateralModes>
lateralArmed
lateralArmed:
Subject<APLateralModes>
maxBankAngle
maxBankAngle:
Subject<number>
maxBankId
maxBankId:
Subject<number>
maxNoseDownPitchAngle
maxNoseDownPitchAngle:
Subject<number>
maxNoseUpPitchAngle
maxNoseUpPitchAngle:
Subject<number>
nav1HasGs
nav1HasGs:
Subject<boolean>
nav2HasGs
nav2HasGs:
Subject<boolean>
nav3HasGs
nav3HasGs:
Subject<boolean>
nav4HasGs
nav4HasGs:
Subject<boolean>
selectedAltitude
selectedAltitude:
Subject<number>
selectedFlightPathAngle
selectedFlightPathAngle:
Subject<number>
selectedHeading
selectedHeading:
Subject<number>
selectedIas
selectedIas:
Subject<number>
selectedMach
selectedMach:
Subject<number>
selectedPitch
selectedPitch:
Subject<number>
selectedVerticalSpeed
selectedVerticalSpeed:
Subject<number>
simRate
simRate:
Subject<number>
verticalActive
verticalActive:
Subject<APVerticalModes>
verticalArmed
verticalArmed:
Subject<APVerticalModes>
Inherited from
altArmedSubject
protectedreadonlyaltArmedSubject:Subject<boolean>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:31
altCapArmed
protectedaltCapArmed:boolean=false
Defined in: sdk/autopilot/Autopilot.ts:53
Inherited from
altSelectManager
protectedreadonlyaltSelectManager:AltitudeSelectManager
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:33
apDriver
protectedreadonlyapDriver:AutopilotDriver
Defined in: sdk/autopilot/Autopilot.ts:44
This autopilot's sim autopilot driver.
Inherited from
apValues
readonlyapValues:APValues
Defined in: sdk/autopilot/Autopilot.ts:95
Inherited from
autopilotInitialized
protectedautopilotInitialized:boolean=false
Defined in: sdk/autopilot/Autopilot.ts:97
Inherited from
Autopilot.autopilotInitialized
bus
protectedreadonlybus:EventBus
Defined in: sdk/autopilot/Autopilot.ts:107
The event bus.
Inherited from
cdiSource
protectedcdiSource:Readonly<NavSourceId>
Defined in: sdk/autopilot/Autopilot.ts:46
Inherited from
config
protectedreadonlyconfig:APConfig
Defined in: sdk/autopilot/Autopilot.ts:109
This autopilot's configuration.
Inherited from
currentAltitude
protectedcurrentAltitude:number=0
Defined in: sdk/autopilot/Autopilot.ts:57
Inherited from
externalAutopilotInstalled
readonlyexternalAutopilotInstalled:Subject<boolean>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:29
flightPlanner
protectedreadonlyflightPlanner:FlightPlanner
Defined in: sdk/autopilot/Autopilot.ts:108
This autopilot's associated flight planner.
Inherited from
flightPlanSynced
protectedflightPlanSynced:boolean=true
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:41
Overrides
fmaData
protectedreadonlyfmaData:ObjectSubject<FmaData>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:35
inClimb
protectedinClimb:boolean=false
Defined in: sdk/autopilot/Autopilot.ts:56
Inherited from
lateralArmedModeSubject
protectedreadonlylateralArmedModeSubject:Subject<APLateralModes>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:30
lateralModeFailed
protectedlateralModeFailed:boolean=false
Defined in: sdk/autopilot/Autopilot.ts:54
Inherited from
lateralModes
protectedreadonlylateralModes:Map<number,PlaneDirector>
Defined in: sdk/autopilot/Autopilot.ts:48
Inherited from
navToNavManager
readonlynavToNavManager:undefined|NavToNavManager2
Defined in: sdk/autopilot/Autopilot.ts:35
This autopilot's nav-to-nav transfer manager.
Inherited from
requireApproachIsActiveForNavToNav
protectedrequireApproachIsActiveForNavToNav:boolean=true
Defined in: sdk/autopilot/Autopilot.ts:63
Can be set to false in child classes to override behavior for certain aircraft.
Inherited from
Autopilot.requireApproachIsActiveForNavToNav
stateManager
readonlystateManager:APStateManager
Defined in: sdk/autopilot/Autopilot.ts:110
This autopilot's state manager.
Inherited from
togaIsOn
protectedtogaIsOn:boolean=false
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:43
variableBankManager
readonlyvariableBankManager:undefined|Record<any,any>
Defined in: sdk/autopilot/Autopilot.ts:41
This autopilot's variable bank angle Manager.
Inherited from
verticalAltitudeArmed
protectedverticalAltitudeArmed:APAltitudeModes=APAltitudeModes.NONE
Defined in: sdk/autopilot/Autopilot.ts:51
Inherited from
Autopilot.verticalAltitudeArmed
verticalApproachArmed
protectedverticalApproachArmed:number=APVerticalModes.NONE
Defined in: sdk/autopilot/Autopilot.ts:52
Inherited from
Autopilot.verticalApproachArmed
verticalModes
protectedreadonlyverticalModes:Map<number,PlaneDirector>
Defined in: sdk/autopilot/Autopilot.ts:49
Inherited from
vnavCaptureType
protectedvnavCaptureType:VNavAltCaptureType=VNavAltCaptureType.None
Defined in: sdk/autopilot/Autopilot.ts:58
Inherited from
vnavManager
readonlyvnavManager:undefined|VNavManager
Defined in: sdk/autopilot/Autopilot.ts:38
This autopilot's VNav Manager.
Inherited from
Methods
approachPressed()
protectedapproachPressed(set?):void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:124
Handles input from the State Manager when the APPR button is pressed.
Parameters
| Parameter | Type | Description |
|---|---|---|
set? | boolean | is whether this event commands a specific set |
Returns
void
Overrides
checkModes()
protectedcheckModes():void
Defined in: sdk/autopilot/Autopilot.ts:790
Checks if all the active and armed modes are still in their proper state and takes corrective action if not.
Returns
void
Inherited from
checkRollModeActive()
protectedcheckRollModeActive():void
Defined in: sdk/autopilot/Autopilot.ts:1106
Checks if the sim AP is in roll mode and sets it if not.
Returns
void
Inherited from
createDirectors()
protectedcreateDirectors(config):void
Defined in: sdk/autopilot/Autopilot.ts:163
Creates this autopilot's directors.
Parameters
| Parameter | Type | Description |
|---|---|---|
config | APConfig | This autopilot's configuration. |
Returns
void
Inherited from
createLateralDirectors()
protectedcreateLateralDirectors(config):void
Defined in: sdk/autopilot/Autopilot.ts:172
Creates this autopilot's lateral mode directors.
Parameters
| Parameter | Type | Description |
|---|---|---|
config | APConfig | This autopilot's configuration. |
Returns
void
Inherited from
Autopilot.createLateralDirectors
createVerticalDirectors()
protectedcreateVerticalDirectors(config):void
Defined in: sdk/autopilot/Autopilot.ts:187
Creates this autopilot's vertical mode directors.
Parameters
| Parameter | Type | Description |
|---|---|---|
config | APConfig | This autopilot's configuration. |
Returns
void
Inherited from
Autopilot.createVerticalDirectors
deactivateArmedOrActiveLateralMode()
protecteddeactivateArmedOrActiveLateralMode(mode):boolean
Defined in: sdk/autopilot/Autopilot.ts:519
Attempts to deactivate an armed or active lateral mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | number | The lateral mode to deactivate. |
Returns
boolean
Whether the specified mode was armed or active and deactivated by this method.
Inherited from
Autopilot.deactivateArmedOrActiveLateralMode
deactivateArmedOrActiveVerticalMode()
protecteddeactivateArmedOrActiveVerticalMode(mode):boolean
Defined in: sdk/autopilot/Autopilot.ts:565
Attempts to deactivate an armed or active vertical mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | number | The vertical mode to deactivate. |
Returns
boolean
Whether the specified mode was armed or active and deactivated by this method.
Inherited from
Autopilot.deactivateArmedOrActiveVerticalMode
getArmableApproachType()
protectedgetArmableApproachType():APLateralModes
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:172
Returns the AP Lateral Mode that can be armed.
Returns
The AP Lateral Mode that can be armed.
Overrides
Autopilot.getArmableApproachType
getDefaultLateralMode()
protectedgetDefaultLateralMode():APLateralModes
Defined in: sdk/autopilot/Autopilot.ts:1125
Get the default lateral mode from APConfig
Returns
default lateral mode
Inherited from
Autopilot.getDefaultLateralMode
getDefaultVerticalMode()
protectedgetDefaultVerticalMode():APVerticalModes
Defined in: sdk/autopilot/Autopilot.ts:1137
Get the default vertical mode from APConfig
Returns
default vertical mode
Inherited from
Autopilot.getDefaultVerticalMode
handleApFdStateChange()
protectedhandleApFdStateChange():void
Defined in: sdk/autopilot/Autopilot.ts:1067
Manages the FD state and the modes when AP/FD are off.
Returns
void
Inherited from
Autopilot.handleApFdStateChange
initLateralModeDirector()
protectedinitLateralModeDirector(mode,director,setBank?,driveBank?):void
Defined in: sdk/autopilot/Autopilot.ts:217
Initializes a lateral mode director.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | number | The director's mode. |
director | PlaneDirector | The director to initialize. |
setBank? | (bank) => void | A function that the director can use to set the flight director's commanded bank angle. |
driveBank? | (bank, rate?) => void | A function that the director can use to drive the flight director's commanded bank angle. |
Returns
void
Inherited from
Autopilot.initLateralModeDirector
initLateralModes()
protectedinitLateralModes():void
Defined in: sdk/autopilot/Autopilot.ts:201
Initializes this autopilot's lateral modes.
Returns
void
Inherited from
initNavToNavManager()
protectedinitNavToNavManager():void
Defined in: sdk/autopilot/Autopilot.ts:327
Initializes the Autopilot with the available Nav To Nav Manager.
Returns
void
Inherited from
initVerticalModeDirector()
protectedinitVerticalModeDirector(mode,director,setPitch?,drivePitch?):void
Defined in: sdk/autopilot/Autopilot.ts:249
Initializes a vertical mode director.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | number | The director's mode. |
director | PlaneDirector | The director to initialize. |
setPitch? | (pitch, resetServo?, maxNoseDownPitch?, maxNoseUpPitch?) => void | A function that the director can use to set the flight director's commanded pitch angle. |
drivePitch? | (pitch, adjustForAoa?, adjustForVerticalWind?, rate?, maxNoseDownPitch?, maxNoseUpPitch?) => void | A function that the director can use to drive the flight director's commanded pitch angle. |
Returns
void
Inherited from
Autopilot.initVerticalModeDirector
initVerticalModes()
protectedinitVerticalModes():void
Defined in: sdk/autopilot/Autopilot.ts:233
Initializes this autopilot's vertical modes.
Returns
void
Inherited from
initVNavManager()
protectedinitVNavManager():void
Defined in: sdk/autopilot/Autopilot.ts:343
Initializes the Autopilot with the available VNav Manager.
Returns
void
Inherited from
isLateralModeActivatedOrArmed()
protectedisLateralModeActivatedOrArmed(mode):boolean
Defined in: sdk/autopilot/Autopilot.ts:510
Checks if a lateral mode is armed or active and if so, deactivates it.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | number | The lateral mode to check and deactivate. |
Returns
boolean
Whether the specified mode was armed or active and deactivated by this method.
Deprecated
Please use deactivateArmedOrActiveLateralMode() instead.
Inherited from
Autopilot.isLateralModeActivatedOrArmed
lateralPressed()
protectedlateralPressed(data):void
Defined in: sdk/autopilot/Autopilot.ts:406
Handles input from the State Manager when a lateral mode button is pressed.
Parameters
| Parameter | Type | Description |
|---|---|---|
data | APModePressEvent | is the AP Lateral Mode Event Data |
Returns
void
Inherited from
manageAltitudeCapture()
protectedmanageAltitudeCapture():void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:297
Checks and sets the proper armed altitude mode.
Returns
void
Overrides
Autopilot.manageAltitudeCapture
monitorAdditionalEvents()
protectedmonitorAdditionalEvents():void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:196
Additional events to be monitored (to be overridden).
Returns
void
Overrides
Autopilot.monitorAdditionalEvents
monitorApSpeedValues()
protectedmonitorApSpeedValues():void
Defined in: sdk/autopilot/Autopilot.ts:1044
Overridable method for setting the selected speed values for the A/P to follow.
Returns
void
Inherited from
Autopilot.monitorApSpeedValues
monitorEvents()
protectedmonitorEvents():void
Defined in: sdk/autopilot/Autopilot.ts:912
Monitors subevents and bus events.
Returns
void
Inherited from
onAfterUpdate()
protectedonAfterUpdate():void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:88
This method runs each update cycle after the update occurs.
Returns
void
Overrides
onBeforeUpdate()
protectedonBeforeUpdate():void
Defined in: sdk/autopilot/Autopilot.ts:384
This method runs each update cycle before the update occurs.
Returns
void
Inherited from
onInitialized()
protectedonInitialized():void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:93
This method runs whenever the initialized state of the Autopilot changes.
Returns
void
Overrides
setAltHold()
protectedsetAltHold():void
Defined in: sdk/autopilot/Autopilot.ts:778
Method called when the ALT button is pressed.
Returns
void
Inherited from
setLateralActive()
protectedsetLateralActive(mode):void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:100
Callback to set the lateral active mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | number | is the mode being set. |
Returns
void
Overrides
setLateralArmed()
protectedsetLateralArmed(mode):void
Defined in: sdk/autopilot/Autopilot.ts:718
Callback to set the lateral armed mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | number | is the mode being set. |
Returns
void
Inherited from
setVerticalActive()
protectedsetVerticalActive(mode):void
Defined in: sdk/autopilot/Autopilot.ts:729
Callback to set the vertical active mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | number | is the mode being set. |
Returns
void
Inherited from
setVerticalApproachArmed()
protectedsetVerticalApproachArmed(mode):void
Defined in: sdk/autopilot/Autopilot.ts:765
Callback to set the vertical approach armed mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | number | is the mode being set. |
Returns
void
Inherited from
Autopilot.setVerticalApproachArmed
setVerticalArmed()
protectedsetVerticalArmed(mode):void
Defined in: sdk/autopilot/Autopilot.ts:750
Callback to set the vertical armed mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | number | is the mode being set. |
Returns
void
Inherited from
togaPressed()
protectedtogaPressed():void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Autopilot/WT21Autopilot.ts:338
Handles input from the State Manager when the TOGA button is pressed (K event AUTO_THROTTLE_TO_GA)
Returns
void
Overrides
update()
update():
void
Defined in: sdk/autopilot/Autopilot.ts:366
Update method for the Autopilot.
Returns
void
Inherited from
updateModes()
protectedupdateModes():void
Defined in: sdk/autopilot/Autopilot.ts:827
Runs update on each of the active and armed modes.
Returns
void
Inherited from
updateNavToNavManagerAfter()
protectedupdateNavToNavManagerAfter():void
Defined in: sdk/autopilot/Autopilot.ts:905
Updates this autopilot's nav-to-nav manager after directors have been updated.
Returns
void
Inherited from
Autopilot.updateNavToNavManagerAfter
updateNavToNavManagerBefore()
protectedupdateNavToNavManagerBefore():void
Defined in: sdk/autopilot/Autopilot.ts:898
Updates this autopilot's nav-to-nav manager before directors have been updated.
Returns
void
Inherited from
Autopilot.updateNavToNavManagerBefore
verticalPressed()
protectedverticalPressed(data):void
Defined in: sdk/autopilot/Autopilot.ts:454
Handles input from the State Manager when a vertical mode button is pressed.
Parameters
| Parameter | Type | Description |
|---|---|---|
data | APModePressEvent | is the AP Vertical Mode Event Data |
Returns
void