From b8c42d01ebe5e69a63d3e48edcd973e030c05fec Mon Sep 17 00:00:00 2001 From: cydia2020 <12470297+cydia2020@users.noreply.github.com> Date: Sat, 4 Dec 2021 17:56:11 +1100 Subject: [PATCH] Toyota: remove unused ACCEL_HYST_GAP (#23121) * fix typo in comments * remove hyst gap from values.py --- selfdrive/car/toyota/carcontroller.py | 2 +- selfdrive/car/toyota/values.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/selfdrive/car/toyota/carcontroller.py b/selfdrive/car/toyota/carcontroller.py index c445528a83..1997e6c111 100644 --- a/selfdrive/car/toyota/carcontroller.py +++ b/selfdrive/car/toyota/carcontroller.py @@ -28,7 +28,7 @@ class CarController(): # gas and brake if CS.CP.enableGasInterceptor and enabled: MAX_INTERCEPTOR_GAS = 0.5 - # RAV4 has very sensitive has pedal + # RAV4 has very sensitive gas pedal if CS.CP.carFingerprint in [CAR.RAV4, CAR.RAV4H, CAR.HIGHLANDER, CAR.HIGHLANDERH]: PEDAL_SCALE = interp(CS.out.vEgo, [0.0, MIN_ACC_SPEED, MIN_ACC_SPEED + PEDAL_TRANSITION], [0.15, 0.3, 0.0]) elif CS.CP.carFingerprint in [CAR.COROLLA]: diff --git a/selfdrive/car/toyota/values.py b/selfdrive/car/toyota/values.py index 4e64a66749..943b030e88 100644 --- a/selfdrive/car/toyota/values.py +++ b/selfdrive/car/toyota/values.py @@ -10,7 +10,6 @@ PEDAL_TRANSITION = 10. * CV.MPH_TO_MS class CarControllerParams: - ACCEL_HYST_GAP = 0.06 # don't change accel command for small oscilalitons within this value ACCEL_MAX = 1.5 # m/s2, lower than allowed 2.0 m/s2 for tuning reasons ACCEL_MIN = -3.5 # m/s2