mirror of https://github.com/ArduPilot/ardupilot
GCS_Common: NACK a failed partial mission write
This commit is contained in:
parent
b19f760628
commit
753f360d06
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue