From 4013a70e9d0d2fc14bdad155e8c42d5a11fe2121 Mon Sep 17 00:00:00 2001 From: firestarsdog <229254897+firestarsdog@users.noreply.github.com> Date: Thu, 16 Jul 2026 10:29:47 -0400 Subject: [PATCH] Ex Tee Four Cee Cee --- opendbc_repo/opendbc/car/gm/fingerprints.py | 1 + opendbc_repo/opendbc/car/gm/interface.py | 2 +- opendbc_repo/opendbc/car/gm/values.py | 5 +++++ opendbc_repo/opendbc/car/torque_data/substitute.toml | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/opendbc_repo/opendbc/car/gm/fingerprints.py b/opendbc_repo/opendbc/car/gm/fingerprints.py index 9a2277ab3..197f9ed0d 100644 --- a/opendbc_repo/opendbc/car/gm/fingerprints.py +++ b/opendbc_repo/opendbc/car/gm/fingerprints.py @@ -220,6 +220,7 @@ FINGERPRINTS.update({ CAR.CHEVROLET_MALIBU_SDGM: FINGERPRINTS[CAR.CHEVROLET_MALIBU_CC], CAR.BUICK_BABYENCLAVE: FINGERPRINTS[CAR.CHEVROLET_TRAVERSE], CAR.CHEVROLET_SILVERADO_CC: FINGERPRINTS[CAR.CHEVROLET_SILVERADO], + CAR.CADILLAC_XT4_CC: FINGERPRINTS[CAR.CADILLAC_XT4], CAR.BUICK_LACROSSE_ASCM: FINGERPRINTS[CAR.BUICK_LACROSSE], }) diff --git a/opendbc_repo/opendbc/car/gm/interface.py b/opendbc_repo/opendbc/car/gm/interface.py index 8209f31ad..6cf2f8a47 100755 --- a/opendbc_repo/opendbc/car/gm/interface.py +++ b/opendbc_repo/opendbc/car/gm/interface.py @@ -497,7 +497,7 @@ class CarInterface(CarInterfaceBase): ret.steerActuatorDelay = 0.2 CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning) - elif candidate == CAR.CADILLAC_XT4: + elif candidate in (CAR.CADILLAC_XT4, CAR.CADILLAC_XT4_CC): ret.steerActuatorDelay = 0.2 if not ret.openpilotLongitudinalControl: ret.minEnableSpeed = -1. diff --git a/opendbc_repo/opendbc/car/gm/values.py b/opendbc_repo/opendbc/car/gm/values.py index 75cc5c2e0..5410a60f3 100644 --- a/opendbc_repo/opendbc/car/gm/values.py +++ b/opendbc_repo/opendbc/car/gm/values.py @@ -372,6 +372,10 @@ class CAR(Platforms): [GMCarDocs("Cadillac XT4 2023", "Driver Assist Package")], GMCarSpecs(mass=1660, wheelbase=2.78, steerRatio=14.4, centerToFrontRatio=0.4), ) + CADILLAC_XT4_CC = GMPlatformConfig( + [GMCarDocs("Cadillac XT4 - No-ACC")], + CADILLAC_XT4.specs, + ) CADILLAC_XT5 = GMSDGMPlatformConfig( [GMCarDocs("Cadillac XT5 2022", "Driver Assist Package")], CarSpecs(mass=1810, wheelbase=2.86, steerRatio=16.34, centerToFrontRatio=0.5), @@ -574,6 +578,7 @@ CC_ONLY_CAR = { CAR.CHEVROLET_MALIBU_CC, CAR.CHEVROLET_MALIBU_HYBRID_CC, CAR.CHEVROLET_SILVERADO_CC, + CAR.CADILLAC_XT4_CC, } CC_REGEN_PADDLE_CAR = { CAR.CHEVROLET_BOLT_CC_2018_2021, diff --git a/opendbc_repo/opendbc/car/torque_data/substitute.toml b/opendbc_repo/opendbc/car/torque_data/substitute.toml index 4f644c0c3..401af9d64 100644 --- a/opendbc_repo/opendbc/car/torque_data/substitute.toml +++ b/opendbc_repo/opendbc/car/torque_data/substitute.toml @@ -121,5 +121,6 @@ legend = ["LAT_ACCEL_FACTOR", "MAX_LAT_ACCEL_MEASURED", "FRICTION"] "GMC_YUKON_CC" = "CHEVROLET_SILVERADO" "CHEVROLET_TRAILBLAZER_CC" = "CHEVROLET_TRAILBLAZER" "CHEVROLET_SILVERADO_CC" = "CHEVROLET_SILVERADO" +"CADILLAC_XT4_CC" = "CADILLAC_XT4" "CHEVROLET_TRAX" = "CHEVROLET_VOLT"