bugGPSD - Bugs: bug #52709, gpsmon cooked RMC broken

 
 

bug #52709: gpsmon cooked RMC broken

Submitted by:  Gary E. Miller <garyemiller>
Submitted on:  Thu 21 Dec 2017 01:29:13 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 21 Dec 2017 01:35:19 AM UTC, comment #1:

The original submitter said:

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.

Gary E. Miller <garyemiller>
Project Administrator
Thu 21 Dec 2017 01:29:13 AM UTC, original submission:

commit d47077f3f089dfb90929c7a90d1ed39ab8e94098 added another decimal place of accuracy to Lat/Lon. But it broke gpsmon.

In the attached screen shot, on the top line, the Lat is 3702.01388, Lon is 7308.01357.

But look below at both the RMC and GGA sentence displays, the Lat/Lon is 3702.1388, 7308.1357. Notice no zeros just after the decimal point.

This seems to affect NMEA devices, not other binary GPS devices.

Gary E. Miller <garyemiller>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by garyemiller (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 Dec 2017 01:29:13 AM UTCgaryemillerAttached File-=>Added wrong_coordinates.png, #42692

    Back to the top


    Powered by Savane 3.1-cleanup1