mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-25 07:52:03 +08:00
Add brake press disengagement in Chrysler (#1163)
* Add brake press disengagement in Chrysler
This commit is contained in:
+1
-1
Submodule panda updated: d7f1195d1e...dad5858b8c
@@ -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 @@
|
||||
0d18f87c308ce685f1010b81b65c62780f2c0c35
|
||||
3a4caf91334a4a8febb56fc195813313e53c9f44
|
||||
Reference in New Issue
Block a user