send 0 at stop req

This commit is contained in:
Jason Wen
2024-07-25 15:18:34 -04:00
parent a2eb4545da
commit 2038d9b469
+1 -1
View File
@@ -540,7 +540,7 @@ class CarController(CarControllerBase):
if long_control == LongCtrlState.off:
self.accel_raw, self.accel_val = 0, 0
else:
if long_control == LongCtrlState.stopping and CS.out.standstill:
if long_control == LongCtrlState.stopping:
self.accel_raw = 0
self.accel_val = clip(self.accel_raw, self.accel_last - rate_down, self.accel_last + rate_up)
self.accel_last = self.accel_val