qCDebug(MissionManagerLog)<<"_handleMissionAck vehicle did not reqeust all items: _expectedSequenceNumber:_missionItems.count"<<_expectedSequenceNumber<<_missionItems.count();
if(!_retrySequence(AckMissionRequest)){
_sendError(MissingRequestsError,QString("Vehicle did not request all items during write sequence %1:%2").arg(_expectedSequenceNumber).arg(_missionItems.count()));
switch(savedRetryAck){
caseAckNone:
// State machine is idle. Vehicle is confused.
qCDebug(MissionManagerLog)<<"_handleMissionAck vehicle sent ack while state machine is idle: type:"<<missionAck.type;
_sendError(VehicleError,"Vehicle sent unexpected MISSION_ACK message.");
break;
caseAckMissionCount:
// MISSION_COUNT message expected
qCDebug(MissionManagerLog)<<"_handleMissionAck vehicle sent ack when MISSION_COUNT expected: type:"<<missionAck.type;
if(!_retrySequence(AckMissionCount)){
_sendError(VehicleError,QString("Vehicle returned error: %1. Partial list of mission items may have been returned.").arg(missionAck.type));
qCDebug(MissionManagerLog)<<"_handleMissionAck vehicle did not reqeust all items: _expectedSequenceNumber:_missionItems.count"<<_expectedSequenceNumber<<_missionItems.count();
if(!_retrySequence(AckMissionRequest)){
_sendError(MissingRequestsError,QString("Vehicle did not request all items during write sequence %1:%2. Vehicle only has partial list of mission items.").arg(_expectedSequenceNumber).arg(_missionItems.count()));