diff --git a/ground/openpilotgcs/src/plugins/scope/plotdata.cpp b/ground/openpilotgcs/src/plugins/scope/plotdata.cpp index 57b17c193..c916b9cc5 100644 --- a/ground/openpilotgcs/src/plugins/scope/plotdata.cpp +++ b/ground/openpilotgcs/src/plugins/scope/plotdata.cpp @@ -165,7 +165,7 @@ bool ChronoPlotData::append(UAVObject* obj) //Perform scope math, if necessary if (mathFunction == "Boxcar average" || mathFunction == "Standard deviation"){ - //Put the new value at the front + //Put the new value at the back yDataHistory->append( currentValue ); // calculate average value diff --git a/ground/openpilotgcs/src/plugins/scope/scopegadgetwidget.cpp b/ground/openpilotgcs/src/plugins/scope/scopegadgetwidget.cpp index 7b53a060f..9798df0e7 100644 --- a/ground/openpilotgcs/src/plugins/scope/scopegadgetwidget.cpp +++ b/ground/openpilotgcs/src/plugins/scope/scopegadgetwidget.cpp @@ -677,13 +677,13 @@ int ScopeGadgetWidget::csvLoggingAddData() } else { - ss << QString().sprintf("%3.6g",plotData2->yData->last()); + ss << QString().sprintf("%3.10g",plotData2->yData->last()); m_csvLoggingDataValid=1; } } else { - ss << QString().sprintf("%3.6g",plotData2->yDataHistory->last()); + ss << QString().sprintf("%3.10g",plotData2->yData->last()); m_csvLoggingDataValid=1; } }