From b89fe79950121ca93d8a1f0d3fd17df31703be2a Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 10 Dec 2024 18:50:28 -0600 Subject: [PATCH] Toyota: raise max acceleration for TSS2 (#1567) raise accel for tss2 --- opendbc/car/toyota/interface.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/opendbc/car/toyota/interface.py b/opendbc/car/toyota/interface.py index 4707a580ad..4a038a54fc 100644 --- a/opendbc/car/toyota/interface.py +++ b/opendbc/car/toyota/interface.py @@ -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 @@ -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