GPS Ultimate Breakout Board Position Wrong

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Alumen
 
Posts: 3
Joined: Tue Aug 26, 2014 5:30 pm

GPS Ultimate Breakout Board Position Wrong

Post by Alumen »

So I recently purchased a GPS ultimate Breakout Board with USB to TTYL adapter for my raspberry pi. After getting a fix and grabbing data from the GPS and plotting it, it seems that the position that the GPS is giving me is consistently off by about 0.2 miles north. It is tracking my distance I moved and direction perfectly fine however it is giving me a position 0.2 miles north of where I actually am. I have plotted my position using Google maps, google earth, and Apple maps and they all do they same thing. It is VERY important for my project that I have accurate positional information as I will lose my rover and pi if I do not have a correct location.
Does anyone know what to do about this issue??

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: GPS Ultimate Breakout Board Position Wrong

Post by Franklin97355 »

Have you looked at the raw data being sent from the GPS (echo.pde) ? What code are you using to get the data?

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: GPS Ultimate Breakout Board Position Wrong

Post by adafruit_support_mike »

You're probably treating the GPS output as a decimal value.

It isn't.

The GPS module reports position in degrees, minutes, and decimal fractions of a minute. The two digits to the left of the decimal point only go up to 59.

The format for latitude is DDMM.MMMM
The format for longitude is DDDMM.MMMM

There's a note about it on this page of the GPS tutorial:
https://learn.adafruit.com/adafruit-ult ... ter-wiring

User avatar
Alumen
 
Posts: 3
Joined: Tue Aug 26, 2014 5:30 pm

Re: GPS Ultimate Breakout Board Position Wrong

Post by Alumen »

I a missing the GPGGA string, and no I wrote a parser to convert it to degrees minutes and seconds.
I have treated the device as a serial device and wrote code using the python library pyserial to grab data and parse the GPGGA lines. It is just weird that it can track my position and movement perfectly but it is always 0.2 miles off.

User avatar
Alumen
 
Posts: 3
Joined: Tue Aug 26, 2014 5:30 pm

Re: GPS Ultimate Breakout Board Position Wrong

Post by Alumen »

Welp, I solved the issue. It was indeed an error in the way I was parsing the data. It works fine now. Thanks for the help!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”