From e916c6dc9a3363b61180b57ea5ed44788b1c2484 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 1 Jul 2018 13:34:40 +0200 Subject: [PATCH] fixed GPS coords precision in telemetry simulator when loaded from CSV log --- companion/src/simulation/telemetrysimu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/simulation/telemetrysimu.cpp b/companion/src/simulation/telemetrysimu.cpp index 2d5d8f7a4..0c6294d9f 100644 --- a/companion/src/simulation/telemetrysimu.cpp +++ b/companion/src/simulation/telemetrysimu.cpp @@ -912,7 +912,7 @@ QString TelemetrySimulator::LogPlaybackController::convertGPS(QString input) lon = convertDegMin(lonLat[0]); lat = convertDegMin(lonLat[1]); } - return QString::number(lat) + ", " + QString::number(lon); + return QString::number(lat, 'f', 6) + ", " + QString::number(lon, 'f', 6); } void TelemetrySimulator::LogPlaybackController::updatePositionLabel(int32_t percentage) -- 2.11.4.GIT