Class: AOASystem
The AOA system.
Hierarchy
BasicAvionicsSystem
<AOASystemEvents
>↳
AOASystem
Constructors
constructor
• new AOASystem(index
, xmlConfig
, bus
): AOASystem
Creates an instance of the AOASystem.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the system. |
xmlConfig | Document | The instance of the panel.xml configuration to use. |
bus | EventBus | The instance of the event bus for the system to use. |
Returns
Overrides
BasicAvionicsSystem\<AOASystemEvents\>.constructor
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:37
Properties
_state
• Protected
_state: undefined
| AvionicsSystemState
Inherited from
BasicAvionicsSystem._state
Defined in
sdk/system/BasicAvionicsSystem.ts:32
aoaDegrees
• Protected
aoaDegrees: ConsumerSubject
<number
>
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:24
aoaFlapsDefinitions
• Protected
Readonly
aoaFlapsDefinitions: Map
<number
, AoAFlapsDefinition
>
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:22
bus
• Protected
Readonly
bus: EventBus
The instance of the event bus for the system to use.
Inherited from
BasicAvionicsSystem.bus
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:37
electricalPowerLogic
• Protected
Optional
electricalPowerLogic: CompositeLogicXMLElement
Inherited from
BasicAvionicsSystem.electricalPowerLogic
Defined in
sdk/system/BasicAvionicsSystem.ts:48
electricalPowerSub
• Protected
Optional
electricalPowerSub: Subscription
Inherited from
BasicAvionicsSystem.electricalPowerSub
Defined in
sdk/system/BasicAvionicsSystem.ts:47
flapsHandleIndex
• Protected
flapsHandleIndex: ConsumerSubject
<number
>
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:27
index
• Readonly
index: number
The index of the system.
Inherited from
BasicAvionicsSystem.index
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:37
initializationTime
• Protected
Readonly
initializationTime: 3000
Overrides
BasicAvionicsSystem.initializationTime
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:21
initializationTimer
• Protected
Readonly
initializationTimer: DebounceTimer
A timeout after which initialization will be complete.
Inherited from
BasicAvionicsSystem.initializationTimer
Defined in
sdk/system/BasicAvionicsSystem.ts:42
isPowerValid
• Protected
isPowerValid: boolean
= false
Whether power data consumed by this system is valid.
Inherited from
BasicAvionicsSystem.isPowerValid
Defined in
sdk/system/BasicAvionicsSystem.ts:53
isPowered
• Protected
isPowered: undefined
| boolean
Whether or not the system is powered.
Inherited from
BasicAvionicsSystem.isPowered
Defined in
sdk/system/BasicAvionicsSystem.ts:45
publisher
• Protected
Readonly
publisher: Publisher
<AOASystemEvents
>
Inherited from
BasicAvionicsSystem.publisher
Defined in
sdk/system/BasicAvionicsSystem.ts:50
stallAoa
• Protected
stallAoa: ConsumerSubject
<number
>
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:26
stateEvent
• Protected
Readonly
stateEvent: "aoa_state"
The key of the state update event to send on state update.
Inherited from
BasicAvionicsSystem.stateEvent
Defined in
sdk/system/BasicAvionicsSystem.ts:64
xmlConfig
• Protected
Readonly
xmlConfig: Document
The instance of the panel.xml configuration to use.
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:37
zeroLiftAoa
• Protected
zeroLiftAoa: ConsumerSubject
<number
>
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:25
Accessors
state
• get
state(): undefined
| AvionicsSystemState
Returns
undefined
| AvionicsSystemState
Inherit Doc
Inherited from
BasicAvionicsSystem.state
Defined in
sdk/system/BasicAvionicsSystem.ts:34
Methods
connectToPower
▸ connectToPower(source
): void
Connects this system's power state to an ElectricalEvents topic, electricity logic element, or Subscribable.
Parameters
Name | Type | Description |
---|---|---|
source | CompositeLogicXMLElement | Subscribable <boolean > | keyof BaseElectricalEvents | `elec_bus_main_v_${number}` | `elec_bus_main_a_${number}` | `elec_master_battery_${number}` | `elec_circuit_avionics_on_${number}` | `elec_bat_v_${number}` | `elec_bat_a_${number}` | `elec_ext_power_available_${number}` | `elec_ext_power_on_${number}` | `elec_apu_gen_active_${number}` | `elec_apu_gen_switch_${number}` | `elec_eng_gen_switch_${number}` | `elec_circuit_on_${number}` | `elec_circuit_switch_on_${number}` | The source to which to connect this system's power state. |
Returns
void
Inherited from
BasicAvionicsSystem.connectToPower
Defined in
sdk/system/BasicAvionicsSystem.ts:95
onPowerChanged
▸ onPowerChanged(isPowered
): void
A callback called when the connected power state of the avionics system changes.
Parameters
Name | Type | Description |
---|---|---|
isPowered | boolean | Whether or not the system is powered. |
Returns
void
Inherited from
BasicAvionicsSystem.onPowerChanged
Defined in
sdk/system/BasicAvionicsSystem.ts:140
onPowerValid
▸ onPowerValid(): void
Responds to when power data becomes valid.
Returns
void
Inherited from
BasicAvionicsSystem.onPowerValid
Defined in
sdk/system/BasicAvionicsSystem.ts:86
onStateChanged
▸ onStateChanged(previousState
, currentState
): void
Responds to changes in this system's state.
Parameters
Name | Type | Description |
---|---|---|
previousState | undefined | AvionicsSystemState | The previous state. |
currentState | AvionicsSystemState | The current state. |
Returns
void
Inherited from
BasicAvionicsSystem.onStateChanged
Defined in
sdk/system/BasicAvionicsSystem.ts:132
onUpdate
▸ onUpdate(): void
Returns
void
Inherit Doc
Inherited from
BasicAvionicsSystem.onUpdate
Defined in
sdk/system/BasicAvionicsSystem.ts:164
readAoAConfiguration
▸ readAoAConfiguration(): void
Reads the AOASystem configuration from the XML config.
Returns
void
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:55
setState
▸ setState(state
): void
Sets the state of the avionics system and publishes the change.
Parameters
Name | Type | Description |
---|---|---|
state | AvionicsSystemState | The new state to change to. |
Returns
void
Inherited from
BasicAvionicsSystem.setState
Defined in
sdk/system/BasicAvionicsSystem.ts:117
updateAoaPct
▸ updateAoaPct(updateStallAndZeroLift
): void
Updates the published AOA percentage.
Parameters
Name | Type | Description |
---|---|---|
updateStallAndZeroLift | boolean | Whether or not to update the zero-lift and stall AOAs and publish them. |
Returns
void
Defined in
workingtitle-instruments-wt21/shared/Systems/AOASystem.ts:85
updatePowerFromLogic
▸ updatePowerFromLogic(): void
Updates this system's power state from an electricity logic element.
Returns
void
Inherited from
BasicAvionicsSystem.updatePowerFromLogic
Defined in
sdk/system/BasicAvionicsSystem.ts:171