Skip to content

Commit

Permalink
set accel to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Feb 3, 2022
1 parent 10c2180 commit 167dbb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selfdrive/controls/lib/longitudinal_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def update(self, sm):

if not active:
self.v_desired_filter.x = v_ego
self.a_desired = 0.0

# Prevent divergence, smooth in current v_ego
self.v_desired_filter.x = max(0.0, self.v_desired_filter.update(v_ego))
Expand Down

0 comments on commit 167dbb2

Please sign in to comment.