Camry TSS2: use torque controller (#24268)

* use measurements from harald

* update from table

* average of hybrid and non-hybrid
old-commit-hash: 191fbd4f67
taco
Shane Smiskol 3 years ago committed by GitHub
parent badbd3347c
commit 70c8bc4cd3
  1. 5
      selfdrive/car/toyota/interface.py

@ -87,7 +87,10 @@ class CarInterface(CarInterfaceBase):
ret.steerRatio = 13.7
tire_stiffness_factor = 0.7933
ret.mass = 3400. * CV.LB_TO_KG + STD_CARGO_KG # mean between normal and hybrid
set_lat_tune(ret.lateralTuning, LatTunes.PID_C)
if candidate in (CAR.CAMRY_TSS2, CAR.CAMRYH_TSS2):
set_lat_tune(ret.lateralTuning, LatTunes.TORQUE, MAX_LAT_ACCEL=2.4, FRICTION=0.05)
else:
set_lat_tune(ret.lateralTuning, LatTunes.PID_C)
elif candidate in (CAR.HIGHLANDER_TSS2, CAR.HIGHLANDERH_TSS2):
stop_and_go = True

Loading…
Cancel
Save