SlashDevin / NeoGPS

NMEA and ublox GPS parser for Arduino, configurable to use as few as 10 bytes of RAM
GNU General Public License v3.0
702 stars 195 forks source link

Losing satelites, but receiving still having speed & location #126

Open Fusseldieb opened 5 years ago

Fusseldieb commented 5 years ago

Hi, I'm using a Neo-6Mv2 with the NeoGPS library and am enjoying so far, but I'm facing a strange issue.

My plan is that every second the library gets all satelite strenghts and displays those.

The problem is that suddenly all satelite strenghts vanish and sat_count reports 0, but speed & location is still there and accurate. Even if I'm outside, after some time it decides to stop displaying those satelites.

The solution is to restart (only) the Arduino (which reinitializes the library) and then it works again.

The log looks like that:

image _Speed (km/h), satcount and all satelites in order, respectively (and two others which don't matter now)

After that it hardly recovers, why? Only restarting the Arduino solves it. Remember: It still has speed data (first column)!

Fusseldieb commented 5 years ago

Apparently I didn't wait for the all the messages to arrive to print, causing some of them to get dropped.

My ublox-6m has the GLL message at last (looking at the text log in u-center).

So I put in _NMEAGPScfg.h:

#define LAST_SENTENCE_IN_INTERVAL NMEAGPS::NMEA_GLL

and it seems that the issue has vanished.