|
|
|
@ -145,7 +145,7 @@ void Device::resetInteractiveTimeout(int timeout) { |
|
|
|
|
|
|
|
|
|
|
|
void Device::updateBrightness(const UIState &s) { |
|
|
|
void Device::updateBrightness(const UIState &s) { |
|
|
|
float clipped_brightness = offroad_brightness; |
|
|
|
float clipped_brightness = offroad_brightness; |
|
|
|
if (s.scene.started && s.scene.light_sensor > 0) { |
|
|
|
if (s.scene.started && s.scene.light_sensor >= 0) { |
|
|
|
clipped_brightness = s.scene.light_sensor; |
|
|
|
clipped_brightness = s.scene.light_sensor; |
|
|
|
|
|
|
|
|
|
|
|
// CIE 1931 - https://www.photonstophotos.net/GeneralTopics/Exposure/Psychometric_Lightness_and_Gamma.htm
|
|
|
|
// CIE 1931 - https://www.photonstophotos.net/GeneralTopics/Exposure/Psychometric_Lightness_and_Gamma.htm
|
|
|
|
|