Class: FmsPositionSystem
Defined in: workingtitle-instruments-epic2/shared/Systems/FmsPositionSystem.ts:96
An FMS geo-positioning system. The FMS uses primarily GPS position, and if unavailable falls back to dead reckoning from the last known GPS position based on ADAHRS
Extends
Constructors
Constructor
new FmsPositionSystem(
index,bus,gpsReceiverIndex,adahrsIndex,powerSource?):FmsPositionSystem
Defined in: workingtitle-instruments-epic2/shared/Systems/FmsPositionSystem.ts:159
Creates an instance of an FMS geo-positioning system.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | The index of the FMS geo-positioning system. |
bus | EventBus | An instance of the event bus. |
gpsReceiverIndex | number | Subscribable<number> | The index of the GPS receiver used by this system. No GPS data will be used if the index is negative. |
adahrsIndex | number | Subscribable<number> | The index of the ADAHRS used by this system in dead reckoning mode to obtain heading and speed data. |
powerSource? | CompositeLogicXMLElement | "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 ElectricalEvents topic or electricity logic element to which to connect the system's power. |
Returns
FmsPositionSystem
Overrides
BasicAvionicsSystem.constructor
Properties
_state
protected_state:undefined|AvionicsSystemState
Defined in: sdk/system/BasicAvionicsSystem.ts:32
Inherited from
bus
protectedreadonlybus:EventBus
Defined in: sdk/system/BasicAvionicsSystem.ts:63
The instance of the event bus for the system to use.
Inherited from
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:number
Defined in: sdk/system/BasicAvionicsSystem.ts:62
The index of the system.
Inherited from
initializationTime
protectedinitializationTime:number=0
Defined in: workingtitle-instruments-epic2/shared/Systems/FmsPositionSystem.ts:103
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
isPowerValid
protectedisPowerValid:boolean=false
Defined in: sdk/system/BasicAvionicsSystem.ts:53
Whether power data consumed by this system is valid.
Inherited from
BasicAvionicsSystem.isPowerValid
publisher
protectedreadonlypublisher:Publisher<FmsPositionSystemEvents>
Defined in: sdk/system/BasicAvionicsSystem.ts:50
Inherited from
stateEvent
protectedreadonlystateEvent:`fms_pos_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
The state of the avionics system.
Returns
undefined | AvionicsSystemState
The state of the avionics system.
Inherited from
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> | "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 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/FmsPositionSystem.ts:279
Responds to changes in this system's state.
Parameters
| Parameter | Type | Description |
|---|---|---|
previousState | undefined | AvionicsSystemState | The previous state. |
currentState | AvionicsSystemState | The current state. |
Returns
void
Overrides
BasicAvionicsSystem.onStateChanged
onUpdate()
onUpdate():
void
Defined in: workingtitle-instruments-epic2/shared/Systems/FmsPositionSystem.ts:295
A callback to call to update the state of the avionics system.
Returns
void
Overrides
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
updatePowerFromLogic()
protectedupdatePowerFromLogic():void
Defined in: sdk/system/BasicAvionicsSystem.ts:171
Updates this system's power state from an electricity logic element.
Returns
void