Skip to main content

Class: WT21Autopilot

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

WT21 autopilot.

Extends

  • Autopilot

Constructors

Constructor

new WT21Autopilot(bus, flightPlanner, config, stateManager, settingsManager): WT21Autopilot

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

Creates an instance of the WT21Autopilot.

Parameters

ParameterTypeDescription
busEventBusThe event bus.
flightPlannerFlightPlannerThis autopilot's associated flight planner.
configAPConfigThis autopilot's configuration.
stateManagerAPStateManagerThis autopilot's state manager.
settingsManagerMetricAltitudeSettingsManagerThe settings manager to pass to altitude preselect system.

Returns

WT21Autopilot

Overrides

Autopilot.constructor

Properties

_apValues

protected readonly _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: Subject<boolean>

nav2HasGs: Subject<boolean>

nav3HasGs: Subject<boolean>

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

protected readonly altArmedSubject: Subject<boolean>

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


altCapArmed

protected altCapArmed: boolean = false

Defined in: sdk/autopilot/Autopilot.ts:148

Inherited from

Autopilot.altCapArmed


altSelectManager

protected readonly altSelectManager: AltitudeSelectManager

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


apDriver

protected readonly apDriver: AutopilotDriver

Defined in: sdk/autopilot/Autopilot.ts:139

This autopilot's sim autopilot driver.

Inherited from

Autopilot.apDriver


apValues

readonly apValues: APValues

Defined in: sdk/autopilot/Autopilot.ts:190

Inherited from

Autopilot.apValues


autopilotInitialized

protected autopilotInitialized: boolean = false

Defined in: sdk/autopilot/Autopilot.ts:192

Inherited from

Autopilot.autopilotInitialized


bus

protected readonly bus: EventBus

Defined in: sdk/autopilot/Autopilot.ts:202

The event bus.

Inherited from

Autopilot.bus


cdiSource

protected cdiSource: Readonly<NavSourceId>

Defined in: sdk/autopilot/Autopilot.ts:141

Inherited from

Autopilot.cdiSource


config

protected readonly config: APConfig

Defined in: sdk/autopilot/Autopilot.ts:204

This autopilot's configuration.

Inherited from

Autopilot.config


currentAltitude

protected currentAltitude: number = 0

Defined in: sdk/autopilot/Autopilot.ts:152

Inherited from

Autopilot.currentAltitude


directors

readonly directors: APDirectors

Defined in: sdk/autopilot/Autopilot.ts:125

This autopilot's plane directors.

Inherited from

Autopilot.directors


externalAutopilotInstalled

readonly externalAutopilotInstalled: Subject<boolean>

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


flightPlanner

protected readonly flightPlanner: FlightPlanner

Defined in: sdk/autopilot/Autopilot.ts:203

This autopilot's associated flight planner.

Inherited from

Autopilot.flightPlanner


flightPlanSynced

protected flightPlanSynced: boolean = true

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

Overrides

Autopilot.flightPlanSynced


fmaData

protected readonly fmaData: ObjectSubject<FmaData>

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


inClimb

protected inClimb: boolean = false

Defined in: sdk/autopilot/Autopilot.ts:151

Inherited from

Autopilot.inClimb


lateralArmedModeSubject

protected readonly lateralArmedModeSubject: Subject<APLateralModes>

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


lateralModeFailed

protected lateralModeFailed: boolean = false

Defined in: sdk/autopilot/Autopilot.ts:149

Inherited from

Autopilot.lateralModeFailed


lateralModes

protected lateralModes: Map<APLateralModes, PlaneDirector>

Defined in: sdk/autopilot/Autopilot.ts:143

Inherited from

Autopilot.lateralModes


readonly navToNavManager: undefined | NavToNavManager | NavToNavManager2

Defined in: sdk/autopilot/Autopilot.ts:128

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

Inherited from

Autopilot.navToNavManager


protected readonly navToNavManagerToUse: undefined | NavToNavManager2

Defined in: sdk/autopilot/Autopilot.ts:130

Inherited from

Autopilot.navToNavManagerToUse


requireApproachIsActiveForNavToNav

protected requireApproachIsActiveForNavToNav: 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

readonly stateManager: APStateManager

Defined in: sdk/autopilot/Autopilot.ts:205

This autopilot's state manager.

Inherited from

Autopilot.stateManager


togaIsOn

protected togaIsOn: boolean = false

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


variableBankManager

readonly variableBankManager: undefined | Record<any, any>

Defined in: sdk/autopilot/Autopilot.ts:136

This autopilot's variable bank angle Manager.

Inherited from

Autopilot.variableBankManager


verticalAltitudeArmed

protected verticalAltitudeArmed: APAltitudeModes = APAltitudeModes.NONE

Defined in: sdk/autopilot/Autopilot.ts:146

Inherited from

Autopilot.verticalAltitudeArmed


verticalApproachArmed

protected verticalApproachArmed: APVerticalModes = APVerticalModes.NONE

Defined in: sdk/autopilot/Autopilot.ts:147

Inherited from

Autopilot.verticalApproachArmed


verticalModes

protected verticalModes: Map<APVerticalModes, PlaneDirector>

Defined in: sdk/autopilot/Autopilot.ts:145

Inherited from

Autopilot.verticalModes


vnavCaptureType

protected vnavCaptureType: VNavAltCaptureType = VNavAltCaptureType.None

Defined in: sdk/autopilot/Autopilot.ts:153

Inherited from

Autopilot.vnavCaptureType


vnavManager

readonly vnavManager: undefined | VNavManager

Defined in: sdk/autopilot/Autopilot.ts:133

