From a511eef8aa97db337d1070489f75659a5efe5774 Mon Sep 17 00:00:00 2001 From: Tony Cabello <> Date: Sat, 1 Jan 2022 10:00:12 +0100 Subject: [PATCH] wrong variable for heading --- src/main/io/gps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/io/gps.c b/src/main/io/gps.c index 2a7ba8f3b..84022832a 100644 --- a/src/main/io/gps.c +++ b/src/main/io/gps.c @@ -1493,7 +1493,7 @@ static bool UBLOX_parse_gps(void) gpsSol.hdop = _buffer.pvt.pDOP; gpsSol.speed3d = (uint16_t) sqrtf(powf(_buffer.pvt.gSpeed / 10, 2.0f) + powf(_buffer.pvt.velD / 10, 2.0f)); gpsSol.groundSpeed = _buffer.pvt.gSpeed / 10; // cm/s - gpsSol.groundCourse = (uint16_t) (_buffer.pvt.headVeh / 10000); // Heading 2D deg * 100000 rescaled to deg * 10 + gpsSol.groundCourse = (uint16_t) (_buffer.pvt.headMot / 10000); // Heading 2D deg * 100000 rescaled to deg * 10 _new_speed = true; #ifdef USE_RTC_TIME //set clock, when gps time is available