Skip to main content

Class: WeatherRadarManager

Defined in: workingtitle-instruments-g3000/html_ui/MFD/WeatherRadar/WeatherRadarManager.ts:10

A manager which controls automatic functions of the weather radar.

Constructors​

Constructor​

new WeatherRadarManager(bus, scanActiveCircuitIndex?, scanActiveProcedureIndex?): WeatherRadarManager

Defined in: workingtitle-instruments-g3000/html_ui/MFD/WeatherRadar/WeatherRadarManager.ts:62

Creates a new instance of WeatherRadarManager.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.
scanActiveCircuitIndex?numberThe index of the electrical circuit to switch on when the radar is actively scanning. If not defined, then no circuit will be switched on when the radar is actively scanning.
scanActiveProcedureIndex?numberThe index of the system.cfg electrical procedure to use the change the active radar scan circuit switch state. The electrical procedure should be configured to set the circuit switch state to OFF. If not defined, then no circuit will be switched on when the radar is actively scanning.

Returns​

WeatherRadarManager

Methods​

destroy()​

destroy(): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/WeatherRadar/WeatherRadarManager.ts:198

Destroys this manager. Once destroyed, this manager will no longer control the weather radar.

Returns​

void


init()​

init(): void

Defined in: workingtitle-instruments-g3000/html_ui/MFD/WeatherRadar/WeatherRadarManager.ts:84

Initializes this manager. Once this manager is initialized, it will control automatic functions of the weather radar until destroyed.

Returns​

void

Throws​

Error if this manager has been destroyed.