Skip to content

Commit 82b9ff9

Browse files
authored
LaC.lateral_error = 1.0 * np.clip.....
1 parent a61679c commit 82b9ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

selfdrive/controls/lib/pathplanner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def update(self, v_ego, md, LaC=None):
3131
if LaC is None or angle_error == 0:
3232
lateral_error = 0.0
3333
else:
34-
LaC.lateral_error = -1.0 * np.clip(v_ego * 0.15 * math.tan(math.radians(angle_error)), -0.2, 0.2)
34+
LaC.lateral_error = 1.0 * np.clip(v_ego * 0.15 * math.tan(math.radians(angle_error)), -0.2, 0.2)
3535
lateral_error = LaC.lateral_error
3636

3737
# only offset left and right lane lines; offsetting p_poly does not make sense

0 commit comments

Comments
 (0)