Skip to main content

Class: WT21Autopilot

WT21 autopilot.

Hierarchy

  • Autopilot

    WT21Autopilot

Constructors

constructor

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

Creates an instance of the WT21Autopilot.

Parameters

NameTypeDescription
busEventBusThe event bus.
flightPlannerFlightPlanner<any>This 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

Defined in

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

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

sdk/autopilot/Autopilot.ts:157


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

Inherited from

Autopilot.altCapArmed

Defined in

sdk/autopilot/Autopilot.ts:145


altSelectManager

Protected Readonly altSelectManager: AltitudeSelectManager

Defined in

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


apValues

Readonly apValues: APValues

Inherited from

Autopilot.apValues

Defined in

sdk/autopilot/Autopilot.ts:185


autopilotInitialized

Protected autopilotInitialized: boolean = false

Inherited from

Autopilot.autopilotInitialized

Defined in

sdk/autopilot/Autopilot.ts:187


bus

Protected Readonly bus: EventBus

The event bus.

Inherited from

Autopilot.bus

Defined in

sdk/autopilot/Autopilot.ts:197


cdiSource

Protected cdiSource: Readonly<NavSourceId>

Inherited from

Autopilot.cdiSource

Defined in

sdk/autopilot/Autopilot.ts:138


config

Protected Readonly config: APConfig

This autopilot's configuration.

Inherited from

Autopilot.config

Defined in

sdk/autopilot/Autopilot.ts:199


currentAltitude

Protected currentAltitude: number = 0

Inherited from

Autopilot.currentAltitude

Defined in

sdk/autopilot/Autopilot.ts:149


directors

Readonly directors: APDirectors

This autopilot's plane directors.

Inherited from

Autopilot.directors

Defined in

sdk/autopilot/Autopilot.ts:122


externalAutopilotInstalled

Readonly externalAutopilotInstalled: Subject<boolean>

Defined in

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


flightPlanSynced

Protected flightPlanSynced: boolean = true

Overrides

Autopilot.flightPlanSynced

Defined in

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


flightPlanner

Protected Readonly flightPlanner: FlightPlanner<any>

This autopilot's associated flight planner.

Inherited from

Autopilot.flightPlanner

Defined in

sdk/autopilot/Autopilot.ts:198


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

Inherited from

Autopilot.inClimb

Defined in

sdk/autopilot/Autopilot.ts:148


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

Inherited from

Autopilot.lateralModeFailed

Defined in

sdk/autopilot/Autopilot.ts:146


lateralModes

Protected lateralModes: Map<APLateralModes, PlaneDirector>

Inherited from

Autopilot.lateralModes

Defined in

sdk/autopilot/Autopilot.ts:140


Readonly navToNavManager: undefined | NavToNavManager | NavToNavManager2

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

Inherited from

Autopilot.navToNavManager

Defined in

sdk/autopilot/Autopilot.ts:125


Protected Readonly navToNavManagerToUse: undefined | NavToNavManager2

Inherited from

Autopilot.navToNavManagerToUse

Defined in

sdk/autopilot/Autopilot.ts:127


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

sdk/autopilot/Autopilot.ts:155


stateManager

Readonly stateManager: APStateManager

This autopilot's state manager.

Inherited from

Autopilot.stateManager

Defined in

sdk/autopilot/Autopilot.ts:200


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>

This autopilot's variable bank angle Manager.

Inherited from

Autopilot.variableBankManager

Defined in

sdk/autopilot/Autopilot.ts:133


verticalAltitudeArmed

Protected verticalAltitudeArmed: APAltitudeModes = APAltitudeModes.NONE

Inherited from

Autopilot.verticalAltitudeArmed

Defined in

sdk/autopilot/Autopilot.ts:143


verticalApproachArmed

Protected verticalApproachArmed: APVerticalModes = APVerticalModes.NONE

Inherited from

Autopilot.verticalApproachArmed

Defined in

sdk/autopilot/Autopilot.ts:144


verticalModes

Protected verticalModes: Map<APVerticalModes, PlaneDirector>

Inherited from

Autopilot.verticalModes

Defined in

sdk/autopilot/Autopilot.ts:142


vnavCaptureType

Protected vnavCaptureType: VNavAltCaptureType = VNavAltCaptureType.None

Inherited from

Autopilot.vnavCaptureType

Defined in

sdk/autopilot/Autopilot.ts:150


vnavManager

Readonly vnavManager: undefined | VNavManager

This autopilot's VNav Manager.

Inherited from

Autopilot.vnavManager

Defined in

sdk/autopilot/Autopilot.ts:130

Methods

approachPressed

approachPressed(set?): void

Parameters

NameType
set?boolean

Returns

void

Inherit Doc

Overrides

Autopilot.approachPressed

Defined in

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


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

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

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

sdk/autopilot/Autopilot.ts:486


getArmableApproachType

getArmableApproachType(): APLateralModes

Returns

APLateralModes

Inherit Doc

Overrides

Autopilot.getArmableApproachType

Defined in

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


getDefaultLateralMode

getDefaultLateralMode(): APLateralModes

Get the default lateral mode from APConfig

Returns

APLateralModes

default lateral mode

Inherited from

Autopilot.getDefaultLateralMode

Defined in

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

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

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

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

sdk/autopilot/Autopilot.ts:831


initVNavManager

initVNavManager(): void

Initializes the Autopilot with the available VNav Manager.

Returns

void

Inherited from

Autopilot.initVNavManager

Defined in

sdk/autopilot/Autopilot.ts:847


initVerticalModes

initVerticalModes(): void

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

Returns

void

Inherited from

Autopilot.initVerticalModes

Defined in

sdk/autopilot/Autopilot.ts:870


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

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

sdk/autopilot/Autopilot.ts:338


manageAltitudeCapture

manageAltitudeCapture(): void

Checks and sets the proper armed altitude mode.

Returns

void

Overrides

Autopilot.manageAltitudeCapture

Defined in

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


monitorAdditionalEvents

monitorAdditionalEvents(): void

Returns

void

Inherit Doc

Overrides

Autopilot.monitorAdditionalEvents

Defined in

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


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

sdk/autopilot/Autopilot.ts:1246


onAfterUpdate

onAfterUpdate(): void

Returns

void

Inherit Doc

Overrides

Autopilot.onAfterUpdate

Defined in

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


onBeforeUpdate

onBeforeUpdate(): void

This method runs each update cycle before the update occurs.

Returns

void

Inherited from

Autopilot.onBeforeUpdate

Defined in

sdk/autopilot/Autopilot.ts:316


onInitialized

onInitialized(): void

Returns

void

Inherit Doc

Overrides

Autopilot.onInitialized

Defined in

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


setAltHold

setAltHold(): void

Method called when the ALT button is pressed.

Returns

void

Inherited from

Autopilot.setAltHold

Defined in

sdk/autopilot/Autopilot.ts:693


setLateralActive

setLateralActive(mode): void

Parameters

NameType
modeAPLateralModes

Returns

void

Inherit Doc

Overrides

Autopilot.setLateralActive

Defined in

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


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

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

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

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

Overrides

Autopilot.togaPressed

Defined in

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


update

update(): void

Update method for the Autopilot.

Returns

void

Inherited from

Autopilot.update

Defined in

sdk/autopilot/Autopilot.ts:300


updateModes

updateModes(): void

Runs update on each of the active and armed modes.

Returns

void

Inherited from

Autopilot.updateModes

Defined in

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

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

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

sdk/autopilot/Autopilot.ts:385