From dc9a8ddca73738e277486c4992ba0ec07bcc14e6 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 4 Aug 2024 17:11:22 -0400 Subject: [PATCH] Oops --- selfdrive/car/hyundai/carcontroller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/hyundai/carcontroller.py b/selfdrive/car/hyundai/carcontroller.py index bd4d23ab27..f039c2ca98 100644 --- a/selfdrive/car/hyundai/carcontroller.py +++ b/selfdrive/car/hyundai/carcontroller.py @@ -543,7 +543,7 @@ class CarController(CarControllerBase): is_ice = not self.CP.flags & (HyundaiFlags.HYBRID | HyundaiFlags.EV) rate_up = 0.1 rate_down = 0.1 - if long_control == LongCtrlState.off or CS.out.standstill: + if long_control == LongCtrlState.off or (long_control == LongCtrlState.stopping and CS.out.standstill): self.accel_raw, self.accel_val = 0, 0 else: #self.accel_val = clip(self.accel_raw, self.accel_last - rate_down, self.accel_last + rate_up)