Skip to content

Commit

Permalink
VW PQ: AWV controls update
Browse files Browse the repository at this point in the history
* ramp brake to 0
  • Loading branch information
dkiiv committed Nov 1, 2024
1 parent 3052f98 commit 42c99cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selfdrive/car/volkswagen/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def update(self, CC, CS, now_nanos):
self.AWV_enable = 0 if CS.out.vEgoRaw >= 6 else self.AWV_enable
self.AWV_brake = 0
self.AWV_halten = 1 if CS.out.vEgoRaw <= 3 and self.AWV_enable else 0
self.AWV_brake *= max(0, CS.out.vEgo / 1.5) if CS.out.vEgoRaw <= 1.5 else 1
self.long_deviation = 0 # TODO: make dynamic again
self.long_ratelimit = 4 # TODO: make dynamic again

Expand Down

0 comments on commit 42c99cf

Please sign in to comment.