Class: Epic2Autopilot
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:23
Epic 2 autopilot.
Extends
Autopilot
Constructors
Constructor
new Epic2Autopilot(
bus,flightPlanner,config,stateManager,settingsManager,headingDataProvider,stallDataProvider):Epic2Autopilot
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:74
Creates an instance of the Epic 2 Autopilot.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus. |
flightPlanner | FlightPlanner | This autopilot's associated flight planner. |
config | APConfig | This autopilot's configuration. |
stateManager | Epic2APStateManager | This autopilot's state manager. |
settingsManager | UserSettingManager<PfdAllUserSettingTypes> | The settings manager. |
headingDataProvider | DefaultHeadingDataProvider | The heading data provider to synchronize heading when requested. |
stallDataProvider | DefaultStallWarningDataProvider | The stall data provider for handling abnormal disengagement due to stalls |
Returns
Epic2Autopilot
Overrides
Autopilot.constructor
Properties
_apValues
protectedreadonly_apValues:object
Defined in: sdk/autopilot/Autopilot.ts:160
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
Autopilot._apValues
altArmedSubject
protectedreadonlyaltArmedSubject:Subject<boolean>
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:42
altCapArmed
protectedaltCapArmed:boolean=false
Defined in: sdk/autopilot/Autopilot.ts:148
Inherited from
Autopilot.altCapArmed
altSelectManager
protectedreadonlyaltSelectManager:AltitudeSelectManager
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:44
apDriver
protectedreadonlyapDriver:AutopilotDriver
Defined in: sdk/autopilot/Autopilot.ts:139
This autopilot's sim autopilot driver.
Inherited from
Autopilot.apDriver
apValues
readonlyapValues:APValues
Defined in: sdk/autopilot/Autopilot.ts:190
Inherited from
Autopilot.apValues
autopilotInitialized
protectedautopilotInitialized:boolean=false
Defined in: sdk/autopilot/Autopilot.ts:192
Inherited from
Autopilot.autopilotInitialized
bus
protectedreadonlybus:EventBus
Defined in: sdk/autopilot/Autopilot.ts:202
The event bus.
Inherited from
Autopilot.bus
cdiSource
protectedcdiSource:Readonly<NavSourceId>
Defined in: sdk/autopilot/Autopilot.ts:141
Inherited from
Autopilot.cdiSource
config
protectedreadonlyconfig:APConfig
Defined in: sdk/autopilot/Autopilot.ts:204
This autopilot's configuration.
Inherited from
Autopilot.config
currentAltitude
protectedcurrentAltitude:number=0
Defined in: sdk/autopilot/Autopilot.ts:152
Inherited from
Autopilot.currentAltitude
directors
readonlydirectors:APDirectors
Defined in: sdk/autopilot/Autopilot.ts:125
This autopilot's plane directors.
Inherited from
Autopilot.directors
externalAutopilotInstalled
readonlyexternalAutopilotInstalled:Subject<boolean>
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:40
flightPlanner
protectedreadonlyflightPlanner:FlightPlanner
Defined in: sdk/autopilot/Autopilot.ts:203
This autopilot's associated flight planner.
Inherited from
Autopilot.flightPlanner
flightPlanSynced
protectedflightPlanSynced:boolean=false
Defined in: sdk/autopilot/Autopilot.ts:155
Inherited from
Autopilot.flightPlanSynced
fmaData
protectedreadonlyfmaData:ObjectSubject<Epic2FmaData>
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:47
headingSyncController
protectedreadonlyheadingSyncController:Epic2HeadingSyncController
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:45
inClimb
protectedinClimb:boolean=false
Defined in: sdk/autopilot/Autopilot.ts:151
Inherited from
Autopilot.inClimb
lateralArmedModeSubject
protectedreadonlylateralArmedModeSubject:Subject<APLateralModes>
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:41
lateralModeFailed
protectedlateralModeFailed:boolean=false
Defined in: sdk/autopilot/Autopilot.ts:149
Inherited from
Autopilot.lateralModeFailed
lateralModes
protectedlateralModes:Map<APLateralModes,PlaneDirector>
Defined in: sdk/autopilot/Autopilot.ts:143
Inherited from
Autopilot.lateralModes
navToNavManager
readonlynavToNavManager:undefined|NavToNavManager|NavToNavManager2
Defined in: sdk/autopilot/Autopilot.ts:128
This autopilot's nav-to-nav transfer manager.
Inherited from
Autopilot.navToNavManager
navToNavManagerToUse
protectedreadonlynavToNavManagerToUse:undefined|NavToNavManager2
Defined in: sdk/autopilot/Autopilot.ts:130
Inherited from
Autopilot.navToNavManagerToUse
requireApproachIsActiveForNavToNav
protectedrequireApproachIsActiveForNavToNav:boolean=true
Defined in: sdk/autopilot/Autopilot.ts:158
Can be set to false in child classes to override behavior for certain aircraft.
Inherited from
Autopilot.requireApproachIsActiveForNavToNav
stateManager
readonlystateManager:Epic2APStateManager
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:78
This autopilot's state manager.
Inherited from
Autopilot.stateManager
togaIsOn
protectedtogaIsOn:boolean=false
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:53
variableBankManager
readonlyvariableBankManager:undefined|Record<any,any>
Defined in: sdk/autopilot/Autopilot.ts:136
This autopilot's variable bank angle Manager.
Inherited from
Autopilot.variableBankManager
verticalAltitudeArmed
protectedverticalAltitudeArmed:APAltitudeModes=APAltitudeModes.NONE
Defined in: sdk/autopilot/Autopilot.ts:146
Inherited from
Autopilot.verticalAltitudeArmed
verticalApproachArmed
protectedverticalApproachArmed:APVerticalModes=APVerticalModes.NONE
Defined in: sdk/autopilot/Autopilot.ts:147
Inherited from
Autopilot.verticalApproachArmed
verticalModes
protectedverticalModes:Map<APVerticalModes,PlaneDirector>
Defined in: sdk/autopilot/Autopilot.ts:145
Inherited from
Autopilot.verticalModes
vnavCaptureType
protectedvnavCaptureType:VNavAltCaptureType=VNavAltCaptureType.None
Defined in: sdk/autopilot/Autopilot.ts:153
Inherited from
Autopilot.vnavCaptureType
vnavManager
readonlyvnavManager:undefined|VNavManager
Defined in: sdk/autopilot/Autopilot.ts:133
This autopilot's VNav Manager.
Inherited from
Autopilot.vnavManager
Methods
approachPressed()
protectedapproachPressed(set?):void
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:204
Parameters
| Parameter | Type |
|---|---|
set? | boolean |
Returns
void
Inherit Doc
Overrides
Autopilot.approachPressed
checkModes()
protectedcheckModes():void
Defined in: sdk/autopilot/Autopilot.ts:1032
Checks if all the active and armed modes are still in their proper state and takes corrective action if not.
Returns
void
Inherited from
Autopilot.checkModes
checkRollModeActive()
protectedcheckRollModeActive():void
Defined in: sdk/autopilot/Autopilot.ts:1350
Checks if the sim AP is in roll mode and sets it if not.
Returns
void
Inherited from
Autopilot.checkRollModeActive
deactivateArmedOrActiveLateralMode()
protecteddeactivateArmedOrActiveLateralMode(mode):boolean
Defined in: sdk/autopilot/Autopilot.ts:463
Attempts to deactivate an armed or active lateral mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | APLateralModes | 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:509
Attempts to deactivate an armed or active vertical mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | APVerticalModes | 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-epic2/shared/Autopilot/Epic2Autopilot.ts:261
Returns
APLateralModes
Inherit Doc
Overrides
Autopilot.getArmableApproachType
getDefaultLateralMode()
protectedgetDefaultLateralMode():APLateralModes
Defined in: sdk/autopilot/Autopilot.ts:1369
Get the default lateral mode from APConfig
Returns
APLateralModes
default lateral mode
Inherited from
Autopilot.getDefaultLateralMode
getDefaultVerticalMode()
protectedgetDefaultVerticalMode():APVerticalModes
Defined in: sdk/autopilot/Autopilot.ts:1381
Get the default vertical mode from APConfig
Returns
APVerticalModes
default vertical mode
Inherited from
Autopilot.getDefaultVerticalMode
handleApFdStateChange()
protectedhandleApFdStateChange():void
Defined in: sdk/autopilot/Autopilot.ts:1312
Manages the FD state and the modes when AP/FD are off.
Returns
void
Inherited from
Autopilot.handleApFdStateChange
initLateralModes()
protectedinitLateralModes():void
Defined in: sdk/autopilot/Autopilot.ts:729
Initializes the Autopilot with the available lateral modes from the config.
Returns
void
Inherited from
Autopilot.initLateralModes
initNavToNavManager()
protectedinitNavToNavManager():void
Defined in: sdk/autopilot/Autopilot.ts:856
Initializes the Autopilot with the available Nav To Nav Manager.
Returns
void
Inherited from
Autopilot.initNavToNavManager
initVerticalModes()
protectedinitVerticalModes():void
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:150
Returns
void
Inherit Doc
Overrides
Autopilot.initVerticalModes
initVNavManager()
protectedinitVNavManager():void
Defined in: sdk/autopilot/Autopilot.ts:872
Initializes the Autopilot with the available VNav Manager.
Returns
void
Inherited from
Autopilot.initVNavManager
isLateralModeActivatedOrArmed()
protectedisLateralModeActivatedOrArmed(mode):boolean
Defined in: sdk/autopilot/Autopilot.ts:454
Checks if a lateral mode is armed or active and if so, deactivates it.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | APLateralModes | 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:350
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
Autopilot.lateralPressed
manageAltitudeCapture()
protectedmanageAltitudeCapture():void
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:497
Checks and sets the proper armed altitude mode.
Returns
void
Overrides
Autopilot.manageAltitudeCapture
monitorAdditionalEvents()
protectedmonitorAdditionalEvents():void
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:290
Returns
void
Inherit Doc
Overrides
Autopilot.monitorAdditionalEvents
monitorApSpeedValues()
protectedmonitorApSpeedValues():void
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:481
Overridable method for setting the selected speed values for the A/P to follow.
Returns
void
Overrides
Autopilot.monitorApSpeedValues
monitorEvents()
protectedmonitorEvents():void
Defined in: sdk/autopilot/Autopilot.ts:1157
Monitors subevents and bus events.
Returns
void
Inherited from
Autopilot.monitorEvents
onAfterUpdate()
protectedonAfterUpdate():void
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:129
Returns
void
Inherit Doc
Overrides
Autopilot.onAfterUpdate
onBeforeUpdate()
protectedonBeforeUpdate():void
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:117
Returns
void
Inherit Doc
Overrides
Autopilot.onBeforeUpdate
onEpic2VerticalEvent()
protectedonEpic2VerticalEvent(event):void
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:587
Handles epic2 specific vertical events from the AP state manager.
Parameters
| Parameter | Type | Description |
|---|---|---|
event | PitchWheelTurned | The event that occured. |
Returns
void
onInitialized()
protectedonInitialized():void
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:134
Returns
void
Inherit Doc
Overrides
Autopilot.onInitialized
setAltHold()
protectedsetAltHold():void
Defined in: sdk/autopilot/Autopilot.ts:718
Method called when the ALT button is pressed.
Returns
void
Inherited from
Autopilot.setAltHold
setLateralActive()
protectedsetLateralActive(mode):void
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:179
Parameters
| Parameter | Type |
|---|---|
mode | APLateralModes |
Returns
void
Inherit Doc
Overrides
Autopilot.setLateralActive
setVerticalActive()
protectedsetVerticalActive(mode):void
Defined in: sdk/autopilot/Autopilot.ts:673
Callback to set the vertical active mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | APVerticalModes | is the mode being set. |
Returns
void
Inherited from
Autopilot.setVerticalActive
setVerticalApproachArmed()
protectedsetVerticalApproachArmed(mode):void
Defined in: sdk/autopilot/Autopilot.ts:709
Callback to set the vertical approach armed mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | APVerticalModes | is the mode being set. |
Returns
void
Inherited from
Autopilot.setVerticalApproachArmed
setVerticalArmed()
protectedsetVerticalArmed(mode):void
Defined in: sdk/autopilot/Autopilot.ts:694
Callback to set the vertical armed mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | APVerticalModes | is the mode being set. |
Returns
void
Inherited from
Autopilot.setVerticalArmed
togaPressed()
protectedtogaPressed():void
Defined in: workingtitle-instruments-epic2/shared/Autopilot/Epic2Autopilot.ts:543
Handles input from the State Manager when the TOGA button is pressed (K event AUTO_THROTTLE_TO_GA)
Returns
void
Overrides
Autopilot.togaPressed
update()
update():
void
Defined in: sdk/autopilot/Autopilot.ts:312
Update method for the Autopilot.
Returns
void
Inherited from
Autopilot.update
updateModes()
protectedupdateModes():void
Defined in: sdk/autopilot/Autopilot.ts:1069
Runs update on each of the active and armed modes.
Returns
void
Inherited from
Autopilot.updateModes
updateNavToNavManagerAfter()
protectedupdateNavToNavManagerAfter():void
Defined in: sdk/autopilot/Autopilot.ts:1150
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:1143
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:398
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
Inherited from
Autopilot.verticalPressed