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

 
 

bug #52709: gpsmon cooked RMC broken

Submitter:  Gary E. Miller <garyemiller>
Submitted:  Thu 21 Dec 2017 01:29:13 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 01 Jun 2019 01:20:42 AM UTC, comment #2: 

Closed since no reports on current version, or in 17 mmonhts.

Gary E. Miller <garyemiller>
Group administrator
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>
Group 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>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-06-01 garyemiller Open/ClosedOpen Closed
    2017-12-21 garyemiller Attached File- Added wrong_coordinates.png, #42692

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code