Skip to content

Commit

Permalink
fix(autoware_mpc_lateral_controller): fix duplicateAssignExpression w…
Browse files Browse the repository at this point in the history
…arning (autowarefoundation#7572)

Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
  • Loading branch information
veqcc committed Jun 20, 2024
1 parent b747520 commit ac43d07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ bool MpcLateralController::isMpcConverged()

// Find the maximum and minimum values of the steering angle in the past 1 second.
double min_steering_value = m_mpc_steering_history[0].first.steering_tire_angle;
double max_steering_value = m_mpc_steering_history[0].first.steering_tire_angle;
double max_steering_value = min_steering_value;
for (size_t i = 1; i < m_mpc_steering_history.size(); i++) {
if (m_mpc_steering_history.at(i).first.steering_tire_angle < min_steering_value) {
min_steering_value = m_mpc_steering_history.at(i).first.steering_tire_angle;
Expand Down

0 comments on commit ac43d07

Please sign in to comment.