Skip to content

Commit

Permalink
only return desired curvature
Browse files Browse the repository at this point in the history
  • Loading branch information
eFiniLan committed Jul 22, 2024
1 parent bbcb87f commit af24280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/controlsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ def state_control(self, CS):

# dp - lane line priority mode
if self._dp_lat_lane_priority_mode and self.sm['lateralPlan'].useLaneLines:
self.desired_curvature, _ = get_lag_adjusted_curvature(self.CP, CS.vEgo, self.sm['lateralPlan'].psis, self.sm['lateralPlan'].curvatures)
self.desired_curvature = get_lag_adjusted_curvature(self.CP, CS.vEgo, self.sm['lateralPlan'].psis, self.sm['lateralPlan'].curvatures)
else:
# Steering PID loop and lateral MPC
self.desired_curvature = clip_curvature(CS.vEgo, self.desired_curvature, model_v2.action.desiredCurvature)
Expand Down

0 comments on commit af24280

Please sign in to comment.