Visuals - Screen Management - Screen Brightness
Customize your screen brightness when offroad.
This commit is contained in:
parent
5ec20771b5
commit
8d1ce7a2d8
@ -413,6 +413,7 @@ void ui_update_frogpilot_params(UIState *s) {
|
||||
scene.hide_alerts = hide_ui_elements && params.getBool("HideAlerts");
|
||||
scene.hide_map_icon = hide_ui_elements && params.getBool("HideMapIcon");
|
||||
scene.hide_max_speed = hide_ui_elements && params.getBool("HideMaxSpeed");
|
||||
scene.screen_brightness = screen_management ? params.getInt("ScreenBrightness") : 101;
|
||||
|
||||
scene.speed_limit_controller = scene.longitudinal_control && params.getBool("SpeedLimitController");
|
||||
scene.show_slc_offset = scene.speed_limit_controller && params.getBool("ShowSLCOffset");
|
||||
@ -557,6 +558,8 @@ void Device::updateBrightness(const UIState &s) {
|
||||
int brightness = brightness_filter.update(clipped_brightness);
|
||||
if (!awake) {
|
||||
brightness = 0;
|
||||
} else if (s.scene.screen_brightness != 101) {
|
||||
brightness = s.scene.screen_brightness;
|
||||
}
|
||||
|
||||
if (brightness != last_brightness) {
|
||||
|
@ -303,6 +303,7 @@ typedef struct UIScene {
|
||||
int map_style;
|
||||
int obstacle_distance;
|
||||
int obstacle_distance_stock;
|
||||
int screen_brightness;
|
||||
int steering_angle_deg;
|
||||
int stopped_equivalence;
|
||||
int wheel_icon;
|
||||
|
Loading…
x
Reference in New Issue
Block a user