Browse Source

Fixed lat/lon precision in logging.

QGC4.4
James Goppert 14 years ago
parent
commit
f82f758b07
  1. 4
      src/ui/linechart/LinechartWidget.cc

4
src/ui/linechart/LinechartWidget.cc

@ -310,7 +310,7 @@ void LinechartWidget::appendData(int uasId, QString curve, double value, quint64 @@ -310,7 +310,7 @@ void LinechartWidget::appendData(int uasId, QString curve, double value, quint64
qint64 time = usec - logStartTime;
if (time < 0) time = 0;
logFile->write(QString(QString::number(time) + "\t" + QString::number(uasId) + "\t" + curve + "\t" + QString::number(value) + "\n").toLatin1());
logFile->write(QString(QString::number(time) + "\t" + QString::number(uasId) + "\t" + curve + "\t" + QString::number(value,'g',10) + "\n").toLatin1());
logFile->flush();
}
}
@ -338,7 +338,7 @@ void LinechartWidget::appendData(int uasId, const QString& curve, const QString& @@ -338,7 +338,7 @@ void LinechartWidget::appendData(int uasId, const QString& curve, const QString&
qint64 time = usec - logStartTime;
if (time < 0) time = 0;
logFile->write(QString(QString::number(time) + "\t" + QString::number(uasId) + "\t" + curve + "\t" + QString::number(value) + "\n").toLatin1());
logFile->write(QString(QString::number(time) + "\t" + QString::number(uasId) + "\t" + curve + "\t" + QString::number(value,'g',10) + "\n").toLatin1());
logFile->flush();
}
}

Loading…
Cancel
Save