Skip to main content

Class: GarminAutopilot

A Garmin autopilot.

Hierarchy

Constructors

constructor

new GarminAutopilot(bus, flightPlanner, config, stateManager, options?): GarminAutopilot

Creates a new instance of GarminAutopilot.

Parameters

NameTypeDescription
busEventBusThe event bus.
flightPlannerFlightPlanner<any>This autopilot's associated flight planner.
configGarminAPConfigInterfaceThis autopilot's configuration.
stateManagerAPStateManagerThis autopilot's state manager.
options?Readonly<GarminAutopilotOptions>Options with which to configure the new autopilot.

Returns

GarminAutopilot

Overrides

Autopilot\<GarminAPConfigInterface\>.constructor

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:103

Properties

_apValues

Protected Readonly _apValues: Object

Type declaration

NameType
apApproachModeOnSubject<boolean>
approachHasGPSubject<boolean>
approachIsActiveSubject<boolean>
capturedAltitudeSubject<number>
cdiIdstring
cdiSourceSubject<Readonly<NavSourceId>>
isSelectedSpeedInMachSubject<boolean>
lateralActiveSubject<APLateralModes>
lateralArmedSubject<APLateralModes>
maxBankAngleSubject<number>
maxBankIdSubject<number>
nav1HasGsSubject<boolean>
nav2HasGsSubject<boolean>
nav3HasGsSubject<boolean>
nav4HasGsSubject<boolean>
selectedAltitudeSubject<number>
selectedFlightPathAngleSubject<number>
selectedHeadingSubject<number>
selectedIasSubject<number>
selectedMachSubject<number>
selectedPitchSubject<number>
selectedVerticalSpeedSubject<number>
simRateSubject<number>
verticalActiveSubject<APVerticalModes>
verticalArmedSubject<APVerticalModes>

Inherited from

Autopilot._apValues

Defined in

src/sdk/autopilot/Autopilot.ts:157


altCapArmed

Protected altCapArmed: boolean = false

Inherited from

Autopilot.altCapArmed

Defined in

src/sdk/autopilot/Autopilot.ts:145


altSelectManager

Protected Readonly altSelectManager: AltitudeSelectManager

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:72


altSelectStops

Protected Readonly altSelectStops: SetSubject<number>

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:70


apValues

Readonly apValues: APValues

Inherited from

Autopilot.apValues

Defined in

src/sdk/autopilot/Autopilot.ts:185


autopilotInitialized

Protected autopilotInitialized: boolean = false

Inherited from

Autopilot.autopilotInitialized

Defined in

src/sdk/autopilot/Autopilot.ts:187


bus

Protected Readonly bus: EventBus

The event bus.

Inherited from

Autopilot.bus

Defined in

src/sdk/autopilot/Autopilot.ts:197


cdiSource

Protected cdiSource: Readonly<NavSourceId>

Inherited from

Autopilot.cdiSource

Defined in

src/sdk/autopilot/Autopilot.ts:138


config

Protected Readonly config: GarminAPConfigInterface

This autopilot's configuration.

Inherited from

Autopilot.config

Defined in

src/sdk/autopilot/Autopilot.ts:199


currentAltitude

Protected currentAltitude: number = 0

Inherited from

Autopilot.currentAltitude

Defined in

src/sdk/autopilot/Autopilot.ts:149


directors

Readonly directors: APDirectors

This autopilot's plane directors.

Inherited from

Autopilot.directors

Defined in

src/sdk/autopilot/Autopilot.ts:122


flightPlanSynced

Protected flightPlanSynced: boolean = false

Inherited from

Autopilot.flightPlanSynced

Defined in

src/sdk/autopilot/Autopilot.ts:152


flightPlanner

Protected Readonly flightPlanner: FlightPlanner<any>

This autopilot's associated flight planner.

Inherited from

Autopilot.flightPlanner

Defined in

src/sdk/autopilot/Autopilot.ts:198


fmaData

Protected Readonly fmaData: ObjectSubject<FmaData>

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:74


