GCS_Common: NACK a failed partial mission write

This commit is contained in:
Michael du Breuil 2018-12-23 20:40:19 -07:00 committed by WickedShell
parent b19f760628
commit 753f360d06
1 changed files with 2 additions and 1 deletions

View File

@ -637,7 +637,8 @@ void GCS_MAVLINK::handle_mission_write_partial_list(AP_Mission &mission, mavlink
if ((unsigned)packet.start_index > mission.num_commands() ||
(unsigned)packet.end_index > mission.num_commands() ||
packet.end_index < packet.start_index) {
send_text(MAV_SEVERITY_WARNING,"Flight plan update rejected");
send_text(MAV_SEVERITY_WARNING,"Flight plan update rejected"); // FIXME: Remove this anytime after 2020-01-22
mavlink_msg_mission_ack_send(chan, msg->sysid, msg->compid, MAV_MISSION_INVALID_SEQUENCE, MAV_MISSION_TYPE_MISSION);
return;
}