From d059e247ce8982342338db1bda5bd9abc8f935af Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 17 May 2024 13:25:52 -0500 Subject: [PATCH] wip --- selfdrive/ui/ui.cc | 2 +- selfdrive/ui/ui.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index 1e8d6bd..96f0a9d 100755 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -118,7 +118,7 @@ void update_model(UIState *s, float path; if (paramsMemory.getInt("no_lat_lane_change")) { path = LANE_CHANGE_NO_LAT_PATH_WIDTH; - } + } else { path = CENTER_LANE_WIDTH; } diff --git a/selfdrive/ui/ui.h b/selfdrive/ui/ui.h index 75f24fc..8e7ccae 100755 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -37,8 +37,8 @@ typedef enum UIStatus { const float CENTER_LANE_ALPHA = 0.75; const float OTHER_LANE_ALPHA = 0.75; -const int CENTER_LANE_WIDTH = 70; -const int LANE_CHANGE_NO_LAT_PATH_WIDTH = 10; +const float CENTER_LANE_WIDTH = 70; +const float LANE_CHANGE_NO_LAT_PATH_WIDTH = 10; const int OTHER_LANE_WIDTH = 16; const QColor ACTIVE_COLOR = QColor(189, 199, 252, 0xd1);