Class: AdahrsSystem
Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystem.ts:83
An Air Data Attitude Heading Reference System representing one channel of a dual-channel KSG 7200.
Extends
BasicAvionicsSystem<AdahrsSystemEvents>
Constructors
Constructor
new AdahrsSystem(
index,bus,leftAltimeterIndex,rightAltimeterIndex,airspeedIndex,gpsReceiverIndex,headingOverride?,powerSource?,admPowerSource?):AdahrsSystem
Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystem.ts:139
Ctor.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | AdahrsSystemChannel | Channel of this ADAHRS. |
bus | EventBus | The instrument event bus. |
leftAltimeterIndex | number | The MSFS altimeter to use for the captain side on this ADAHRS channel. |
rightAltimeterIndex | number | The MSFS altimeter to use for the first officer side on this ADAHRS channel. |
airspeedIndex | number | The MSFS airspeed indicator to use for this ADAHRS channel. |
gpsReceiverIndex | Subscribable<number> | The selected GPS receiver for this ADAHRS channel. |
headingOverride? | Subscribable<boolean> | Whether to manually override the magnetic heading with GPS track. |
powerSource? | CompositeLogicXMLElement | 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 power source for this ADAHRS channel (essential bus for channel A, normal bus for channel B). |
admPowerSource? | CompositeLogicXMLElement | The power source for the ADM |
Returns
AdahrsSystem
Overrides
BasicAvionicsSystem<AdahrsSystemEvents>.constructor
Properties
_state
protected_state:undefined|AvionicsSystemState
Defined in: sdk/system/BasicAvionicsSystem.ts:32
Inherited from
BasicAvionicsSystem._state
airspeedIndex
protectedreadonlyairspeedIndex:number
Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystem.ts:144
The MSFS airspeed indicator to use for this ADAHRS channel.
bus
protectedreadonlybus:EventBus
Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystem.ts:141
The instrument event bus.
Inherited from
BasicAvionicsSystem.bus
electricalPowerLogic?
protectedoptionalelectricalPowerLogic:CompositeLogicXMLElement
Defined in: sdk/system/BasicAvionicsSystem.ts:48
Inherited from
BasicAvionicsSystem.electricalPowerLogic
electricalPowerSub?
protectedoptionalelectricalPowerSub:Subscription
Defined in: sdk/system/BasicAvionicsSystem.ts:47
Inherited from
BasicAvionicsSystem.electricalPowerSub
index
readonlyindex:AdahrsSystemChannel
Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystem.ts:140
Channel of this ADAHRS.
Inherited from
BasicAvionicsSystem.index
initializationTime
protectedinitializationTime:number=15000
Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystem.ts:84
The time it takes in milliseconds for the system to initialize.
Overrides
BasicAvionicsSystem.initializationTime
initializationTimer
protectedreadonlyinitializationTimer:DebounceTimer
Defined in: sdk/system/BasicAvionicsSystem.ts:42
A timeout after which initialization will be complete.
Inherited from
BasicAvionicsSystem.initializationTimer
isPowered
protectedisPowered:undefined|boolean
Defined in: sdk/system/BasicAvionicsSystem.ts:45
Whether or not the system is powered.
Inherited from
BasicAvionicsSystem.isPowered
isPowerValid
protectedisPowerValid:boolean=false
Defined in: sdk/system/BasicAvionicsSystem.ts:53
Whether power data consumed by this system is valid.
Inherited from
BasicAvionicsSystem.isPowerValid
leftAltimeterIndex
protectedreadonlyleftAltimeterIndex:number
Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystem.ts:142
The MSFS altimeter to use for the captain side on this ADAHRS channel.
publisher
protectedreadonlypublisher:Publisher<AdahrsSystemEvents>
Defined in: sdk/system/BasicAvionicsSystem.ts:50
Inherited from
BasicAvionicsSystem.publisher
rightAltimeterIndex
protectedreadonlyrightAltimeterIndex:number
Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystem.ts:143
The MSFS altimeter to use for the first officer side on this ADAHRS channel.
stateEvent
protectedreadonlystateEvent:`adahrs_state_${number}`
Defined in: sdk/system/BasicAvionicsSystem.ts:64
The key of the state update event to send on state update.
Inherited from
BasicAvionicsSystem.stateEvent
Accessors
state
Get Signature
get state():
undefined|AvionicsSystemState
Defined in: sdk/system/BasicAvionicsSystem.ts:34
Inherit Doc
Returns
undefined | AvionicsSystemState
Inherited from
BasicAvionicsSystem.state
Methods
connectToPower()
protectedconnectToPower(source):void
Defined in: sdk/system/BasicAvionicsSystem.ts:95
Connects this system's power state to an ElectricalEvents topic, electricity logic element, or Subscribable.
Parameters
| Parameter | 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}` | `elec_circuit_com_on_${number}` | `elec_circuit_nav_on_${number}` | The source to which to connect this system's power state. |
Returns
void
Inherited from
BasicAvionicsSystem.connectToPower
onPowerChanged()
protectedonPowerChanged(isPowered):void
Defined in: sdk/system/BasicAvionicsSystem.ts:140
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
onPowerValid()
protectedonPowerValid():void
Defined in: sdk/system/BasicAvionicsSystem.ts:86
Responds to when power data becomes valid.
Returns
void
Inherited from
BasicAvionicsSystem.onPowerValid
onStateChanged()
protectedonStateChanged(previousState,currentState):void
Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystem.ts:210
Parameters
| Parameter | Type |
|---|---|
previousState | undefined | AvionicsSystemState |
currentState | AvionicsSystemState |
Returns
void
Inherit Doc
Overrides
BasicAvionicsSystem.onStateChanged
onUpdate()
onUpdate():
void
Defined in: workingtitle-instruments-epic2/shared/Systems/AdahrsSystem.ts:168
Returns
void
Inherit Doc
Overrides
BasicAvionicsSystem.onUpdate
setState()
protectedsetState(state):void
Defined in: sdk/system/BasicAvionicsSystem.ts:117
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
Inherited from
BasicAvionicsSystem.setState
updatePowerFromLogic()
protectedupdatePowerFromLogic():void
Defined in: sdk/system/BasicAvionicsSystem.ts:171
Updates this system's power state from an electricity logic element.
Returns
void
Inherited from
BasicAvionicsSystem.updatePowerFromLogic