Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Sep 24, 2024
1 parent ecf6918 commit 5485bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendbc/car/toyota/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ 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:
# on transition from negative to positive accel, send one frame of zero to ensure gas starts at zero
# internal PCM gas command can get stuck at high negative values. 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

Expand Down

0 comments on commit 5485bfe

Please sign in to comment.