Skip to content

Commit

Permalink
VW PQ: force vehicle to stop at higher speed while Anhaltewunsch
Browse files Browse the repository at this point in the history
  • Loading branch information
dkiiv committed Dec 19, 2024
1 parent 9f8e449 commit 1dca3b1
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 @@ -297,7 +297,7 @@ def update(self, CC, CS, now_nanos):
# *** Below here is for OEM+ behavior modification of OEM ACC *** #
# Modify Motor_2, Bremse_8, Bremse_11
if VolkswagenFlags.PQ and not self.CP.openpilotLongitudinalControl:
self.stopping = CS.acc_sys_stock["ACS_Anhaltewunsch"] and (CS.out.vEgoRaw <= 1 or self.stopping)
self.stopping = CS.acc_sys_stock["ACS_Anhaltewunsch"] and (CS.out.vEgoRaw <= 2 or self.stopping)
self.stopped = self.EPB_enable and (CS.out.vEgoRaw == 0 or (self.stopping and self.stopped))

if CS.acc_sys_stock["COUNTER"] != self.acc_sys_counter_last:
Expand Down

0 comments on commit 1dca3b1

Please sign in to comment.