login

Author Topic: gps positioning  (Read 2500 times)

0 Members and 1 Guest are viewing this topic.

ben3561

gps positioning
« on: June 06, 2012, 08:06:46 PM »
Hi all!
I am using NMEA libary with arduino 1.0 and it is working fine!
Although, when I want to get datas from the module, such as gps.gprmc_latitude() or gps.gprmc_longitude(), I didn't get enough accuracy (I got numbers like 48.26,20.11 ...)
How can I improve the accuracy at least for town-level positioning, if you know what I mean.

ben3561

Re: gps positioning
« Reply #1 on: June 10, 2012, 06:07:07 PM »
I got it, the problem was the Serial.println command, generally printing float numbers via serial has only 2 decimals accuracy. Using Serial.println(gps.gprmc.longitude(),6) command solved my problem.

barragan

Re: gps positioning
« Reply #2 on: June 21, 2012, 12:35:13 PM »
great :)

ben3561

Re: gps positioning
« Reply #3 on: August 06, 2012, 06:27:00 AM »
This is just a great libary at all! However I needid altitude so I implent GPGGA sentence decoding and it is just working fine! Thank you for your huge work with it