Skip to main content

Class: EngineAirframeSystem

Defined in: workingtitle-instruments-g1000/html_ui/Shared/Systems/EngineAirframeSystem.ts:9

The GEA engine/airframe system.

Extends​

Constructors​

Constructor​

new EngineAirframeSystem(index, bus): EngineAirframeSystem

Defined in: workingtitle-instruments-g1000/html_ui/Shared/Systems/EngineAirframeSystem.ts:17

Creates an instance of the EngineAirframeSystem.

Parameters​

ParameterTypeDescription
indexnumberThe index of the system.
busEventBusThe instance of the event bus for the system to use.

Returns​

EngineAirframeSystem

Overrides​

BasicAvionicsSystem.constructor

Properties​

bus​

protected readonly bus: EventBus

Defined in: workingtitle-instruments-g1000/html_ui/Shared/Systems/EngineAirframeSystem.ts:17

The instance of the event bus for the system to use.

Inherited from​

BasicAvionicsSystem.bus


index​

readonly index: number

Defined in: workingtitle-instruments-g1000/html_ui/Shared/Systems/EngineAirframeSystem.ts:17

The index of the system.

Inherited from​

BasicAvionicsSystem.index


initializationTime​

protected initializationTime: number = 12000

Defined in: workingtitle-instruments-g1000/html_ui/Shared/Systems/EngineAirframeSystem.ts:10

The time it takes in milliseconds for the system to initialize.

Overrides​

BasicAvionicsSystem.initializationTime


initializationTimeout​

protected initializationTimeout: number | undefined

Defined in: workingtitle-instruments-g1000/html_ui/Shared/Systems/BasicAvionicsSystem.ts:27

A timeout after which initialization will be complete.

Inherited from​

BasicAvionicsSystem.initializationTimeout


isPowered​

protected isPowered: boolean | undefined

Defined in: workingtitle-instruments-g1000/html_ui/Shared/Systems/BasicAvionicsSystem.ts:30

Whether or not the system is powered.

Inherited from​

BasicAvionicsSystem.isPowered


state​

state: AvionicsSystemState | undefined

Defined in: workingtitle-instruments-g1000/html_ui/Shared/Systems/BasicAvionicsSystem.ts:21

The state of the avionics system.

Inherited from​

BasicAvionicsSystem.state


stateEvent​

protected readonly stateEvent: "engineairframe_state"

Defined in: workingtitle-instruments-g1000/html_ui/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/Shared/Systems/BasicAvionicsSystem.ts:47

Connects the system to the first avionics power bus.

Parameters​

ParameterTypeDescription
key"elec_master_battery" | "elec_bat_v" | "elec_bat_load" | "elec_bat_soc" | "elec_ext_power_available" | "elec_ext_power_on" | "elec_ext_power_v" | "elec_ext_power_a" | "elec_apu_gen_active" | "elec_apu_gen_switch" | "elec_eng_gen_switch" | "elec_bus_avionics_v" | "elec_bus_avionics_a" | "elec_circuit_navcom1_on" | "elec_circuit_navcom2_on" | "elec_circuit_navcom3_on" | "elec_circuit_transponder_on" | "elec_av1_bus" | "elec_av2_bus" | `elec_bus_v_${number}` | `elec_bus_a_${number}` | `elec_bus_main_v_${number}` | `elec_bus_main_a_${number}` | `elec_bus_genalt_v_${number}` | `elec_bus_genalt_a_${number}` | `elec_circuit_on_${number}` | `elec_circuit_switch_on_${number}` | `elec_circuit_v_${number}` | `elec_circuit_a_${number}` | `elec_circuit_avionics_on_${number}` | `elec_circuit_com_on_${number}` | `elec_circuit_nav_on_${number}` | `elec_line_connection_on_${number}` | `elec_line_breaker_pulled_${number}` | `elec_gen_switch_on_${number}` | `elec_gen_active_${number}` | `elec_gen_v_${number}` | `elec_gen_a_${number}` | `elec_master_battery_${number}` | `elec_bat_v_${number}` | `elec_bat_load_${number}` | `elec_bat_soc_${number}` | `elec_ext_power_available_${number}` | `elec_ext_power_on_${number}` | `elec_ext_power_v_${number}` | `elec_ext_power_a_${number}` | `elec_apu_gen_active_${number}` | `elec_apu_gen_switch_${number}` | `elec_eng_gen_switch_${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/Shared/Systems/BasicAvionicsSystem.ts:69

A callback called when the connected power state of the avionics system changes.

Parameters​

ParameterTypeDescription
isPoweredbooleanWhether or not the system is powered.

Returns​

void

Inherited from​

BasicAvionicsSystem.onPowerChanged


onUpdate()​

onUpdate(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/Systems/BasicAvionicsSystem.ts:41

A callback to call to update the state of the avionics system.

Returns​

void

Inherited from​

BasicAvionicsSystem.onUpdate


setState()​

protected setState(state): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/Systems/BasicAvionicsSystem.ts:58

Sets the state of the avionics system and publishes the change.

Parameters​

ParameterTypeDescription
stateAvionicsSystemStateThe new state to change to.

Returns​

void

Inherited from​

BasicAvionicsSystem.setState