From 5b534f94d32793c267b82a6b19989930d761a02d Mon Sep 17 00:00:00 2001 From: actuallylemoncurd Date: Wed, 2 Oct 2024 15:54:12 -0400 Subject: [PATCH] VW PQ: QOL fix --- selfdrive/car/volkswagen/carcontroller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/volkswagen/carcontroller.py b/selfdrive/car/volkswagen/carcontroller.py index 029f36afe572e6..eee68f29a17be2 100644 --- a/selfdrive/car/volkswagen/carcontroller.py +++ b/selfdrive/car/volkswagen/carcontroller.py @@ -160,7 +160,7 @@ def update(self, CC, CS, now_nanos): clip(ratelimit_lookup, self.ratelimitV[3], self.ratelimitV[0]) self.long_deviation = (0.019 * deviation_lookup) + (1 - 0.019) * getattr(self, 'long_deviation', 0) self.long_ratelimit = (0.009 * ratelimit_lookup) + (1 - 0.009) * getattr(self, 'long_ratelimit', 0) - self.accel_last = self.accel_last if accel == -3.5 else accel + self.accel_last = self.accel_last if accel == self.CCP.ACCEL_MIN else accel can_sends.extend(self.CCS.create_acc_accel_control(self.packer_pt, CANBUS.pt, CS.acc_type, accel, acc_control, stopping, starting, CS.esp_hold_confirmation,