forked from Archive/PX4-Autopilot
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:
parent
d5219c8bc0
commit
757f0e7334
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue