From 096dbfb701f8a86b9df1f5ee9116e344b7d61fc3 Mon Sep 17 00:00:00 2001 From: joeruhe Date: Sat, 25 Jul 2026 12:39:41 -0400 Subject: [PATCH] Initial changes for trax tuning. (cherry picked from commit 7e44c641eddf23db8ca4e5d9b54c6549c5ed70b1) --- opendbc_repo/opendbc/car/gm/interface.py | 5 +++++ opendbc_repo/opendbc/car/gm/values.py | 2 +- opendbc_repo/opendbc/car/torque_data/override.toml | 1 + opendbc_repo/opendbc/car/torque_data/substitute.toml | 2 -- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/opendbc_repo/opendbc/car/gm/interface.py b/opendbc_repo/opendbc/car/gm/interface.py index 34e0829f9..0e3c36edf 100755 --- a/opendbc_repo/opendbc/car/gm/interface.py +++ b/opendbc_repo/opendbc/car/gm/interface.py @@ -70,6 +70,10 @@ NON_LINEAR_TORQUE_PARAMS = { "left": [1.525, 1.05, 0.155, 0.0], "right": [1.525, 0.95, 0.150, 0.0], }, + CAR.CHEVROLET_TRAX: { + "left": [3.8060, 0.8282, 0.1702, 0], + "right": [3.8060, 0.8282, 0.1702, 0], + }, } NON_LINEAR_TORQUE_PARAM_ALIASES = { @@ -780,6 +784,7 @@ class CarInterface(CarInterfaceBase): ret.alternativeExperience |= ALTERNATIVE_EXPERIENCE.GM_REMAP_CANCEL_TO_DISTANCE if candidate == CAR.CHEVROLET_TRAX: + ret.steerActuatorDelay = 0.16 CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning) return ret diff --git a/opendbc_repo/opendbc/car/gm/values.py b/opendbc_repo/opendbc/car/gm/values.py index 2f03517a8..21b1ddc77 100644 --- a/opendbc_repo/opendbc/car/gm/values.py +++ b/opendbc_repo/opendbc/car/gm/values.py @@ -433,7 +433,7 @@ class CAR(Platforms): CHEVROLET_TRAILBLAZER.specs, ) CHEVROLET_TRAX = GMPlatformConfig( - [GMCarDocs("Chevrolet TRAX 2024")], + [GMCarDocs("Chevrolet TRAX 2024-25")], CarSpecs(mass=1365, wheelbase=2.7, steerRatio=16.4, centerToFrontRatio=0.4), ) diff --git a/opendbc_repo/opendbc/car/torque_data/override.toml b/opendbc_repo/opendbc/car/torque_data/override.toml index 8368bb0be..61cd088e1 100644 --- a/opendbc_repo/opendbc/car/torque_data/override.toml +++ b/opendbc_repo/opendbc/car/torque_data/override.toml @@ -139,3 +139,4 @@ legend = ["LAT_ACCEL_FACTOR", "MAX_LAT_ACCEL_MEASURED", "FRICTION"] "HONDA_HRV_3G" = [2.5, 1.2, 0.2] "CHEVROLET_MALIBU_CC" = [1.85, 1.85, 0.075] +"CHEVROLET_TRAX" = [0.95, 0.95, 0.17] diff --git a/opendbc_repo/opendbc/car/torque_data/substitute.toml b/opendbc_repo/opendbc/car/torque_data/substitute.toml index b9ab18d9f..043d8f4f8 100644 --- a/opendbc_repo/opendbc/car/torque_data/substitute.toml +++ b/opendbc_repo/opendbc/car/torque_data/substitute.toml @@ -135,5 +135,3 @@ legend = ["LAT_ACCEL_FACTOR", "MAX_LAT_ACCEL_MEASURED", "FRICTION"] "CHEVROLET_SILVERADO_CC" = "CHEVROLET_SILVERADO" "CADILLAC_XT4_CC" = "CADILLAC_XT4" "CADILLAC_XT6" = "GMC_ACADIA" - -"CHEVROLET_TRAX" = "CHEVROLET_VOLT"