Add brake press disengagement in Chrysler (#1163)

* Add brake press disengagement in Chrysler
This commit is contained in:
rbiasini
2020-02-27 10:14:21 -08:00
committed by GitHub
parent 61706ce3a0
commit e90d0e832d
3 changed files with 4 additions and 3 deletions
+1 -1
Submodule panda updated: d7f1195d1e...dad5858b8c
+2 -1
View File
@@ -79,7 +79,8 @@ class CarInterface(CarInterfaceBase):
# disable on gas pedal and speed isn't zero. Gas pedal is used to resume ACC
# from a 3+ second stop.
if (ret.gasPressed and (not self.gas_pressed_prev) and ret.vEgo > 2.0):
if (ret.gasPressed and (not self.gas_pressed_prev) and ret.vEgo > 2.0) or \
(ret.brakePressed and (not self.brake_pressed_prev or not ret.standstill)):
events.append(create_event('pedalPressed', [ET.NO_ENTRY, ET.USER_DISABLE]))
if ret.vEgo < self.CP.minSteerSpeed:
+1 -1
View File
@@ -1 +1 @@
0d18f87c308ce685f1010b81b65c62780f2c0c35
3a4caf91334a4a8febb56fc195813313e53c9f44