Class: WT21ElectricalSetup
A class containing some helpers to set up the electricals on instruments.
Constructors
constructor
• new WT21ElectricalSetup(): WT21ElectricalSetup
Returns
Methods
initializeAvElectrical
▸ initializeAvElectrical(elecPublisher
, instrument
): void
Initialize the avionics electrical bus XML logic.
Parameters
Name | Type | Description |
---|---|---|
elecPublisher | ElectricalPublisher | The electrical publisher. |
instrument | BaseInstrument | The instrument. |
Returns
void
Defined in
workingtitle-instruments-wt21/shared/Systems/WT21ElectricalSetup.ts:39
initializeSystems
▸ initializeSystems(systemsArr
, bus
, xmlConfig
): void
Initializes the systems used on the instruments.
Parameters
Name | Type | Description |
---|---|---|
systemsArr | BasicAvionicsSystem <any >[] | The instrument's systems array. |
bus | EventBus | The event bus. |
xmlConfig | Document | The instrument panel XML config. |
Returns
void
Defined in
workingtitle-instruments-wt21/shared/Systems/WT21ElectricalSetup.ts:23