From 4b57104d3eee5e8a2e601db995d75b9b2148e67d Mon Sep 17 00:00:00 2001 From: James <91348155+FrogAi@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:00:00 -0700 Subject: [PATCH] Extend the model UI projection --- selfdrive/ui/qt/onroad/model.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/selfdrive/ui/qt/onroad/model.cc b/selfdrive/ui/qt/onroad/model.cc index 2816f09a..66be9715 100644 --- a/selfdrive/ui/qt/onroad/model.cc +++ b/selfdrive/ui/qt/onroad/model.cc @@ -1,8 +1,6 @@ #include "selfdrive/ui/qt/onroad/model.h" constexpr int CLIP_MARGIN = 500; -constexpr float MIN_DRAW_DISTANCE = 10.0; -constexpr float MAX_DRAW_DISTANCE = 100.0; static int get_path_length_idx(const cereal::XYZTData::Reader &line, const float path_height) { const auto &line_x = line.getX(); @@ -85,7 +83,7 @@ void ModelRenderer::update_leads(const cereal::RadarState::Reader &radar_state, void ModelRenderer::update_model(const cereal::ModelDataV2::Reader &model, const cereal::RadarState::LeadData::Reader &lead) { const auto &model_position = model.getPosition(); - float max_distance = std::clamp(*(model_position.getX().end() - 1), MIN_DRAW_DISTANCE, MAX_DRAW_DISTANCE); + float max_distance = *(model_position.getX().end() - 1); // update lane lines const auto &lane_lines = model.getLaneLines();