Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more precise lat and lon #17

Open
frankipl opened this issue Jun 22, 2017 · 2 comments
Open

more precise lat and lon #17

frankipl opened this issue Jun 22, 2017 · 2 comments

Comments

@frankipl
Copy link

Hi,

First of all, thanks for your work. I have compiled static version and tried to use in my project, which is for tracking vehicles. After parsing nmea just degrees and minutes is not enough, It would be good to have double precision numbers like for lat 49.164512 and for lon 21.160322

Best Regards
Marek

@DoruLa
Copy link

DoruLa commented Sep 28, 2017

Check-out the nmath.h file. It has several methods to convert to required units. Also, if you display using "cout", be sure to set the precision using cout.precision(). I think for what you need, you may use "nmeaMathNdegToDegree".

@jacketizer
Copy link
Owner

Sorry for a very delayed answer. I will take a look at it when I have time. Mean while, maybe you could try the solution suggested by @DoruLa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants