Commit 85183ba1 authored by Mohammed Kabir's avatar Mohammed Kabir Committed by Lorenz Meier

GeoTagController : Handle logging dropouts correctly

parent 138f29fd
......@@ -306,8 +306,15 @@ bool GeoTagWorker::triggerFiltering()
{
_imageIndices.clear();
_triggerIndices.clear();
for(int i = 0; i < _imageTime.count() && i < _triggerList.count(); i++) {
_imageIndices.append(i);
if(_imageList.count() > _triggerList.count()) { // Logging dropouts
qCDebug(GeotaggingLog) << "Detected missing feedback packets.";
} else if (_imageList.count() < _triggerList.count()) { // Camera skipped frames
qCDebug(GeotaggingLog) << "Detected missing image frames.";
}
for(int i = 0; i < _imageList.count() && i < _triggerList.count(); i++) {
_imageIndices.append(_triggerList[i].imageSequence);
_triggerIndices.append(i);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment