Skip to content

Commit

Permalink
VW PQ: QOL fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dkiiv committed Oct 2, 2024
1 parent fcf2bd7 commit 5b534f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/volkswagen/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5b534f9

Please sign in to comment.