Skip to content

Commit

Permalink
Revert dPoly computation to 0.6.3 behavior (#809)
Browse files Browse the repository at this point in the history
* Revert dPoly computation to 0.6.3 behavior

* update test reference
  • Loading branch information
pd0wm committed Sep 14, 2019
1 parent b0563a5 commit 58f3760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/lane_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def calc_d_poly(l_poly, r_poly, p_poly, l_prob, r_prob, lane_width):
path_from_right_lane = r_poly.copy()
path_from_right_lane[3] += lane_width / 2.0

lr_prob = l_prob * r_prob
lr_prob = l_prob + r_prob - l_prob * r_prob

d_poly_lane = (l_prob * path_from_left_lane + r_prob * path_from_right_lane) / (l_prob + r_prob + 0.0001)
return lr_prob * d_poly_lane + (1.0 - lr_prob) * p_poly
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/test/tests/process_replay/ref_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8a11bcbc9833e154e10b59a8babb2b4545372f56
9124fa5837ead9b74d97aef85897478a5e8b92d2

0 comments on commit 58f3760

Please sign in to comment.