apollo icon indicating copy to clipboard operation
apollo copied to clipboard

MPC controller full stop condition error

Open ycraurora opened this issue 10 months ago • 1 comments

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();
}

ycraurora avatar Feb 14 '25 02:02 ycraurora

Got,thx for your feedback ~

hearto1314 avatar Feb 17 '25 09:02 hearto1314