From d710061a7210fbd4380b286de18f43d5e02de87b Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Thu, 29 May 2025 09:35:07 -0500 Subject: [PATCH] Update carcontroller.py --- selfdrive/car/gm/carcontroller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/car/gm/carcontroller.py b/selfdrive/car/gm/carcontroller.py index e5a6387ba..602971135 100644 --- a/selfdrive/car/gm/carcontroller.py +++ b/selfdrive/car/gm/carcontroller.py @@ -39,6 +39,7 @@ class CarController(CarControllerBase): self.frame = 0 self.last_steer_frame = 0 self.last_steer_ts_ns = 0 + self.last_regen_active = False self.prev_steer_ts_ns = 0 self.last_spoof_ts_ns = 0 self.last_button_frame = 0 @@ -60,6 +61,7 @@ class CarController(CarControllerBase): self.accel_g = 0.0 self.regen_paddle_pressed = False self.aego = 0.0 + self.regen_paddle_timer = 0 # Smoothing state for paddle blending self.prev_regen_paddle_pressed = False @@ -142,6 +144,7 @@ class CarController(CarControllerBase): self.aego = CS.out.aEgo actuators = CC.actuators accel = brake_accel = actuators.accel + press_regen_paddle = False hud_control = CC.hudControl hud_alert = hud_control.visualAlert hud_v_cruise = hud_control.setSpeed