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-23 18:25:58 +01:00 committed by Lorenz Meier
parent d5219c8bc0
commit 757f0e7334
1 changed files with 2 additions and 1 deletions

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;
}