bugGPSD - Bugs: bug #43789, Dip and mag_x are not available in...

 
 

bug #43789: Dip and mag_x are not available in gps_data_t

Submitter:  SS <ss23>
Submitted:  Wed 10 Dec 2014 06:38:12 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  esr
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 25 Jan 2015 02:00:14 PM UTC, comment #2: 

Thanks, that's all fixed now (with yesterday commit)!

Unfortunately, I don't have any representative PTNTHTM data.

I used /test/daemon/tnt-revolution.log from gpsd.git for testing.

And now I'm writing my specific simple NMEA generator that can generate PTNTHTM-sequences with some fields I need.

SS <ss23>
Sat 24 Jan 2015 01:18:47 PM UTC, comment #1: 

The repository head version should fix this.

Please attack a sample file aof representative PTNTHTM data so I can write a regression test for this bug.

Eric S. Raymond <esr>
Group administrator
Wed 10 Dec 2014 06:38:12 AM UTC, original submission:  

I have source of PTNTHTM data. Roll and pitch always worked ok.
But now I need dip and mag_x, and I get zeros or nan instead of sensors values.
I have this problem with all versions of gpsd that I tried: 3.6, 3.9 and 3.11.

How to reproduce a problem:

1) Download a new version of gpsd: gpsd-3.11.tar.gz, unpack it
2) Patch cgps.c to see roll and dip (my patch is in attachment)
3) Build gpsd with scons prefix=/home/USER/gpsd-3.11/PREFIX
4) scons install
5) sudo ./PREFIX/sbin/gpsd -D2 -N -F /var/run/gpsd.sock udp://127.0.0.1:4321
7) Give gpsd some PTNTHTM data:
while read p; do echo Sending $p ; echo $p | nc -u -w1 127.0.0.1 4321 ; done < ./test/daemon/tnt-revolution.log

6) Now, the most interesting. gpspipe shows right mag_x and dip values:
./gpspipe -w
{"class":"ATT","tag":"PTNTHTM","device":"udp://127.0.0.1:4321","heading":14091.00,
"mag_st":"N","pitch":171.00,"pitch_st":"N","roll":-43.00,"roll_st":"N","dip":13599.000,"mag_x":2454.000}

7) But cgps does not show dip (roll is ok):
./cgps
│    Roll:       -39.000000                 ││                                 │
│    Dip:        0.000000                   ││                                 │

And my program (I use libgps) does not show dip and mag_x, but shows roll and pitch.
Looks like a problem with json parser on client side?

SS <ss23>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #32630:  cgps.patch added by ss23 (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by esr (Posted a comment)
  • -email is unavailable- added by ss23 (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-22 esr Open/ClosedOpen Closed
    2015-01-24 esr StatusNone Fixed
        Assigned toNone esr
    2014-12-10 ss23 Attached File- Added cgps.patch, #32630

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code