Class: AvionicsComputerSystem
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/AvionicsComputerSystem.ts:11
The GIA main integrated computer system.
Extends
Constructors
Constructor
new AvionicsComputerSystem(
index
,bus
):AvionicsComputerSystem
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/AvionicsComputerSystem.ts:19
Creates an instance of the AvionicsComputerSystem.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the system. |
bus | EventBus | The instance of the event bus for the system to use. |
Returns
AvionicsComputerSystem
Overrides
BasicAvionicsSystem
.constructor
Properties
bus
protected
readonly
bus:EventBus
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/AvionicsComputerSystem.ts:19
The instance of the event bus for the system to use.
Inherited from
index
readonly
index:number
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/AvionicsComputerSystem.ts:19
The index of the system.
Inherited from
initializationTime
protected
initializationTime:number
=10000
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/AvionicsComputerSystem.ts:12
The time it takes in milliseconds for the system to initialize.
Overrides
BasicAvionicsSystem
.initializationTime
initializationTimeout
protected
initializationTimeout:undefined
|number
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:27
A timeout after which initialization will be complete.
Inherited from
BasicAvionicsSystem
.initializationTimeout
isPowered
protected
isPowered:undefined
|boolean
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:30
Whether or not the system is powered.
Inherited from
state
state:
undefined
|AvionicsSystemState
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:21
The state of the avionics system.
Inherited from
stateEvent
protected
readonly
stateEvent:`avionicscomputer_state_${number}`
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:38
The key of the state update event to send on state update.
Inherited from
BasicAvionicsSystem
.stateEvent
Methods
connectToPower()
protected
connectToPower(key
):void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:47
Connects the system to the first avionics power bus.
Parameters
Parameter | Type | Description |
---|---|---|
key | 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}` | `elec_circuit_com_on_${number}` | `elec_circuit_nav_on_${number}` | The electrical event key to connect to. |
Returns
void
Inherited from
BasicAvionicsSystem
.connectToPower
onPowerChanged()
protected
onPowerChanged(isPowered
):void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:69
A callback called when the connected power state of the avionics system changes.
Parameters
Parameter | Type | Description |
---|---|---|
isPowered | boolean | Whether or not the system is powered. |
Returns
void
Inherited from
BasicAvionicsSystem
.onPowerChanged
onUpdate()
onUpdate():
void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:41
A callback to call to update the state of the avionics system.
Returns
void
Inherited from
setState()
protected
setState(state
):void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/AvionicsComputerSystem.ts:29
Sets the state of the avionics system and publishes the change.
Parameters
Parameter | Type | Description |
---|---|---|
state | AvionicsSystemState | The new state to change to. |
Returns
void