[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] ✘NMEA_MAX
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] ✘NMEA_MAX |
Date: |
Mon, 28 Mar 2016 20:43:33 -0700 |
Yo Eric!
On Mon, 28 Mar 2016 21:06:38 -0400
"Eric S. Raymond" <address@hidden> wrote:
> > And in another twist. cm accuracy mean lat/lon use 7 digits after
> > the deciaml point, not 6. I'll dive in to find where that is
> > getting truncated. With luck it will not break too many
> > regressions...
>
> Uh oh. This'll be interesting.
Actually, not too bad yet. The JSON has been using 9 digits past the
decimal point and that is more than we need. Looks like most of the
precision loss was confined to the output formatting. I think all that
code has been consolidated into deg_to_str();
From this wikepedia article:
https://en.wikipedia.org/wiki/Decimal_degrees
At the equator 0.0000001 is 11.132 mm, 7 digits past the decimal
point is about the needed cm precision.
I infer for cm level precision the output formats should be:
d = DD.ddddddd
m = DD MM.mmmmmm'
s = DD MM' SS.sssss"
I made a bad mistake, and 'scons check' did not catch it. So the test
converage needs to be expanded a bit...
I think what I just pushed is right, but I would appreciate a few folks
double checking my math, and checking for stray side effects.
And all the Skytraq doc reminds me that gpsd needs its own doc depository.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
pgp8r_7u6wfd3.pgp
Description: OpenPGP digital signature
- [gpsd-dev] ✘NMEA_MAX, Gary E. Miller, 2016/03/28
- Re: [gpsd-dev] ✘NMEA_MAX, Chris Kuethe, 2016/03/28
- Re: [gpsd-dev] ✘NMEA_MAX, Gary E. Miller, 2016/03/28
- Re: [gpsd-dev] ✘NMEA_MAX, Eric S. Raymond, 2016/03/28
- Re: [gpsd-dev] ✘NMEA_MAX, Gary E. Miller, 2016/03/28
- Re: [gpsd-dev] ✘NMEA_MAX, Eric S. Raymond, 2016/03/28
- Re: [gpsd-dev] ✘NMEA_MAX, Gary E. Miller, 2016/03/28
- Re: [gpsd-dev] ✘NMEA_MAX, Eric S. Raymond, 2016/03/28
- Re: [gpsd-dev] ✘NMEA_MAX, Gary E. Miller, 2016/03/28
- Re: [gpsd-dev] ✘NMEA_MAX,
Gary E. Miller <=
- Re: [gpsd-dev] ✘NMEA_MAX, Eric S. Raymond, 2016/03/28
- Re: [gpsd-dev] ✘NMEA_MAX, Gary E. Miller, 2016/03/29
Re: [gpsd-dev] ✘NMEA_MAX, Sanjeev Gupta, 2016/03/28