Honda - Don't send cancel cmd when using comma pedal (#20922)
* cancel is never true if cruise isn't enabled and pedal * This is probably better * comment * want to see if this fails * see what Actions says about this * nice! just as a sanity test real quick * Revert "nice! just as a sanity test real quick" This reverts commit2d86d1c32e
. * Revert "see what Actions says about this" This reverts commitc908488854
. * Revert "want to see if this fails" This reverts commit2d515f3721
. * specify the fix * No bitwise Co-authored-by: Willem Melching <willem.melching@gmail.com> Co-authored-by: Willem Melching <willem.melching@gmail.com>
This commit is contained in:
parent
b4f8223b5b
commit
483678adb1
|
@ -101,6 +101,10 @@ class CarController():
|
|||
# send pcm acc cancel cmd if drive is disabled but pcm is still on, or if the system can't be activated
|
||||
pcm_cancel_cmd = True
|
||||
|
||||
# Never send cancel command if we never enter cruise state (no cruise if pedal)
|
||||
# Cancel cmd causes brakes to release at a standstill causing grinding
|
||||
pcm_cancel_cmd = pcm_cancel_cmd and CS.CP.enableCruise
|
||||
|
||||
# *** rate limit after the enable check ***
|
||||
self.brake_last = rate_limit(brake, self.brake_last, -2., DT_CTRL)
|
||||
|
||||
|
|
Loading…
Reference in a new issue