fmaDataPublisher

Protected Readonly fmaDataPublisher: Publisher<FmaDataEvents>

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:87


inClimb

Protected inClimb: boolean = false

Inherited from

Autopilot.inClimb

Defined in

src/sdk/autopilot/Autopilot.ts:148


lateralModeFailed

Protected lateralModeFailed: boolean = false

Inherited from

Autopilot.lateralModeFailed

Defined in

src/sdk/autopilot/Autopilot.ts:146


lateralModes

Protected lateralModes: Map<APLateralModes, PlaneDirector>

Inherited from

Autopilot.lateralModes

Defined in

src/sdk/autopilot/Autopilot.ts:140


machToKias

Protected Readonly machToKias: ConsumerValue<number>

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:90


Readonly navToNavManager: undefined | NavToNavManager | NavToNavManager2

This autopilot's nav-to-nav transfer manager.

Inherited from

Autopilot.navToNavManager

Defined in

src/sdk/autopilot/Autopilot.ts:125


Protected Readonly navToNavManagerToUse: undefined | NavToNavManager2

Inherited from

Autopilot.navToNavManagerToUse

Defined in

src/sdk/autopilot/Autopilot.ts:127


needPublishFmaData

Protected needPublishFmaData: boolean = false

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:88


requireApproachIsActiveForNavToNav

Protected requireApproachIsActiveForNavToNav: boolean = true

Can be set to false in child classes to override behavior for certain aircraft.

Inherited from

Autopilot.requireApproachIsActiveForNavToNav

Defined in

src/sdk/autopilot/Autopilot.ts:155


selSpeedIsMach

Protected Readonly selSpeedIsMach: ConsumerSubject<boolean>

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:91


stateManager

Readonly stateManager: APStateManager

This autopilot's state manager.

Inherited from

Autopilot.stateManager

Defined in

src/sdk/autopilot/Autopilot.ts:200


supportMachSelect

Protected Readonly supportMachSelect: boolean

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:93


variableBankManager

Readonly variableBankManager: undefined | Record<any, any>

This autopilot's variable bank angle Manager.

Inherited from

Autopilot.variableBankManager

Defined in

src/sdk/autopilot/Autopilot.ts:133


verticalAltitudeArmed

Protected verticalAltitudeArmed: APAltitudeModes = APAltitudeModes.NONE

Inherited from

Autopilot.verticalAltitudeArmed

Defined in

src/sdk/autopilot/Autopilot.ts:143


verticalApproachArmed

Protected verticalApproachArmed: APVerticalModes = APVerticalModes.NONE

Inherited from

Autopilot.verticalApproachArmed

Defined in

src/sdk/autopilot/Autopilot.ts:144


verticalModes

Protected verticalModes: Map<APVerticalModes, PlaneDirector>

Inherited from

Autopilot.verticalModes

Defined in

src/sdk/autopilot/Autopilot.ts:142


vnavCaptureType

Protected vnavCaptureType: VNavAltCaptureType = VNavAltCaptureType.None

Inherited from

Autopilot.vnavCaptureType

Defined in

src/sdk/autopilot/Autopilot.ts:150


vnavManager

Readonly vnavManager: undefined | VNavManager

This autopilot's VNav Manager.

Inherited from

Autopilot.vnavManager

Defined in

src/sdk/autopilot/Autopilot.ts:130


ALT_SELECT_OPTIONS_DEFAULT

Static Protected Readonly ALT_SELECT_OPTIONS_DEFAULT: AltitudeSelectManagerOptions

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:56

Methods

approachPressed

approachPressed(set?): void

Handles input from the State Manager when the APPR button is pressed.

Parameters

NameTypeDescription
set?booleanis whether this event commands a specific set

Returns

void

Inherited from

Autopilot.approachPressed

Defined in

src/sdk/autopilot/Autopilot.ts:513


checkModes

checkModes(): void

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

Defined in

src/sdk/autopilot/Autopilot.ts:1007


checkRollModeActive

