qCDebug(MissionManagerLog)<<"_handleMissionAck vehicle sent ack while state machine is idle: error:"<<missionAck.type;
qCDebug(MissionManagerLog)<<"_handleMissionAck vehicle sent ack while state machine is idle: error:"<<_missionResultToString((MAV_MISSION_RESULT)missionAck.type);
_sendError(VehicleError,QString("Vehicle sent unexpected MISSION_ACK message, error: %1").arg(_missionResultToString((MAV_MISSION_RESULT)missionAck.type)));
break;
caseAckMissionCount:
// MISSION_COUNT message expected
qCDebug(MissionManagerLog)<<"_handleMissionAck vehicle sent ack when MISSION_COUNT expected: error:"<<missionAck.type;
qCDebug(MissionManagerLog)<<"_handleMissionAck vehicle sent ack when MISSION_COUNT expected: error:"<<_missionResultToString((MAV_MISSION_RESULT)missionAck.type);
if(!_retrySequence(AckMissionCount)){
_sendError(VehicleError,QString("Vehicle returned error: %1. Partial list of mission items may have been returned.").arg(_missionResultToString((MAV_MISSION_RESULT)missionAck.type)));
}
break;
caseAckMissionItem:
// MISSION_ITEM expected
qCDebug(MissionManagerLog)<<"_handleMissionAck vehicle sent ack when MISSION_ITEM expected: error:"<<missionAck.type;
qCDebug(MissionManagerLog)<<"_handleMissionAck vehicle sent ack when MISSION_ITEM expected: error:"<<_missionResultToString((MAV_MISSION_RESULT)missionAck.type);
if(!_retrySequence(AckMissionItem)){
_sendError(VehicleError,QString("Vehicle returned error: %1. Partial list of mission items may have been returned.").arg(_missionResultToString((MAV_MISSION_RESULT)missionAck.type)));
_sendError(VehicleError,QString("Vehicle returned error: %1. Vehicle only has partial list of mission items.").arg(_missionResultToString((MAV_MISSION_RESULT)missionAck.type)));