From 495da78739968d6833301888c772dedfed9019c2 Mon Sep 17 00:00:00 2001 From: James <91348155+FrogAi@users.noreply.github.com> Date: Mon, 1 Dec 2025 12:00:00 -0700 Subject: [PATCH] "Stop-and-Go Hack" for 2017 Chevy Volt Co-Authored-By: Tim Wilson <7284371+twilsonco@users.noreply.github.com> --- opendbc_repo/opendbc/car/gm/carcontroller.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opendbc_repo/opendbc/car/gm/carcontroller.py b/opendbc_repo/opendbc/car/gm/carcontroller.py index 4029e4c0..67555531 100644 --- a/opendbc_repo/opendbc/car/gm/carcontroller.py +++ b/opendbc_repo/opendbc/car/gm/carcontroller.py @@ -142,9 +142,13 @@ class CarController(CarControllerBase): friction_brake_bus = CanBus.POWERTRAIN # FrogPilot variables + if CC.cruiseControl.resume and CS.out.cruiseState.standstill and frogpilot_toggles.volt_sng: + acc_engaged = False + else: + acc_engaged = CC.enabled # GasRegenCmdActive needs to be 1 to avoid cruise faults. It describes the ACC state, not actuation - can_sends.append(gmcan.create_gas_regen_command(self.packer_pt, CanBus.POWERTRAIN, self.apply_gas, idx, CC.enabled, at_full_stop)) + can_sends.append(gmcan.create_gas_regen_command(self.packer_pt, CanBus.POWERTRAIN, self.apply_gas, idx, acc_engaged, at_full_stop)) can_sends.append(gmcan.create_friction_brake_command(self.packer_ch, friction_brake_bus, self.apply_brake, idx, CC.enabled, near_stop, at_full_stop, self.CP))