gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] gpsmon wrong Cooked TPV coordinates


From: Gary E. Miller
Subject: Re: [gpsd-users] gpsmon wrong Cooked TPV coordinates
Date: Tue, 19 Dec 2017 16:36:53 -0800

Yo Fabián!

On Tue, 19 Dec 2017 20:53:53 -0300
Fabián Inostroza <address@hidden> wrote:

> I had a look at gpsdclient.c, at line 75
> 
> >     dsec = (int)(fdsec * 10000.0);
> >     (void)snprintf(str, sizeof(str), "%3d %02d' %02d.%05d\"", deg,
> > min, sec,
> >            dsec);
> >  
> 
> in gpsd-3.16 fdsec was multiplied by 1000.0 and the format specifier
> for dsec was "%03d", so there is a missing zero at line 75,
> it should multiply fdsec by 100000.0, this fixed the leading zero but
> the labels still overlap.

Well spotted.  Thanks!

Looks like I broke it in commit d47077f3f089dfb90929c7a90d1ed39ab8e94098
on Mar 28 2016.

I can't just revert it, because that was an improvement to cgps.  But it
broke gpsmon.  My first approach will be to fix gpsmon to take advantage
of the improvement too.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin

Attachment: pgpr44bzCUdaH.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]