This autopilot's VNav Manager.

Inherited from

Autopilot.vnavManager

Methods

approachPressed()

protected approachPressed(set?): void

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

Parameters

ParameterType
set?boolean

Returns

void

Inherit Doc

Overrides

Autopilot.approachPressed


checkModes()

protected checkModes(): 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()

protected checkRollModeActive(): 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()

protected deactivateArmedOrActiveLateralMode(mode): boolean

Defined in: sdk/autopilot/Autopilot.ts:463

Attempts to deactivate an armed or active lateral mode.

Parameters

ParameterTypeDescription
modeAPLateralModesThe lateral mode to deactivate.

Returns

boolean

Whether the specified mode was armed or active and deactivated by this method.

Inherited from

Autopilot.deactivateArmedOrActiveLateralMode


deactivateArmedOrActiveVerticalMode()

protected deactivateArmedOrActiveVerticalMode(mode): boolean

Defined in: sdk/autopilot/Autopilot.ts:509

Attempts to deactivate an armed or active vertical mode.

Parameters

ParameterTypeDescription
modeAPVerticalModesThe vertical mode to deactivate.

Returns

boolean

Whether the specified mode was armed or active and deactivated by this method.

Inherited from

Autopilot.deactivateArmedOrActiveVerticalMode


getArmableApproachType()

protected getArmableApproachType(): APLateralModes

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

Returns

APLateralModes

Inherit Doc

Overrides

Autopilot.getArmableApproachType


getDefaultLateralMode()

protected getDefaultLateralMode(): 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()

protected getDefaultVerticalMode(): 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()

protected handleApFdStateChange(): 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()

protected initLateralModes(): 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()

protected initNavToNavManager(): 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()

protected initVerticalModes(): void

Defined in: sdk/autopilot/Autopilot.ts:895

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

Returns

void

Inherited from

Autopilot.initVerticalModes


initVNavManager()

protected initVNavManager(): void

Defined in: sdk/autopilot/Autopilot.ts:872

Initializes the Autopilot with the available VNav Manager.

Returns

void

Inherited from

Autopilot.initVNavManager


isLateralModeActivatedOrArmed()

protected isLateralModeActivatedOrArmed(mode): boolean

Defined in: sdk/autopilot/Autopilot.ts:454

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

Parameters

ParameterTypeDescription
modeAPLateralModesThe 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()

protected lateralPressed(data): void

Defined in: sdk/autopilot/Autopilot.ts:350

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

Parameters

ParameterTypeDescription
dataAPModePressEventis the AP Lateral Mode Event Data

Returns

void

Inherited from

Autopilot.lateralPressed


manageAltitudeCapture()

protected manageAltitudeCapture(): void

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

Checks and sets the proper armed altitude mode.

Returns

void

Overrides

Autopilot.manageAltitudeCapture


monitorAdditionalEvents()

protected monitorAdditionalEvents(): void

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

Returns

void

Inherit Doc

Overrides

Autopilot.monitorAdditionalEvents


monitorApSpeedValues()

protected monitorApSpeedValues(): void

Defined in: 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()

protected monitorEvents(): void

Defined in: sdk/autopilot/Autopilot.ts:1157

Monitors subevents and bus events.

Returns

void

Inherited from

Autopilot.monitorEvents


onAfterUpdate()

protected onAfterUpdate(): void

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

Returns

void

Inherit Doc

Overrides

Autopilot.onAfterUpdate


onBeforeUpdate()

protected onBeforeUpdate(): void

Defined in: sdk/autopilot/Autopilot.ts:328

This method runs each update cycle before the update occurs.

Returns

void

Inherited from

Autopilot.onBeforeUpdate


onInitialized()

protected onInitialized(): void

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

Returns

void

Inherit Doc

Overrides

Autopilot.onInitialized


setAltHold()

protected setAltHold(): void

Defined in: sdk/autopilot/Autopilot.ts:718

Method called when the ALT button is pressed.

Returns

void

Inherited from

Autopilot.setAltHold


setLateralActive()

protected setLateralActive(mode): void

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

Parameters

ParameterType
modeAPLateralModes

Returns

void

Inherit Doc

Overrides

Autopilot.setLateralActive


setVerticalActive()

protected setVerticalActive(mode): void

Defined in: sdk/autopilot/Autopilot.ts:673

Callback to set the vertical active mode.

Parameters

ParameterTypeDescription
modeAPVerticalModesis the mode being set.

Returns

void

Inherited from

Autopilot.setVerticalActive


setVerticalApproachArmed()

protected setVerticalApproachArmed(mode): void

Defined in: sdk/autopilot/Autopilot.ts:709

Callback to set the vertical approach armed mode.

Parameters

ParameterTypeDescription
modeAPVerticalModesis the mode being set.

Returns

void

Inherited from

Autopilot.setVerticalApproachArmed


setVerticalArmed()

protected setVerticalArmed(mode): void

Defined in: sdk/autopilot/Autopilot.ts:694

Callback to set the vertical armed mode.

Parameters

ParameterTypeDescription
modeAPVerticalModesis the mode being set.

Returns

void

Inherited from

Autopilot.setVerticalArmed


togaPressed()

protected togaPressed(): void

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

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()

protected updateModes(): 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()

protected updateNavToNavManagerAfter(): 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()

protected updateNavToNavManagerBefore(): 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()

protected verticalPressed(data): void

Defined in: sdk/autopilot/Autopilot.ts:398

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

Parameters

ParameterTypeDescription
dataAPModePressEventis the AP Vertical Mode Event Data

Returns

void

Inherited from

Autopilot.verticalPressed