Class: GarminAutopilot
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:56
A Garmin autopilot.
Extends
Autopilot<GarminAPConfigInterface>
Constructors
Constructor
new GarminAutopilot(
bus,flightPlanner,config,stateManager,options?):GarminAutopilot
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:109
Creates a new instance of GarminAutopilot.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus. |
flightPlanner | FlightPlanner | This autopilot's associated flight planner. |
config | GarminAPConfigInterface | This autopilot's configuration. |
stateManager | APStateManager | This autopilot's state manager. |
options? | Readonly<GarminAutopilotOptions> | Options with which to configure the new autopilot. |
Returns
GarminAutopilot
Overrides
Autopilot<GarminAPConfigInterface>.constructor
Properties
_apValues
protectedreadonly_apValues:object
Defined in: src/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
altCapArmed
protectedaltCapArmed:boolean=false
Defined in: src/sdk/autopilot/Autopilot.ts:148
Inherited from
Autopilot.altCapArmed
altSelectManager
protectedreadonlyaltSelectManager:AltitudeSelectManager
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:73
altSelectStops
protectedreadonlyaltSelectStops:SetSubject<number>
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:71
apDriver
protectedreadonlyapDriver:AutopilotDriver
Defined in: src/sdk/autopilot/Autopilot.ts:139
This autopilot's sim autopilot driver.
Inherited from
Autopilot.apDriver
apValues
readonlyapValues:APValues
Defined in: src/sdk/autopilot/Autopilot.ts:190
Inherited from
Autopilot.apValues
autopilotInitialized
protectedautopilotInitialized:boolean=false
Defined in: src/sdk/autopilot/Autopilot.ts:192
Inherited from
Autopilot.autopilotInitialized
bus
protectedreadonlybus:EventBus
Defined in: src/sdk/autopilot/Autopilot.ts:202
The event bus.
Inherited from
Autopilot.bus
cdiSource
protectedcdiSource:Readonly<NavSourceId>
Defined in: src/sdk/autopilot/Autopilot.ts:141
Inherited from
Autopilot.cdiSource
config
protectedreadonlyconfig:GarminAPConfigInterface
Defined in: src/sdk/autopilot/Autopilot.ts:204
This autopilot's configuration.
Inherited from
Autopilot.config
currentAltitude
protectedcurrentAltitude:number=0
Defined in: src/sdk/autopilot/Autopilot.ts:152
Inherited from
Autopilot.currentAltitude
directors
readonlydirectors:APDirectors
Defined in: src/sdk/autopilot/Autopilot.ts:125
This autopilot's plane directors.
Inherited from
Autopilot.directors
flightPlanner
protectedreadonlyflightPlanner:FlightPlanner
Defined in: src/sdk/autopilot/Autopilot.ts:203
This autopilot's associated flight planner.
Inherited from
Autopilot.flightPlanner
flightPlanSynced
protectedflightPlanSynced:boolean=false
Defined in: src/sdk/autopilot/Autopilot.ts:155
Inherited from
Autopilot.flightPlanSynced
fmaData
protectedreadonlyfmaData:ObjectSubject<FmaData>
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:75
fmaDataPublisher
protectedreadonlyfmaDataPublisher:Publisher<FmaDataEvents>
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:88
inClimb
protectedinClimb:boolean=false
Defined in: src/sdk/autopilot/Autopilot.ts:151
Inherited from
Autopilot.inClimb
isApproachModeCommandedOn
protectedisApproachModeCommandedOn:boolean=false
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:99
isApproachModeOn
protectedreadonlyisApproachModeOn:Subject<boolean>
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:97
isNavModeOn
protectedreadonlyisNavModeOn:Subject<boolean>
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:96
lateralModeFailed
protectedlateralModeFailed:boolean=false
Defined in: src/sdk/autopilot/Autopilot.ts:149
Inherited from
Autopilot.lateralModeFailed
lateralModes
protectedlateralModes:Map<APLateralModes,PlaneDirector>
Defined in: src/sdk/autopilot/Autopilot.ts:143
Inherited from
Autopilot.lateralModes
machToKias
protectedreadonlymachToKias:ConsumerValue<number>
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:91
navToNavManager
readonlynavToNavManager:undefined|NavToNavManager|NavToNavManager2
Defined in: src/sdk/autopilot/Autopilot.ts:128
This autopilot's nav-to-nav transfer manager.
Inherited from
Autopilot.navToNavManager
navToNavManagerToUse
protectedreadonlynavToNavManagerToUse:undefined|NavToNavManager2
Defined in: src/sdk/autopilot/Autopilot.ts:130
Inherited from
Autopilot.navToNavManagerToUse
needPublishFmaData
protectedneedPublishFmaData:boolean=false
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:89
requireApproachIsActiveForNavToNav
protectedrequireApproachIsActiveForNavToNav:boolean=true
Defined in: src/sdk/autopilot/Autopilot.ts:158
Can be set to false in child classes to override behavior for certain aircraft.
Inherited from
Autopilot.requireApproachIsActiveForNavToNav
selSpeedIsMach
protectedreadonlyselSpeedIsMach:ConsumerSubject<boolean>
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:92
stateManager
readonlystateManager:APStateManager
Defined in: src/sdk/autopilot/Autopilot.ts:205
This autopilot's state manager.
Inherited from
Autopilot.stateManager
supportMachSelect
protectedreadonlysupportMachSelect:boolean
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:94
variableBankManager
readonlyvariableBankManager:undefined|Record<any,any>
Defined in: src/sdk/autopilot/Autopilot.ts:136
This autopilot's variable bank angle Manager.
Inherited from
Autopilot.variableBankManager
verticalAltitudeArmed
protectedverticalAltitudeArmed:APAltitudeModes=APAltitudeModes.NONE
Defined in: src/sdk/autopilot/Autopilot.ts:146
Inherited from
Autopilot.verticalAltitudeArmed
verticalApproachArmed
protectedverticalApproachArmed:APVerticalModes=APVerticalModes.NONE
Defined in: src/sdk/autopilot/Autopilot.ts:147
Inherited from
Autopilot.verticalApproachArmed
verticalModes
protectedverticalModes:Map<APVerticalModes,PlaneDirector>
Defined in: src/sdk/autopilot/Autopilot.ts:145
Inherited from
Autopilot.verticalModes
vnavCaptureType
protectedvnavCaptureType:VNavAltCaptureType=VNavAltCaptureType.None
Defined in: src/sdk/autopilot/Autopilot.ts:153
Inherited from
Autopilot.vnavCaptureType
vnavManager
readonlyvnavManager:undefined|VNavManager
Defined in: src/sdk/autopilot/Autopilot.ts:133
This autopilot's VNav Manager.
Inherited from
Autopilot.vnavManager
ALT_SELECT_OPTIONS_DEFAULT
protectedreadonlystaticALT_SELECT_OPTIONS_DEFAULT:AltitudeSelectManagerOptions
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:57
Methods
activateApproachMode()
protectedactivateApproachMode():void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:393
Activates approach mode. Activating approach mode will arm lateral and vertical modes based on the current CDI source and nav-to-nav guidance.
Returns
void
approachPressed()
protectedapproachPressed(set?):void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:370
Parameters
| Parameter | Type |
|---|---|
set? | boolean |
Returns
void
Inherit Doc
Overrides
Autopilot.approachPressed
armModesForApproach()
protectedarmModesForApproach(lateralMode,verticalMode):void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:436
Arms lateral and vertical approach modes. The vertical mode will only be armed if the lateral mode is successfully armed.
Parameters
| Parameter | Type | Description |
|---|---|---|
lateralMode | APLateralModes | The lateral mode to arm. |
verticalMode | APVerticalModes | The vertical mode to arm. |
Returns
void
checkModes()
protectedcheckModes():void
Defined in: src/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: src/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
deactivateApproachMode()
protecteddeactivateApproachMode(preserveLateralMode):void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:471
Deactivates approach mode. Deactivating approach mode will deactivate any armed or active lateral and vertical approach modes.
Parameters
| Parameter | Type | Description |
|---|---|---|
preserveLateralMode | boolean | Whether to preserve armed or active lateral modes. If true, then any armed or active lateral approach mode that is deactivated will be replaced with its non-approach counterpart, if one exists. |
Returns
void
deactivateArmedOrActiveLateralMode()
protecteddeactivateArmedOrActiveLateralMode(mode):boolean
Defined in: src/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: src/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: src/sdk/autopilot/Autopilot.ts:615
Returns the AP Lateral Mode that can be armed.
Returns
APLateralModes
The AP Lateral Mode that can be armed.
Inherited from
Autopilot.getArmableApproachType
getDefaultLateralMode()
protectedgetDefaultLateralMode():APLateralModes
Defined in: src/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: src/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: src/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: src/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: src/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: src/garminsdk/autopilot/GarminAutopilot.ts:163
Returns
void
Inherit Doc
Overrides
Autopilot.initVerticalModes
initVNavManager()
protectedinitVNavManager():void
Defined in: src/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: src/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: src/garminsdk/autopilot/GarminAutopilot.ts:342
Parameters
| Parameter | Type |
|---|---|
data | APModePressEvent |
Returns
void
Inherit Doc
Overrides
Autopilot.lateralPressed
manageAltitudeCapture()
protectedmanageAltitudeCapture():void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:221
Checks and sets the proper armed altitude mode.
Returns
void
Overrides
Autopilot.manageAltitudeCapture
monitorAdditionalEvents()
protectedmonitorAdditionalEvents():void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:188
Returns
void
Inherit Doc
Overrides
Autopilot.monitorAdditionalEvents
monitorApSpeedValues()
protectedmonitorApSpeedValues():void
Defined in: src/sdk/autopilot/Autopilot.ts:1289
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: src/sdk/autopilot/Autopilot.ts:1157
Monitors subevents and bus events.
Returns
void
Inherited from
Autopilot.monitorEvents
monitorGarminEvents()
protectedmonitorGarminEvents():void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:177
Monitors Garmin autopilot-specific events.
Returns
void
onAfterUpdate()
protectedonAfterUpdate():void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:253
Returns
void
Inherit Doc
Overrides
Autopilot.onAfterUpdate
onBeforeUpdate()
protectedonBeforeUpdate():void
Defined in: src/sdk/autopilot/Autopilot.ts:328
This method runs each update cycle before the update occurs.
Returns
void
Inherited from
Autopilot.onBeforeUpdate
onInitialized()
protectedonInitialized():void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:183
Returns
void
Inherit Doc
Overrides
Autopilot.onInitialized
reconcileApproachState()
protectedreconcileApproachState():void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:493
Reconciles the nominal approach mode state with the state of this autopilot's directors.
Returns
void
reset()
reset():
void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:152
Resets this autopilot. Resets the altitude preselector, sets AP MASTER to off, and deactivates the flight director.
Returns
void
setAltHold()
protectedsetAltHold():void
Defined in: src/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: src/sdk/autopilot/Autopilot.ts:645
Callback to set the lateral active mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | APLateralModes | is the mode being set. |
Returns
void
Inherited from
Autopilot.setLateralActive
setVerticalActive()
protectedsetVerticalActive(mode):void
Defined in: src/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: src/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: src/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: src/sdk/autopilot/Autopilot.ts:567
Handles input from the State Manager when the TOGA button is pressed (K event AUTO_THROTTLE_TO_GA)
Returns
void
Inherited from
Autopilot.togaPressed
update()
update():
void
Defined in: src/sdk/autopilot/Autopilot.ts:312
Update method for the Autopilot.
Returns
void
Inherited from
Autopilot.update
updateApproachModeState()
protectedupdateApproachModeState():void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:301
Updates this autopilot's approach mode state.
Returns
void
updateFma()
protectedupdateFma():void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:311
Publishes data for the FMA.
Returns
void
updateModes()
protectedupdateModes():void
Defined in: src/sdk/autopilot/Autopilot.ts:1069
Runs update on each of the active and armed modes.
Returns
void
Inherited from
Autopilot.updateModes
updateNavModeState()
protectedupdateNavModeState():void
Defined in: src/garminsdk/autopilot/GarminAutopilot.ts:262
Updates this autopilot's NAV mode state.
Returns
void
updateNavToNavManagerAfter()
protectedupdateNavToNavManagerAfter():void
Defined in: src/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: src/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: src/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