checkRollModeActive(): void

Checks if the sim AP is in roll mode and sets it if not.

Returns

void

Inherited from

Autopilot.checkRollModeActive

Defined in

src/sdk/autopilot/Autopilot.ts:1307


deactivateArmedOrActiveVerticalMode

deactivateArmedOrActiveVerticalMode(mode): boolean

Checks if a mode is active or armed and deactivates it.

Parameters

NameTypeDescription
modeAPVerticalModesis the AP Mode to check.

Returns

boolean

whether this mode was active or armed and subsequently disabled.

Inherited from

Autopilot.deactivateArmedOrActiveVerticalMode

Defined in

src/sdk/autopilot/Autopilot.ts:486


getArmableApproachType

getArmableApproachType(): APLateralModes

Returns the AP Lateral Mode that can be armed.

Returns

APLateralModes

The AP Lateral Mode that can be armed.

Inherited from

Autopilot.getArmableApproachType

Defined in

src/sdk/autopilot/Autopilot.ts:590


getDefaultLateralMode

getDefaultLateralMode(): APLateralModes

Get the default lateral mode from APConfig

Returns

APLateralModes

default lateral mode

Inherited from

Autopilot.getDefaultLateralMode

Defined in

src/sdk/autopilot/Autopilot.ts:1328


getDefaultVerticalMode

getDefaultVerticalMode(): APVerticalModes

Get the default vertical mode from APConfig

Returns

APVerticalModes

default vertical mode

Inherited from

Autopilot.getDefaultVerticalMode

Defined in

src/sdk/autopilot/Autopilot.ts:1340


handleApFdStateChange

handleApFdStateChange(): void

Manages the FD state and the modes when AP/FD are off.

Returns

void

Inherited from

Autopilot.handleApFdStateChange

Defined in

src/sdk/autopilot/Autopilot.ts:1269


initLateralModes

initLateralModes(): void

Initializes the Autopilot with the available lateral modes from the config.

Returns

void

Inherited from

Autopilot.initLateralModes

Defined in

src/sdk/autopilot/Autopilot.ts:704


initNavToNavManager

initNavToNavManager(): void

Initializes the Autopilot with the available Nav To Nav Manager.

Returns

void

Inherited from

Autopilot.initNavToNavManager

Defined in

src/sdk/autopilot/Autopilot.ts:831


initVNavManager

initVNavManager(): void

Initializes the Autopilot with the available VNav Manager.

Returns

void

Inherited from

Autopilot.initVNavManager

Defined in

src/sdk/autopilot/Autopilot.ts:847


initVerticalModes

initVerticalModes(): void

Returns

void

Inherit Doc

Overrides

Autopilot.initVerticalModes

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:155


isLateralModeActivatedOrArmed

isLateralModeActivatedOrArmed(mode): boolean

Checks if a mode is active or armed and optionally deactivates it.

Parameters

NameTypeDescription
modeAPLateralModesis the AP Mode to check.

Returns

boolean

whether this mode was active or armed and subsequently disabled.

Inherited from

Autopilot.isLateralModeActivatedOrArmed

Defined in

src/sdk/autopilot/Autopilot.ts:440


lateralPressed

lateralPressed(data): void

Handles input from the State Manager when a lateral mode button is pressed.

Parameters

NameTypeDescription
dataAPModePressEventis the AP Lateral Mode Event Data

Returns

void

Inherited from

Autopilot.lateralPressed

Defined in

src/sdk/autopilot/Autopilot.ts:338


manageAltitudeCapture

manageAltitudeCapture(): void

Checks and sets the proper armed altitude mode.

Returns

void

Overrides

Autopilot.manageAltitudeCapture

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:205


monitorAdditionalEvents

monitorAdditionalEvents(): void

Returns

void

Inherit Doc

Overrides

Autopilot.monitorAdditionalEvents

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:172


monitorApSpeedValues

monitorApSpeedValues(): void

Overridable method for setting the selected speed values for the A/P to follow.

Returns

