mavlink_mission: straightaway send item again

Instead of using a timeout to resend a mission item, we should directly
send the mission request again. This is needed because we removed the
automatic resending which lead to troubles.
This commit is contained in:
Julian Oes
2018-01-25 15:31:40 +01:00
committed by Lorenz Meier
parent d5219c8bc0
commit 757f0e7334
+2 -1
View File
@@ -1001,7 +1001,8 @@ MavlinkMissionManager::handle_mission_item_both(const mavlink_message_t *msg)
if (wp.seq != _transfer_seq) {
PX4_DEBUG("WPM: MISSION_ITEM ERROR: seq %u was not the expected %u", wp.seq, _transfer_seq);
/* don't send request here, it will be performed in eventloop after timeout */
/* request next item again */
send_mission_request(_transfer_partner_sysid, _transfer_partner_compid, _transfer_seq);
return;
}