diff --git a/selfdrive/ui/carrot.cc b/selfdrive/ui/carrot.cc index 5ddd66d..2d5fe09 100644 --- a/selfdrive/ui/carrot.cc +++ b/selfdrive/ui/carrot.cc @@ -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.pcmCruiseGap(); + int gap = carState.getCruiseState().pcmCruiseGap(); gap_last = gap; dx = bx + 300 - 30;