Class: GarminAPStateManager
A Garmin autopilot state manager.
Hierarchy
APStateManager
↳
GarminAPStateManager
Constructors
constructor
• new GarminAPStateManager(bus
, apConfig
): GarminAPStateManager
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
src/sdk/autopilot/managers/APStateManager.ts:60
Properties
_isFlightDirectorCoPilotOn
• Protected
_isFlightDirectorCoPilotOn: Subject
<boolean
>
Inherited from
APStateManager._isFlightDirectorCoPilotOn
Defined in
src/sdk/autopilot/managers/APStateManager.ts:43
_isFlightDirectorOn
• Protected
_isFlightDirectorOn: Subject
<boolean
>
Inherited from
APStateManager._isFlightDirectorOn
Defined in
src/sdk/autopilot/managers/APStateManager.ts:41
apConfig
• Protected
Readonly
apConfig: APConfig
This autopilot's configuration.
Inherited from
APStateManager.apConfig
Defined in
src/sdk/autopilot/managers/APStateManager.ts:60
apListenerRegistered
• Protected
apListenerRegistered: boolean
= false
Inherited from
APStateManager.apListenerRegistered
Defined in
src/sdk/autopilot/managers/APStateManager.ts:31
apMasterOn
• apMasterOn: Subject
<boolean
>
Inherited from
APStateManager.apMasterOn
Defined in
src/sdk/autopilot/managers/APStateManager.ts:40
approachPressed
• approachPressed: SubEventInterface
<GarminAPStateManager
, undefined
| boolean
>
Inherited from
APStateManager.approachPressed
Defined in
src/sdk/autopilot/managers/APStateManager.ts:37
bus
• Protected
Readonly
bus: EventBus
An instance of the event bus.
Inherited from
APStateManager.bus
Defined in
src/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
src/sdk/autopilot/managers/APStateManager.ts:49
isFlightDirectorCoPilotOn
• isFlightDirectorCoPilotOn: Subscribable
<boolean
>
Inherited from
APStateManager.isFlightDirectorCoPilotOn
Defined in
src/sdk/autopilot/managers/APStateManager.ts:44
isFlightDirectorOn
• isFlightDirectorOn: Subscribable
<boolean
>
Inherited from
APStateManager.isFlightDirectorOn
Defined in
src/sdk/autopilot/managers/APStateManager.ts:42
keyEventManager
• Protected
Optional
keyEventManager: KeyEventManager
Inherited from
APStateManager.keyEventManager
Defined in
src/sdk/autopilot/managers/APStateManager.ts:27
lateralPressed
• lateralPressed: SubEventInterface
<GarminAPStateManager
, APModePressEvent
>
Inherited from
APStateManager.lateralPressed
Defined in
src/sdk/autopilot/managers/APStateManager.ts:35
stateManagerInitialized
• stateManagerInitialized: Subject
<boolean
>
Inherited from
APStateManager.stateManagerInitialized
Defined in
src/sdk/autopilot/managers/APStateManager.ts:33
verticalPressed
• verticalPressed: SubEventInterface
<GarminAPStateManager
, APModePressEvent
>
Inherited from
APStateManager.verticalPressed
Defined in
src/sdk/autopilot/managers/APStateManager.ts:36
vnavPressed
• vnavPressed: SubEventInterface
<GarminAPStateManager
, boolean
>
Inherited from
APStateManager.vnavPressed
Defined in
src/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
src/garminsdk/autopilot/GarminAPStateManager.ts:109
initFlightDirector
▸ initFlightDirector(): void
Initializes the flight director to a default value.
Returns
void
Inherited from
APStateManager.initFlightDirector
Defined in
src/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
src/sdk/autopilot/managers/APStateManager.ts:126
onAPListenerRegistered
▸ onAPListenerRegistered(): void
Returns
void
Inherit Doc
Overrides
APStateManager.onAPListenerRegistered
Defined in
src/garminsdk/autopilot/GarminAPStateManager.ts:13
onBeforeInitialize
▸ onBeforeInitialize(): void
Returns
void
Inherit Doc
Overrides
APStateManager.onBeforeInitialize
Defined in
src/garminsdk/autopilot/GarminAPStateManager.ts:244
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
src/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
src/sdk/autopilot/managers/APStateManager.ts:146
setupKeyIntercepts
▸ setupKeyIntercepts(manager
): void
Parameters
Name | Type |
---|---|
manager | KeyEventManager |
Returns
void
Inherit Doc
Overrides
APStateManager.setupKeyIntercepts
Defined in
src/garminsdk/autopilot/GarminAPStateManager.ts:25
toggleVnav
▸ toggleVnav(): void
Toggles VNAV L Var value.
Returns
void
Inherited from
APStateManager.toggleVnav
Defined in
src/sdk/autopilot/managers/APStateManager.ts:180