mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-23 20:52:06 +08:00
send 0 at stop req
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user