Skip to main content

Class: WT21ElectricalSetup

A class containing some helpers to set up the electricals on instruments.

Constructors

constructor

new WT21ElectricalSetup(): WT21ElectricalSetup

Returns

WT21ElectricalSetup

Methods

initializeAvElectrical

initializeAvElectrical(elecPublisher, instrument): void

Initialize the avionics electrical bus XML logic.

Parameters

NameTypeDescription
elecPublisherElectricalPublisherThe electrical publisher.
instrumentBaseInstrumentThe 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

NameTypeDescription
systemsArrBasicAvionicsSystem<any>[]The instrument's systems array.
busEventBusThe event bus.
xmlConfigDocumentThe instrument panel XML config.

Returns

void

Defined in

workingtitle-instruments-wt21/shared/Systems/WT21ElectricalSetup.ts:23