|
|
|
@ -139,15 +139,10 @@ bool ULogParser::getTagsFromLog(QByteArray& log, QList<GeoTagWorker::cameraFeedb
@@ -139,15 +139,10 @@ bool ULogParser::getTagsFromLog(QByteArray& log, QList<GeoTagWorker::cameraFeedb
|
|
|
|
|
|
|
|
|
|
case (int)ULogMessageType::DATA: |
|
|
|
|
{ |
|
|
|
|
if (!geotagFound) { |
|
|
|
|
qWarning() << "Could not detect geotag packets in ULog"; |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
uint16_t msgID = -1; |
|
|
|
|
memcpy(&msgID, log.data() + index + ULOG_MSG_HEADER_LEN, 2); |
|
|
|
|
|
|
|
|
|
if(msgID == _cameraCaptureMsgID) { |
|
|
|
|
if (geotagFound && msgID == _cameraCaptureMsgID) { |
|
|
|
|
|
|
|
|
|
// Completely dynamic parsing, so that changing/reordering the message format will not break the parser
|
|
|
|
|
GeoTagWorker::cameraFeedbackPacket feedback; |
|
|
|
@ -179,5 +174,10 @@ bool ULogParser::getTagsFromLog(QByteArray& log, QList<GeoTagWorker::cameraFeedb
@@ -179,5 +174,10 @@ bool ULogParser::getTagsFromLog(QByteArray& log, QList<GeoTagWorker::cameraFeedb
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (cameraFeedback.count() == 0) { |
|
|
|
|
qWarning() << "Could not detect camera_capture packets in ULog"; |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|