From 95dcc23887c571f42299092e814e73409bc8db9a Mon Sep 17 00:00:00 2001 From: royjr Date: Tue, 23 Sep 2025 07:21:57 -0400 Subject: [PATCH] better tracks for overhead --- selfdrive/ui/qt/onroad/model.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/qt/onroad/model.cc b/selfdrive/ui/qt/onroad/model.cc index 607fd189a7..7eeb1ee8b9 100644 --- a/selfdrive/ui/qt/onroad/model.cc +++ b/selfdrive/ui/qt/onroad/model.cc @@ -85,8 +85,13 @@ void ModelRenderer::draw(QPainter &painter, const QRect &surface_rect) { } QPointF screen_pt; if (mapToScreen(d_pred, -y_pred, path_offset_z, &screen_pt)) { - float radius = std::clamp(15.0f / (1.0f + d_pred * 0.1f), 3.0f, 8.0f); - drawRadarPoint(painter, screen_pt, track.getVRel(), radius * 3); + float radius; + if (visual_style_ == 3) { + radius = 8.0f; + } else { + radius = std::clamp(15.0f / (1.0f + d_pred * 0.1f), 3.0f, 8.0f) * 3; + } + drawRadarPoint(painter, screen_pt, track.getVRel(), radius); } } }