fix log playback when log frequency is .1s (#4115)

This commit is contained in:
Mike Morrison
2016-12-11 20:36:30 +01:00
committed by Damjan Adamic
parent 4233e71954
commit 4f47c13efc
+1 -1
View File
@@ -679,7 +679,7 @@ void TelemetrySimulator::LogPlaybackController::calcLogFrequency()
QDateTime logTime = parseTransmittterTimestamp(csvRecords[i]);
// ugh - no timespan in this Qt version
double timeDiff = (logTime.toMSecsSinceEpoch() - lastTime.toMSecsSinceEpoch()) / 1000.0;
if ((timeDiff > 0.1) && (timeDiff < logFrequency)) {
if ((timeDiff > 0.09) && (timeDiff < logFrequency)) {
logFrequency = timeDiff;
}
lastTime = logTime;