Skip to content

Commit

Permalink
Toyota: raise max acceleration for TSS2 (#1567)
Browse files Browse the repository at this point in the history
raise accel for tss2
  • Loading branch information
sshane authored Dec 11, 2024
1 parent 254137b commit b89fe79
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions opendbc/car/toyota/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ def _get_params(ret: structs.CarParams, candidate, fingerprint, car_fw, experime
if Ecu.hybrid in found_ecus:
ret.flags |= ToyotaFlags.HYBRID.value

# TODO: expand to the rest of the cars
if candidate in (CAR.LEXUS_ES_TSS2,) and not (ret.flags & ToyotaFlags.HYBRID.value):
ret.flags |= ToyotaFlags.RAISED_ACCEL_LIMIT.value

if candidate == CAR.TOYOTA_PRIUS:
stop_and_go = True
# Only give steer angle deadzone to for bad angle sensor prius
Expand Down Expand Up @@ -138,6 +134,8 @@ def _get_params(ret: structs.CarParams, candidate, fingerprint, car_fw, experime
ret.minEnableSpeed = -1. if stop_and_go else MIN_ACC_SPEED

if candidate in TSS2_CAR:
ret.flags |= ToyotaFlags.RAISED_ACCEL_LIMIT.value

ret.vEgoStopping = 0.25
ret.vEgoStarting = 0.25
ret.stoppingDecelRate = 0.3 # reach stopping target smoothly
Expand Down

0 comments on commit b89fe79

Please sign in to comment.