mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-25 01:58:29 -04:00
GCS_MAVLink: better mission errors
This commit is contained in:
parent
7cd3d8bfdc
commit
74902012fd
@ -665,8 +665,8 @@ bool GCS_MAVLINK::handle_mission_item(mavlink_message_t *msg, AP_Mission &missio
|
|||||||
mavlink_msg_mission_item_decode(msg, &packet);
|
mavlink_msg_mission_item_decode(msg, &packet);
|
||||||
|
|
||||||
// convert mavlink packet to mission command
|
// convert mavlink packet to mission command
|
||||||
if (!AP_Mission::mavlink_to_mission_cmd(packet, cmd)) {
|
result = AP_Mission::mavlink_to_mission_cmd(packet, cmd);
|
||||||
result = MAV_MISSION_INVALID;
|
if (result != MAV_MISSION_ACCEPTED) {
|
||||||
goto mission_ack;
|
goto mission_ack;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user