Skip to main content

Class: AHRSSystem

The AHRS system.

Hierarchy

Constructors

constructor

new AHRSSystem(index, bus): AHRSSystem

Creates an instance of an AHRS system.

Parameters

NameTypeDescription
indexnumberThe index of the AHRS (1 or 2)
busEventBusAn instance of the event bus.

Returns

AHRSSystem

Overrides

BasicAvionicsSystem.constructor

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/AHRSSystem.ts:20

Properties

bus

Protected Readonly bus: EventBus

An instance of the event bus.

Inherited from

BasicAvionicsSystem.bus

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/AHRSSystem.ts:20


index

Readonly index: number

The index of the AHRS (1 or 2)

Inherited from

BasicAvionicsSystem.index

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/AHRSSystem.ts:20


initializationTime

Protected initializationTime: number = 45000

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

Overrides

BasicAvionicsSystem.initializationTime

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/AHRSSystem.ts:12


initializationTimeout

Protected initializationTimeout: undefined | number

A timeout after which initialization will be complete.

Inherited from

BasicAvionicsSystem.initializationTimeout

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:27


isPowered

Protected isPowered: undefined | boolean

Whether or not the system is powered.

Inherited from

BasicAvionicsSystem.isPowered

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:30


state

state: undefined | AvionicsSystemState

The state of the avionics system.

Inherited from

BasicAvionicsSystem.state

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:21


stateEvent

Protected Readonly stateEvent: "ahrs_state"

The key of the state update event to send on state update.

Inherited from

BasicAvionicsSystem.stateEvent

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:38

Methods

connectToPower

connectToPower(key): void

Connects the system to the first avionics power bus.

Parameters

NameTypeDescription
keykeyof 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 electrical event key to connect to.

Returns

void

Inherited from

BasicAvionicsSystem.connectToPower

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:47


onPowerChanged

onPowerChanged(isPowered): void

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

Parameters

NameTypeDescription
isPoweredbooleanWhether or not the system is powered.

Returns

void

Inherited from

BasicAvionicsSystem.onPowerChanged

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:69


onUpdate

onUpdate(): void

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

Returns

void

Overrides

BasicAvionicsSystem.onUpdate

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/AHRSSystem.ts:38


setState

setState(state): void

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

Parameters

NameTypeDescription
stateAvionicsSystemStateThe new state to change to.

Returns

void

Inherited from

BasicAvionicsSystem.setState

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/Systems/BasicAvionicsSystem.ts:58