From 0702c338df7defeef2402818bb25e3b0936c0521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=BA=E6=A2=B0=E5=B0=8F=E9=B8=BD?= <128568434+jixiexiaoge@users.noreply.github.com> Date: Tue, 4 Mar 2025 09:04:52 +0800 Subject: [PATCH] bac --- selfdrive/ui/carrot.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/carrot.cc b/selfdrive/ui/carrot.cc index 2d5fe09..679d607 100644 --- a/selfdrive/ui/carrot.cc +++ b/selfdrive/ui/carrot.cc @@ -2204,7 +2204,7 @@ public: } char gap_str[32]; - //int gap = params.getInt("LongitudinalPersonality") + 1; + int gap = params.getInt("LongitudinalPersonality") + 1; dx = bx + 220; dy = by + 77; @@ -2215,7 +2215,7 @@ public: float setSpeed = carState.getCruiseState().getSpeed() * 3.6; // 转换为 km/h sprintf(gap_str, "%.0f", setSpeed); ui_draw_text(s, dx, dy, gap_str, 40, COLOR_WHITE, BOLD); - int gap = carState.getCruiseState().pcmCruiseGap(); + //int gap = carState.getCruiseState().pcmCruiseGap(); gap_last = gap; dx = bx + 300 - 30;