Merge pull request #11211 from TonyBlit/fix_gps_motion
wrong variable for heading
This commit is contained in:
commit
d593f08eff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue