Longcontrol: faster transition from starting to stopping (#26361)
* Never command accel when stopping * Update ref_commit old-commit-hash: a7ced7c54b86107cb4095423158e28398aa62143
This commit is contained in:
@@ -103,6 +103,7 @@ class LongControl:
|
||||
|
||||
elif self.long_control_state == LongCtrlState.stopping:
|
||||
if output_accel > self.CP.stopAccel:
|
||||
output_accel = min(output_accel, 0.0)
|
||||
output_accel -= self.CP.stoppingDecelRate * DT_CTRL
|
||||
self.reset(CS.vEgo)
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
2ba23c5d1c4e0c34295d38f31ed35e3482608b16
|
||||
89641653a0fc765105dc1c6a2a995cba2fb3f344
|
||||
|
||||
Reference in New Issue
Block a user