We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a61679c commit 82b9ff9Copy full SHA for 82b9ff9
selfdrive/controls/lib/pathplanner.py
@@ -31,7 +31,7 @@ def update(self, v_ego, md, LaC=None):
31
if LaC is None or angle_error == 0:
32
lateral_error = 0.0
33
else:
34
- LaC.lateral_error = -1.0 * np.clip(v_ego * 0.15 * math.tan(math.radians(angle_error)), -0.2, 0.2)
+ LaC.lateral_error = 1.0 * np.clip(v_ego * 0.15 * math.tan(math.radians(angle_error)), -0.2, 0.2)
35
lateral_error = LaC.lateral_error
36
37
# only offset left and right lane lines; offsetting p_poly does not make sense
0 commit comments