Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPC controller full stop condition error #15648

Open
ycraurora opened this issue Feb 14, 2025 · 1 comment
Open

MPC controller full stop condition error #15648

ycraurora opened this issue Feb 14, 2025 · 1 comment

Comments

@ycraurora
Copy link

ycraurora commented Feb 14, 2025

Full stop condition judgement in mpc_controller.cc [here] in Apollo 10.0.1

if (std::abs(debug->path_remain()) < FLAGS_max_acceleration_when_stopped) {
  debug->set_is_full_stop(true);
  ADEBUG << "Into full stop within path remain, "
         << "is_full_stop is " << debug->is_full_stop();
}

should be

if (std::abs(debug->path_remain()) < FLAGS_max_path_remain_when_stopped) { // corrected
  debug->set_is_full_stop(true);
  ADEBUG << "Into full stop within path remain, "
         << "is_full_stop is " << debug->is_full_stop();
}
@hearto1314
Copy link
Contributor

Got,thx for your feedback ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants