wrong variable for heading

This commit is contained in:
Tony Cabello 2022-01-01 10:00:12 +01:00
parent 3d9b7cf490
commit a511eef8aa
1 changed files with 1 additions and 1 deletions

View File

@ -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