whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.2k stars 221 forks source link

GPS Position is off by about 1km #158

Closed mafrmt00 closed 5 years ago

mafrmt00 commented 6 years ago

When using the GPS Sensor, the position is off about 1.2km to the south. The position rarely changes, even the last digit ist very stable. When the receiver is moved indoors, the position goes to 0, also the satellite count.

When the NMEA Data of the GPS is dumped with the Terminal example and analyzed, the position is correct.

mafrmt00 commented 6 years ago

In Lua-RTOS-ESP32/components/nmea/nmea0183.c

Line 122:
seconds = (double)atoi(current) / (double)1000000;

Should be: seconds = (double)atoi(current) / (double)10000;

gmenier commented 6 years ago

Same problem here. There is indeed an offset (NEO-6M).

the0ne commented 5 years ago

@mafrmt00 can you create a PR for this?

adrianvielsack commented 5 years ago

277 should fix this, regardless of precision

the0ne commented 5 years ago

@adrianvielsack Thanks a lot! @jolivepetrus what do you think about #277?

the0ne commented 5 years ago

@adrianvielsack thanks for your fix - it has been accepted into Lua-RTOS! @jolivepetrus thanks for merging!