Skip to content

Commit

Permalink
Revert "Lexus: prevent lagged gas after heavy braking" (#1270)
Browse files Browse the repository at this point in the history
Revert "Lexus: prevent lagged gas after heavy braking (#1266)"

This reverts commit f2c4bb7.
  • Loading branch information
sshane authored Sep 24, 2024
1 parent f2c4bb7 commit 0f8cea6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions opendbc/car/toyota/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,6 @@ def update(self, CC, CS, now_nanos):
if pcm_cancel_cmd and self.CP.carFingerprint in UNSUPPORTED_DSU_CAR:
can_sends.append(toyotacan.create_acc_cancel_command(self.packer))
elif self.CP.openpilotLongitudinalControl:
# internal PCM gas command can get stuck unwinding from negative accel. send one frame of zero when transitioning from braking to gas
if pcm_accel_cmd > 0 > self.accel and abs(pcm_accel_cmd - self.accel) > 0.5:
pcm_accel_cmd = 0

can_sends.append(toyotacan.create_accel_command(self.packer, pcm_accel_cmd, pcm_cancel_cmd, self.standstill_req, lead, CS.acc_type, fcw_alert,
self.distance_button))
self.accel = pcm_accel_cmd
Expand Down

0 comments on commit 0f8cea6

Please sign in to comment.