From c5a6e1da9dceaf0155d3c53fd458e6cf87f4ba79 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Mon, 22 Jun 2026 19:45:11 -0500 Subject: [PATCH] Blaze It and Praise It --- opendbc_repo/opendbc/car/gm/interface.py | 4 ++++ opendbc_repo/opendbc/car/gm/tests/test_gm.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/opendbc_repo/opendbc/car/gm/interface.py b/opendbc_repo/opendbc/car/gm/interface.py index 6ab9fe525..24583b992 100755 --- a/opendbc_repo/opendbc/car/gm/interface.py +++ b/opendbc_repo/opendbc/car/gm/interface.py @@ -523,6 +523,10 @@ class CarInterface(CarInterfaceBase): if not ret.openpilotLongitudinalControl: ret.minEnableSpeed = -1. if candidate == CAR.CHEVROLET_BLAZER: + ret.longitudinalTuning.kpBP = [0.0, 4.0, 12.0, 35.0] + ret.longitudinalTuning.kpV = [0.09, 0.075, 0.055, 0.040] + ret.longitudinalTuning.kiBP = [0.0, 4.0, 12.0, 35.0] + ret.longitudinalTuning.kiV = [0.03, 0.04, 0.055, 0.07] ret.minEnableSpeed = 5 * CV.KPH_TO_MS ret.stoppingDecelRate = 1.2 ret.vEgoStopping = 0.35 diff --git a/opendbc_repo/opendbc/car/gm/tests/test_gm.py b/opendbc_repo/opendbc/car/gm/tests/test_gm.py index 711a38ed6..11a6789c7 100644 --- a/opendbc_repo/opendbc/car/gm/tests/test_gm.py +++ b/opendbc_repo/opendbc/car/gm/tests/test_gm.py @@ -149,6 +149,10 @@ class TestGMInterface: docs=False, starpilot_toggles=_test_starpilot_toggles()) assert car_params.openpilotLongitudinalControl + assert list(car_params.longitudinalTuning.kpBP) == pytest.approx([0.0, 4.0, 12.0, 35.0]) + assert list(car_params.longitudinalTuning.kpV) == pytest.approx([0.09, 0.075, 0.055, 0.04]) + assert list(car_params.longitudinalTuning.kiBP) == pytest.approx([0.0, 4.0, 12.0, 35.0]) + assert list(car_params.longitudinalTuning.kiV) == pytest.approx([0.03, 0.04, 0.055, 0.07]) assert car_params.minEnableSpeed == pytest.approx(5 * CV.KPH_TO_MS) assert car_params.stoppingDecelRate == pytest.approx(1.2) assert car_params.vEgoStopping == pytest.approx(0.35)