Toyota: remove unused ACCEL_HYST_GAP (#23121)

* fix typo in comments

* remove hyst gap from values.py
pull/23128/head
cydia2020 3 years ago committed by GitHub
parent e294e1620e
commit b8c42d01eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/car/toyota/carcontroller.py
  2. 1
      selfdrive/car/toyota/values.py

@ -28,7 +28,7 @@ class CarController():
# gas and brake # gas and brake
if CS.CP.enableGasInterceptor and enabled: if CS.CP.enableGasInterceptor and enabled:
MAX_INTERCEPTOR_GAS = 0.5 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]: 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]) 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]: elif CS.CP.carFingerprint in [CAR.COROLLA]:

@ -10,7 +10,6 @@ PEDAL_TRANSITION = 10. * CV.MPH_TO_MS
class CarControllerParams: 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_MAX = 1.5 # m/s2, lower than allowed 2.0 m/s2 for tuning reasons
ACCEL_MIN = -3.5 # m/s2 ACCEL_MIN = -3.5 # m/s2

Loading…
Cancel
Save