From 7cbdbe2e1b575242007ea53ee076ecaff086b957 Mon Sep 17 00:00:00 2001 From: actuallylemoncurd Date: Mon, 9 Dec 2024 17:39:02 -0500 Subject: [PATCH] VW: remove duplicate self.frame iteration / reset --- selfdrive/car/volkswagen/carcontroller.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/selfdrive/car/volkswagen/carcontroller.py b/selfdrive/car/volkswagen/carcontroller.py index 3464f2db02582c..d3a168ead8e3c7 100644 --- a/selfdrive/car/volkswagen/carcontroller.py +++ b/selfdrive/car/volkswagen/carcontroller.py @@ -289,9 +289,7 @@ def update(self, CC, CS, now_nanos): if VolkswagenFlags.PQ and self.ext_bus == CANBUS.cam and self.CP.openpilotLongitudinalControl: if self.frame % 2 or CS.motor2_stock != getattr(self, 'motor2_last', CS.motor2_stock): # 50hz / 20ms can_sends.append(self.CCS.create_motor2_control(self.packer_pt, CANBUS.cam, CS.motor2_stock)) - self.frame = 0 self.motor2_last = CS.motor2_stock - self.frame += 1 # *** Below here is for OEM+ behavior modification of OEM ACC *** # # Modify Motor_2, Bremse_8, Bremse_11