mikalhart / TinyGPS

A compact Arduino NMEA (GPS) parsing library
http://arduiniana.org
390 stars 257 forks source link

GPS data is not changing #15

Open pesengineeringclub opened 6 years ago

pesengineeringclub commented 6 years ago

Hi First of all, thanks for the library. when we test it, the GPS data is not changing even we moving far away. Do you have any idea about the issue? thanks.

we use Seeeduino LoRaWAN W/GPS https://www.seeedstudio.com/Seeeduino-LoRaWAN-W%2FGPS-p-2781.html

philfleck commented 4 years ago

+1

RafaelReyesCarmona commented 2 years ago

TinyGPS library works getting information from GPRMC and GPGGA sentences. It extract time, date, latitude, longitude, speed and course information from GPRMC sentence. And altitude, time, latitude, longitude, numbers of satellites in use and hdop information from GPGGA sentence.

The function bool TinyGPS::encode(char c) call to bool TinyGPS::term_complete() and return true when GPRMC or GPGGA sentence is decoded correctly. When use a loop like the picture, data could not update the information, it is mandatory and refresh function like above.

code_GPS_loop1

code_GPS_loop2

More info and how to correct it: https://github.com/RafaelReyesCarmona/TinyTrackGPS#tinygps-library