fix log playback when log frequency is .1s (#4115)
This commit is contained in:
committed by
Damjan Adamic
parent
4233e71954
commit
4f47c13efc
@@ -679,7 +679,7 @@ void TelemetrySimulator::LogPlaybackController::calcLogFrequency()
|
|||||||
QDateTime logTime = parseTransmittterTimestamp(csvRecords[i]);
|
QDateTime logTime = parseTransmittterTimestamp(csvRecords[i]);
|
||||||
// ugh - no timespan in this Qt version
|
// ugh - no timespan in this Qt version
|
||||||
double timeDiff = (logTime.toMSecsSinceEpoch() - lastTime.toMSecsSinceEpoch()) / 1000.0;
|
double timeDiff = (logTime.toMSecsSinceEpoch() - lastTime.toMSecsSinceEpoch()) / 1000.0;
|
||||||
if ((timeDiff > 0.1) && (timeDiff < logFrequency)) {
|
if ((timeDiff > 0.09) && (timeDiff < logFrequency)) {
|
||||||
logFrequency = timeDiff;
|
logFrequency = timeDiff;
|
||||||
}
|
}
|
||||||
lastTime = logTime;
|
lastTime = logTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user