Plane: fixed mission resume at arbitrary waypoints

on completion of a mission a user can ask for it to resume at any wp
This commit is contained in:
Andrew Tridgell 2014-03-21 10:21:37 +11:00
parent a55c4e2296
commit f6b56b5d26

View File

@ -1339,6 +1339,9 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
case MAVLINK_MSG_ID_MISSION_SET_CURRENT:
{
handle_mission_set_current(mission, msg);
if (control_mode == AUTO && mission.state() == AP_Mission::MISSION_STOPPED) {
mission.resume();
}
break;
}