From f0c82bf2d27bc61e04d33ed70b96e9ed3500366c Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 2 May 2024 20:32:33 -0500 Subject: [PATCH] wip --- selfdrive/ui/qt/onroad.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/onroad.cc b/selfdrive/ui/qt/onroad.cc index ca07d88..13f573b 100644 --- a/selfdrive/ui/qt/onroad.cc +++ b/selfdrive/ui/qt/onroad.cc @@ -878,8 +878,8 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) { float lin_grad_point = (height() - scene.track_vertices[i].y()) / height(); QColor base_color = QColor::fromRgb(base_red, base_green, base_blue); - float h, s, l; - base_color.getHslF(&h, &s, &l); + float _h, _s, _l; + base_color.getHslF(&_h, &_s, &_l); // Calculate saturation and lightness based on acceleration float adjusted_saturation = std::min(std::abs(acceleration[i] * 1.5f), 1.f);