From 39cdd2f5d3a54af866946a79b3473575b8bc72bd Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Wed, 8 Oct 2025 22:36:11 -0500 Subject: [PATCH] Fix Pedal --- selfdrive/car/gm/carcontroller.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/selfdrive/car/gm/carcontroller.py b/selfdrive/car/gm/carcontroller.py index a3f6caf4e..ad3c4aa11 100644 --- a/selfdrive/car/gm/carcontroller.py +++ b/selfdrive/car/gm/carcontroller.py @@ -444,11 +444,8 @@ class CarController(CarControllerBase): ) and CS.out.cruiseState.enabled: if (self.frame - self.last_button_frame) * DT_CTRL > 0.04: self.last_button_frame = self.frame - # Send cancel to appropriate bus based on car type (match stock longitudinal logic) - if self.CP.carFingerprint in SDGM_CAR: - can_sends.append(gmcan.create_buttons(self.packer_pt, CanBus.POWERTRAIN, (CS.buttons_counter + 1) % 4, CruiseButtons.CANCEL)) - else: - can_sends.append(gmcan.create_buttons(self.packer_pt, CanBus.CAMERA, (CS.buttons_counter + 1) % 4, CruiseButtons.CANCEL)) + # Always send cancel on POWERTRAIN bus for pedal/CC-long paths + can_sends.append(gmcan.create_buttons(self.packer_pt, CanBus.POWERTRAIN, (CS.buttons_counter + 1) % 4, CruiseButtons.CANCEL)) else: # While car is braking, cancel button causes ECM to enter a soft disable state with a fault status.