Browse Source

Improved log compressor to write out NaN for unknown values

QGC4.4
lm 15 years ago
parent
commit
68e011ed8d
  1. 5
      src/LogCompressor.cc

5
src/LogCompressor.cc

@ -81,6 +81,11 @@ void LogCompressor::run() @@ -81,6 +81,11 @@ void LogCompressor::run()
QString time = parts.first();
QString field = parts.at(2);
QString value = parts.at(3);
// Enforce NaN if no value is present
if (value.length() == 0 || value == "" || value == " " || value == "\t" || value == "\n")
{
value = "NaN";
}
// Get matching output line
quint64 index = times->indexOf(time);
QString outLine = outLines->at(index);

Loading…
Cancel
Save