Skip to content

Commit

Permalink
VW: remove duplicate self.frame iteration / reset
Browse files Browse the repository at this point in the history
  • Loading branch information
dkiiv committed Dec 9, 2024
1 parent c69d8ad commit 7cbdbe2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions selfdrive/car/volkswagen/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7cbdbe2

Please sign in to comment.