Skip to content

Commit

Permalink
Toyota: lower long integral for new tune (#1255)
Browse files Browse the repository at this point in the history
* lower integral

* Update opendbc/car/toyota/interface.py
  • Loading branch information
sshane authored Sep 20, 2024
1 parent 71aa716 commit 0771622
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions opendbc/car/toyota/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ def _get_params(ret: structs.CarParams, candidate, fingerprint, car_fw, experime
ret.vEgoStopping = 0.25
ret.vEgoStarting = 0.25
ret.stoppingDecelRate = 0.3 # reach stopping target smoothly

# Since we compensate for imprecise acceleration in carcontroller, we can be less aggressive with tuning
# This also prevents unnecessary request windup due to internal car jerk limits
if ret.flags & ToyotaFlags.RAISED_ACCEL_LIMIT:
tune.kiV = [0.25]
else:
tune.kiBP = [0., 5., 35.]
tune.kiV = [3.6, 2.4, 1.5]
Expand Down

0 comments on commit 0771622

Please sign in to comment.