Toyota: Add FW for 2023 RAV4 Hybrid (#27494)

* Toyota: Add FW for 2023 RAV4 Hybrid

* Set RAVH_TSS2_2022 to use angle SteerControlType
pull/28054/head
crispbee 3 years ago committed by GitHub
parent 84bf01fb7a
commit 3125a28bf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/car/toyota/interface.py
  2. 4
      selfdrive/car/toyota/values.py

@ -126,7 +126,7 @@ class CarInterface(CarInterfaceBase):
ret.lateralTuning.pid.kpV = [0.6]
ret.lateralTuning.pid.kiV = [0.1]
ret.lateralTuning.pid.kf = 0.00007818594
if candidate == CAR.RAV4_TSS2_2022:
if candidate in (CAR.RAV4_TSS2_2022, CAR.RAV4H_TSS2_2022):
ret.steerControlType = car.CarParams.SteerControlType.angle
# 2019+ RAV4 TSS2 uses two different steering racks and specific tuning seems to be necessary.

@ -1535,6 +1535,7 @@ FW_VERSIONS = {
],
(Ecu.eps, 0x7a1, None): [
b'\x028965B0R01500\x00\x00\x00\x008965B0R02500\x00\x00\x00\x00',
b'\x028965B0R11000\x00\x00\x00\x008965B0R12000\x00\x00\x00\x00',
b'8965B42182\x00\x00\x00\x00\x00\x00',
b'8965B42172\x00\x00\x00\x00\x00\x00',
],
@ -1546,12 +1547,15 @@ FW_VERSIONS = {
b'\x01896634A62000\x00\x00\x00\x00',
b'\x01896634A62100\x00\x00\x00\x00',
b'\x01896634A63000\x00\x00\x00\x00',
b'\x01896634AE1001\x00\x00\x00\x00',
],
(Ecu.fwdRadar, 0x750, 0xf): [
b'\x018821F0R01100\x00\x00\x00\x00',
b'\x018821F0R03100\x00\x00\x00\x00',
],
(Ecu.fwdCamera, 0x750, 0x6d): [
b'\x028646F0R02100\x00\x00\x00\x008646G0R01100\x00\x00\x00\x00',
b'\x028646F0R05100\x00\x00\x00\x008646G0R02100\x00\x00\x00\x00',
],
},
CAR.SIENNA: {

Loading…
Cancel
Save