|
@@ -1285,7 +1285,7 @@ bool Navigation::Rotation_mpc_once(Pose2d current_to_target, Navigation::stLimit
|
|
|
return ret == success || ret == no_solution;
|
|
|
}
|
|
|
|
|
|
-bool Navigation::mpc_once(Trajectory traj, stLimit limit_v, std::vector<double> &out, int mpc_result, bool directY) {
|
|
|
+bool Navigation::mpc_once(Trajectory traj, stLimit limit_v, std::vector<double> &out, int& mpc_result, bool directY) {
|
|
|
if (PoseTimeout() == true) {
|
|
|
printf(" MPC once Error:Pose is timeout \n");
|
|
|
return false;
|