Skip to content

Commit

Permalink
member method argument corrected
Browse files Browse the repository at this point in the history
Signed-off-by: Zhe Shen <[email protected]>
  • Loading branch information
HansOersted committed May 27, 2024
1 parent e3b9bc7 commit 74b4106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class MpcLateralController : public trajectory_follower::LateralControllerBase
// trajectory buffer for detecting new trajectory
std::deque<Trajectory> m_trajectory_buffer;

void setStatus(diagnostic_updater::DiagnosticStatusWrapper & stat, const bool & m_is_mpc_solved);
void setStatus(diagnostic_updater::DiagnosticStatusWrapper & stat);

void setupDiag();

Expand Down
4 changes: 2 additions & 2 deletions control/mpc_lateral_controller/src/mpc_lateral_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ std::shared_ptr<SteeringOffsetEstimator> MpcLateralController::createSteerOffset
}

void MpcLateralController::setStatus(
diagnostic_updater::DiagnosticStatusWrapper & stat, const bool & m_is_mpc_solved)
diagnostic_updater::DiagnosticStatusWrapper & stat)
{
if (m_is_mpc_solved) {
stat.summary(diagnostic_msgs::msg::DiagnosticStatus::OK, "MPC succeeded.");
Expand All @@ -249,7 +249,7 @@ void MpcLateralController::setupDiag()

d->add("MPC_solve_checker", [&](auto & stat) {
setStatus(
stat, m_is_mpc_solved);
stat);
});
}

Expand Down

0 comments on commit 74b4106

Please sign in to comment.