Skip to content

Commit

Permalink
Controlsd: fix bug in curv rate limit (#23250)
Browse files Browse the repository at this point in the history
* Controlsd: fix bug in curv rate limit

* update ref
  • Loading branch information
haraschax committed Jan 4, 2022
1 parent 15be8a8 commit d3f064f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions selfdrive/controls/lib/drive_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ def get_lag_adjusted_curvature(CP, v_ego, psis, curvatures, curvature_rates):
-max_curvature_rate,
max_curvature_rate)
safe_desired_curvature = clip(desired_curvature,
current_curvature - max_curvature_rate/DT_MDL,
current_curvature + max_curvature_rate/DT_MDL)
current_curvature - max_curvature_rate * DT_MDL,
current_curvature + max_curvature_rate * DT_MDL)
return safe_desired_curvature, safe_desired_curvature_rate
2 changes: 1 addition & 1 deletion selfdrive/test/process_replay/ref_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
67534ae58a87b6993a0a9653d255e629785a07c3
e0ac3ca09baaf0d791d0e7734799bb297ad91f79

1 comment on commit d3f064f

@chanhojung
Copy link
Contributor

@chanhojung chanhojung commented on d3f064f Jan 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes ping-pong when my car turns at an intersection and then recognizes the new lane.
So I changed it back to the original state, and then OP drove normally.

Please sign in to comment.