Class: WT21APStateManager
A WT21 autopilot state manager.
Hierarchy
APStateManager
↳
WT21APStateManager
Constructors
constructor
• new WT21APStateManager(bus
, apConfig
): WT21APStateManager
Creates an instance of the APStateManager.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | An instance of the event bus. |
apConfig | APConfig | This autopilot's configuration. |
Returns
Inherited from
APStateManager.constructor
Defined in
sdk/autopilot/managers/APStateManager.ts:60
Properties
_isFlightDirectorCoPilotOn
• Protected
_isFlightDirectorCoPilotOn: Subject
<boolean
>
Inherited from
APStateManager._isFlightDirectorCoPilotOn
Defined in
sdk/autopilot/managers/APStateManager.ts:43
_isFlightDirectorOn
• Protected
_isFlightDirectorOn: Subject
<boolean
>
Inherited from
APStateManager._isFlightDirectorOn
Defined in
sdk/autopilot/managers/APStateManager.ts:41
apConfig
• Protected
Readonly
apConfig: APConfig
This autopilot's configuration.
Inherited from
APStateManager.apConfig
Defined in
sdk/autopilot/managers/APStateManager.ts:60
apListenerRegistered
• Protected
apListenerRegistered: boolean
= false
Inherited from
APStateManager.apListenerRegistered
Defined in
sdk/autopilot/managers/APStateManager.ts:31
apMasterOn
• apMasterOn: Subject
<boolean
>
Inherited from
APStateManager.apMasterOn
Defined in
sdk/autopilot/managers/APStateManager.ts:40
approachPressed
• approachPressed: SubEventInterface
<WT21APStateManager
, undefined
| boolean
>
Inherited from
APStateManager.approachPressed
Defined in
sdk/autopilot/managers/APStateManager.ts:37
bus
• Protected
Readonly
bus: EventBus
An instance of the event bus.
Inherited from
APStateManager.bus
Defined in
sdk/autopilot/managers/APStateManager.ts:60
isAnyFlightDirectorOn
• Readonly
isAnyFlightDirectorOn: MappedSubject
<[boolean
, boolean
], undefined
| boolean
>
Whether any of the flight directors are switched on. Only looks at FD1/pilot unless the APConfig.independentFds option is enabled.
Inherited from
APStateManager.isAnyFlightDirectorOn
Defined in
sdk/autopilot/managers/APStateManager.ts:49
isFlightDirectorCoPilotOn
• isFlightDirectorCoPilotOn: Subscribable
<boolean
>
Inherited from
APStateManager.isFlightDirectorCoPilotOn
Defined in
sdk/autopilot/managers/APStateManager.ts:44
isFlightDirectorOn
• isFlightDirectorOn: Subscribable
<boolean
>
Inherited from
APStateManager.isFlightDirectorOn
Defined in
sdk/autopilot/managers/APStateManager.ts:42
keyEventManager
• Protected
Optional
keyEventManager: KeyEventManager
Inherited from
APStateManager.keyEventManager
Defined in
sdk/autopilot/managers/APStateManager.ts:27
lateralPressed
• lateralPressed: SubEventInterface
<WT21APStateManager
, APModePressEvent
>
Inherited from
APStateManager.lateralPressed
Defined in
sdk/autopilot/managers/APStateManager.ts:35
stateManagerInitialized
• stateManagerInitialized: Subject
<boolean
>
Inherited from
APStateManager.stateManagerInitialized
Defined in
sdk/autopilot/managers/APStateManager.ts:33
verticalPressed
• verticalPressed: SubEventInterface
<WT21APStateManager
, APModePressEvent
>
Inherited from
APStateManager.verticalPressed
Defined in
sdk/autopilot/managers/APStateManager.ts:36
vnavPressed
• vnavPressed: SubEventInterface
<WT21APStateManager
, boolean
>
Inherited from
APStateManager.vnavPressed
Defined in
sdk/autopilot/managers/APStateManager.ts:38
Methods
handleKeyIntercepted
▸ handleKeyIntercepted(«destructured»
): void
Parameters
Name | Type |
---|---|
«destructured» | KeyEventData |
Returns
void
Inherit Doc
Overrides
APStateManager.handleKeyIntercepted
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Autopilot/WT21APStateManager.ts:112
initFlightDirector
▸ initFlightDirector(): void
Initializes the flight director to a default value.
Returns
void
Inherited from
APStateManager.initFlightDirector
Defined in
sdk/autopilot/managers/APStateManager.ts:138
initialize
▸ initialize(force?
): void
Checks whether the AP State Manager has completed listerner steps, and if so, finishes initializing and then notifies Autopilot of the same.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
force | boolean | false | forces the initialize |
Returns
void
Inherited from
APStateManager.initialize
Defined in
sdk/autopilot/managers/APStateManager.ts:126
onAPListenerRegistered
▸ onAPListenerRegistered(): void
Returns
void
Inherit Doc
Overrides
APStateManager.onAPListenerRegistered
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Autopilot/WT21APStateManager.ts:10
onBeforeInitialize
▸ onBeforeInitialize(): void
Method to override with steps to run before initialze method is run.
Returns
void
Inherited from
APStateManager.onBeforeInitialize
Defined in
sdk/autopilot/managers/APStateManager.ts:212
sendApModeEvent
▸ sendApModeEvent(type
, mode?
, set?
): void
Sends AP Mode Events from the Intercept to the Autopilot.
Parameters
Name | Type | Description |
---|---|---|
type | APModeType | is the AP Mode Type for this event |
mode? | APLateralModes | APVerticalModes | is the mode to set/unset. |
set? | boolean | is whether to actively set or unset this mode. |
Returns
void
Inherited from
APStateManager.sendApModeEvent
Defined in
sdk/autopilot/managers/APStateManager.ts:191
setFlightDirector
▸ setFlightDirector(on
): void
Sets the Flight Director State
Parameters
Name | Type | Description |
---|---|---|
on | boolean | is wheter to set the FD On. |
Returns
void
Inherited from
APStateManager.setFlightDirector
Defined in
sdk/autopilot/managers/APStateManager.ts:146
setupKeyIntercepts
▸ setupKeyIntercepts(manager
): void
Parameters
Name | Type |
---|---|
manager | KeyEventManager |
Returns
void
Inherit Doc
Overrides
APStateManager.setupKeyIntercepts
Defined in
workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Autopilot/WT21APStateManager.ts:22
toggleVnav
▸ toggleVnav(): void
Toggles VNAV L Var value.
Returns
void
Inherited from
APStateManager.toggleVnav
Defined in
sdk/autopilot/managers/APStateManager.ts:180