|
|
@ -362,7 +362,14 @@ void QGCXYPlot::appendData(int uasId, const QString& curve, const QString& unit, |
|
|
|
} else |
|
|
|
} else |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if(x_valid && y_valid && (int)qAbs(y_timestamp_us - x_timestamp_us) <= max_timestamp_diff_us) { |
|
|
|
if(x_valid && y_valid) { |
|
|
|
|
|
|
|
quint64 difference; |
|
|
|
|
|
|
|
if (y_timestamp_us < x_timestamp_us) { |
|
|
|
|
|
|
|
difference = x_timestamp_us - y_timestamp_us; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
difference = y_timestamp_us - x_timestamp_us; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (difference <= max_timestamp_diff_us) { |
|
|
|
int removed = xycurve->appendData( QPointF(x,y) ); |
|
|
|
int removed = xycurve->appendData( QPointF(x,y) ); |
|
|
|
x_valid = false; |
|
|
|
x_valid = false; |
|
|
|
y_valid = false; |
|
|
|
y_valid = false; |
|
|
@ -377,6 +384,7 @@ void QGCXYPlot::appendData(int uasId, const QString& curve, const QString& unit, |
|
|
|
xycurve->setStartIndex(value); |
|
|
|
xycurve->setStartIndex(value); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void QGCXYPlot::styleChanged(MainWindow::QGC_MAINWINDOW_STYLE style) |
|
|
|
void QGCXYPlot::styleChanged(MainWindow::QGC_MAINWINDOW_STYLE style) |
|
|
|