Skip to content

Commit

Permalink
Controlsd: fix bug in curv rate limit (commaai#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 authored and twilsonco committed Feb 17, 2022
1 parent d7d87c4 commit c92d7f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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 @@ -128,6 +128,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
4 changes: 4 additions & 0 deletions selfdrive/test/process_replay/ref_commit
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<<<<<<< HEAD
280a712ece99c231ea036c3b66d6aafa55548211
=======
e0ac3ca09baaf0d791d0e7734799bb297ad91f79
>>>>>>> d3f064f5c (Controlsd: fix bug in curv rate limit (#23250))

0 comments on commit c92d7f1

Please sign in to comment.