Skip to content

Commit

Permalink
correct a typo
Browse files Browse the repository at this point in the history
Signed-off-by: Zhe Shen <[email protected]>
  • Loading branch information
HansOersted committed Jun 5, 2024
1 parent 7e170bf commit f6ec10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/mpc_lateral_controller/src/mpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ void MPC::setReferenceTrajectory(

void MPC::resetPrevResult(const SteeringReport & current_steer)
{
// Consider limit. The prev value larger than limitation brakes the optimization constraint and
// Consider limit. The prev value larger than limitation breaks the optimization constraint and
// results in optimization failure.
const float steer_lim_f = static_cast<float>(m_steer_lim);
m_raw_steer_cmd_prev = std::clamp(current_steer.steering_tire_angle, -steer_lim_f, steer_lim_f);
Expand Down

0 comments on commit f6ec10f

Please sign in to comment.