GCS_MAVLink: better mission errors

This commit is contained in:
DonLakeFlyer 2015-12-21 16:02:23 +11:00 committed by Andrew Tridgell
parent 7cd3d8bfdc
commit 74902012fd
1 changed files with 2 additions and 2 deletions

View File

@ -665,8 +665,8 @@ bool GCS_MAVLINK::handle_mission_item(mavlink_message_t *msg, AP_Mission &missio
mavlink_msg_mission_item_decode(msg, &packet);
// convert mavlink packet to mission command
if (!AP_Mission::mavlink_to_mission_cmd(packet, cmd)) {
result = MAV_MISSION_INVALID;
result = AP_Mission::mavlink_to_mission_cmd(packet, cmd);
if (result != MAV_MISSION_ACCEPTED) {
goto mission_ack;
}