Toyota: don't release brakes coming to a stop w/ new tune (#1508)
better creeping force
This commit is contained in:
parent
9a353c4d25
commit
eaeb7a96d7
|
@ -70,9 +70,8 @@ class CarState(CarStateBase):
|
|||
if cp.vl["PCM_CRUISE"]["ACC_BRAKING"]:
|
||||
self.pcm_accel_net += min(cp.vl["PCM_CRUISE"]["ACCEL_NET"], 0.0)
|
||||
|
||||
# add creeping force at low speeds only for braking, CLUTCH->ACCEL_NET already shows this
|
||||
neutral_accel = max(cp.vl["PCM_CRUISE"]["NEUTRAL_FORCE"] / self.CP.mass, 0.0)
|
||||
if self.pcm_accel_net + neutral_accel < 0.0:
|
||||
# add creeping force at low speeds only for braking, CLUTCH->ACCEL_NET already shows this
|
||||
neutral_accel = max(cp.vl["PCM_CRUISE"]["NEUTRAL_FORCE"] / self.CP.mass, 0.0)
|
||||
self.pcm_accel_net += neutral_accel
|
||||
|
||||
ret.doorOpen = any([cp.vl["BODY_CONTROL_STATE"]["DOOR_OPEN_FL"], cp.vl["BODY_CONTROL_STATE"]["DOOR_OPEN_FR"],
|
||||
|
|
Loading…
Reference in New Issue