Skip to content

Commit 900cb87

Browse files
authored
Toyota: Add SnG to Lexus LS, update torque data. (commaai#3080)
* Add Lexus LS 2018 platform configuration * Add fingerprints for Lexus LS ECUs * Add LEXUS_LS to torque substitute * Update steer ratio for Lexus LS 2018 configuration * LS steer ratio back to 13.0 * Update steer ratio for Lexus LS 2018 based on live params * Add test route for Lexus LS * Update LS car docs to exclude LSS+ A package * Fix formatting in Lexus LS 2018 documentation * Remove LEXUS_LS mapping from substitute.toml * Add better torque data for LEXUS_LS * Modify torque values for LEXUS_LS Better torque values for LEXUS_LS based on learned values after long drive. * Add Lexus LS 2018 to sng = true * Update MAX_LAT_ACCEL_MEASURED for LEXUS_LS
1 parent 9b93deb commit 900cb87

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

opendbc/car/torque_data/override.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ legend = ["LAT_ACCEL_FACTOR", "MAX_LAT_ACCEL_MEASURED", "FRICTION"]
9393
"ACURA_TLX_2G" = [1.2, 1.2, 0.15]
9494
"ACURA_TLX_2G_MMR" = [1.7, 1.7, 0.16]
9595
"PORSCHE_MACAN_MK1" = [2.0, 2.0, 0.2]
96+
"LEXUS_LS" = [1.35, 1.7, 0.17]
9697

9798
# Dashcam or fallback configured as ideal car
9899
"MOCK" = [10.0, 10, 0.0]

opendbc/car/torque_data/substitute.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ legend = ["LAT_ACCEL_FACTOR", "MAX_LAT_ACCEL_MEASURED", "FRICTION"]
1717
"LEXUS_RC" = "LEXUS_NX_TSS2"
1818
"LEXUS_RC_TSS2" = "LEXUS_NX_TSS2"
1919
"LEXUS_LC_TSS2" = "LEXUS_NX_TSS2"
20-
"LEXUS_LS" = "LEXUS_NX"
2120

2221
"KIA_OPTIMA_G4" = "HYUNDAI_SONATA"
2322
"KIA_OPTIMA_G4_FL" = "HYUNDAI_SONATA"

opendbc/car/toyota/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _get_params(ret: structs.CarParams, candidate, fingerprint, car_fw, alpha_lo
9191
ret.lateralTuning.pid.kf = 0.00004
9292
break
9393

94-
elif candidate in (CAR.TOYOTA_CHR, CAR.TOYOTA_CAMRY, CAR.TOYOTA_SIENNA, CAR.LEXUS_CTH, CAR.LEXUS_NX):
94+
elif candidate in (CAR.TOYOTA_CHR, CAR.TOYOTA_CAMRY, CAR.TOYOTA_SIENNA, CAR.LEXUS_CTH, CAR.LEXUS_LS, CAR.LEXUS_NX):
9595
# TODO: Some of these platforms are not advertised to have full range ACC, do they really all have sng?
9696
stop_and_go = True
9797

0 commit comments

Comments
 (0)