Skip to main content

Class: BacklightLevelController

Defined in: src/sdk/utils/controllers/Backlight.ts:18

A controller for automated backlighting levels based upon the angle of the sun in the sky.

Deprecated

It is now recommended to use the AMBIENT LIGHT SENSOR SimVar to implement automatic backlighting.

Constructors

Constructor

new BacklightLevelController(bus, paused, minIntensity, maxIntensity): BacklightLevelController

Defined in: src/sdk/utils/controllers/Backlight.ts:59

Creates an automatic backlight controller.

Parameters

ParameterTypeDefault valueDescription
busEventBusundefinedThe event bus.
pausedbooleanfalseWhether the controller should be initially paused. Defaults to false.
minIntensitynumberBacklightLevelController.DEFAULT_MIN_INTENSITYThe maximum intensity commanded by the controller. Defaults to 0.
maxIntensitynumberBacklightLevelController.DEFAULT_MAX_INTENSITYThe minimum intensity commanded by the controller. Defaults to 1.

Returns

BacklightLevelController

Properties

intensity

readonly intensity: Subscribable<number>

Defined in: src/sdk/utils/controllers/Backlight.ts:50

The automatic backlight intensity computed by this controller.

Accessors

autoMaxIntensity

Get Signature

get autoMaxIntensity(): number

Defined in: src/sdk/utils/controllers/Backlight.ts:81

Get the max auto intensity value

Returns

number

The maximum intensity applied by the auto backlight.

Set Signature

set autoMaxIntensity(max_intensity): void

Defined in: src/sdk/utils/controllers/Backlight.ts:89

Set the max auto intensity value.

Parameters
ParameterTypeDescription
max_intensitynumberThe maximum intensity applied by auto backlight.
Returns

void


autoMinIntensity

Get Signature

get autoMinIntensity(): number

Defined in: src/sdk/utils/controllers/Backlight.ts:98

Get the min auto intensity value

Returns

number

THe minimum intensity applied by the auto backlight.

Set Signature

set autoMinIntensity(min_intensity): void

Defined in: src/sdk/utils/controllers/Backlight.ts:106

Set the min auto intensity value.

Parameters
ParameterTypeDescription
min_intensitynumberThe minimum intensity applied by the auto backlight.
Returns

void

Methods

setPaused()

setPaused(paused): void

Defined in: src/sdk/utils/controllers/Backlight.ts:115

Pause or unpause real-time processing.

Parameters

ParameterTypeDescription
pausedbooleanWhether to pause or not.

Returns

void