void

Inherited from

Autopilot.monitorApSpeedValues

Defined in

src/sdk/autopilot/Autopilot.ts:1246


onAfterUpdate

onAfterUpdate(): void

Returns

void

Inherit Doc

Overrides

Autopilot.onAfterUpdate

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:237


onBeforeUpdate

onBeforeUpdate(): void

This method runs each update cycle before the update occurs.

Returns

void

Inherited from

Autopilot.onBeforeUpdate

Defined in

src/sdk/autopilot/Autopilot.ts:316


onInitialized

onInitialized(): void

Returns

void

Inherit Doc

Overrides

Autopilot.onInitialized

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:167


reset

reset(): void

Resets this autopilot. Resets the altitude preselector, sets AP MASTER to off, and deactivates the flight director.

Returns

void

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:144


setAltHold

setAltHold(): void

Method called when the ALT button is pressed.

Returns

void

Inherited from

Autopilot.setAltHold

Defined in

src/sdk/autopilot/Autopilot.ts:693


setLateralActive

setLateralActive(mode): void

Callback to set the lateral active mode.

Parameters

NameTypeDescription
modeAPLateralModesis the mode being set.

Returns

void

Inherited from

Autopilot.setLateralActive

Defined in

src/sdk/autopilot/Autopilot.ts:620


setVerticalActive

setVerticalActive(mode): void

Callback to set the vertical active mode.

Parameters

NameTypeDescription
modeAPVerticalModesis the mode being set.

Returns

void

Inherited from

Autopilot.setVerticalActive

Defined in

src/sdk/autopilot/Autopilot.ts:648


setVerticalApproachArmed

setVerticalApproachArmed(mode): void

Callback to set the vertical approach armed mode.

Parameters

NameTypeDescription
modeAPVerticalModesis the mode being set.

Returns

void

Inherited from

Autopilot.setVerticalApproachArmed

Defined in

src/sdk/autopilot/Autopilot.ts:684


setVerticalArmed

setVerticalArmed(mode): void

Callback to set the vertical armed mode.

Parameters

NameTypeDescription
modeAPVerticalModesis the mode being set.

Returns

void

Inherited from

Autopilot.setVerticalArmed

Defined in

src/sdk/autopilot/Autopilot.ts:669


togaPressed

togaPressed(): void

Handles input from the State Manager when the TOGA button is pressed (K event AUTO_THROTTLE_TO_GA)

Returns

void

Inherited from

Autopilot.togaPressed

Defined in

src/sdk/autopilot/Autopilot.ts:544


update

update(): void

Update method for the Autopilot.

Returns

void

Inherited from

Autopilot.update

Defined in

src/sdk/autopilot/Autopilot.ts:300


updateFma

updateFma(): void

Publishes data for the FMA.

Returns

void

Defined in

src/garminsdk/autopilot/GarminAutopilot.ts:244


updateModes

updateModes(): void

Runs update on each of the active and armed modes.

Returns

void

Inherited from

Autopilot.updateModes

Defined in

src/sdk/autopilot/Autopilot.ts:1044


updateNavToNavManagerAfter

updateNavToNavManagerAfter(): void

Updates this autopilot's nav-to-nav manager after directors have been updated.

Returns

void

Inherited from

Autopilot.updateNavToNavManagerAfter

Defined in

src/sdk/autopilot/Autopilot.ts:1125


updateNavToNavManagerBefore

updateNavToNavManagerBefore(): void

Updates this autopilot's nav-to-nav manager before directors have been updated.

Returns

void

Inherited from

Autopilot.updateNavToNavManagerBefore

Defined in

src/sdk/autopilot/Autopilot.ts:1118


verticalPressed

verticalPressed(data): void

Handles input from the State Manager when a vertical mode button is pressed.

Parameters

NameTypeDescription
dataAPModePressEventis the AP Vertical Mode Event Data

Returns

void

Inherited from

Autopilot.verticalPressed

Defined in

src/sdk/autopilot/Autopilot.ts:385