Skip to content

Commit

Permalink
Increased error correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Gernby committed Dec 31, 2018
1 parent e42d081 commit 99460c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/pathplanner.py
Expand Up @@ -30,7 +30,7 @@ def update(self, v_ego, md, LaC=None):
else:
angle_error = 0.0
if angle_error != 0.0:
lateral_error = 0.5 * np.clip(v_ego * (LaC.steerActuatorDelay + 0.05) * math.tan(math.radians(angle_error)), -0.2, 0.2)
lateral_error = 1.0 * np.clip(v_ego * (LaC.steerActuatorDelay + 0.05) * math.tan(math.radians(angle_error)), -0.2, 0.2)
lateral_error = LaC.lateral_error
else:
lateral_error = 0.0
Expand Down

0 comments on commit 99460c1

Please sign in to comment.