adafruit / Adafruit_GPS

An interrupt-based GPS Arduino library for no-parsing-required use
Other
469 stars 318 forks source link

library is doing a terrible job parsing the data, it can't work stable at more of 1hz sampling rate even at a 10hz update rate of the gps, i am using an arduino mega and ide version 1.8.12 #119

Closed jorgeneo560 closed 4 years ago

jorgeneo560 commented 4 years ago

Thank you for opening an issue on an Adafruit Arduino library repository. To improve the speed of resolution please review the following guidelines and common troubleshooting steps below before creating the issue:

If you're sure this issue is a defect in the code and checked the steps above please fill in the following fields to provide enough troubleshooting information. You may delete the guideline and text above to just leave the following details:

ladyada commented 4 years ago

please edit and complete the template

jorgeneo560 commented 4 years ago

the library is doing a bad job reading the serial buffer, it can't work at any other rate that is not in the example, i am using a arduino mega 2560 and compiler version 1.8.12

sketch_mar16b.zip

drak7 commented 4 years ago

Can you be more specific about what's happening? A few things can cause issues when you want to do fast updates.

In your sketch you're requesting the RMC and GGA sentences along with antenna info at 10Hz. The GPS serial is at 9600bps and that amount of data is about 160 bytes, so you're requesting 1600 bytes per second but can only send 1200. If you reduce the amount of data to just the RMC sentence (use PMTK_SET_NMEA_OUTPUT_RMCONLY) you'll get better results there. You can also increase the GPS serial speed, check the PMTK_SET_BAUD commands.

ladyada commented 4 years ago

closing for lack of response