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

Submitted by:  SS <ss23>
Submitted on:  Wed 10 Dec 2014 06:38:12 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Eric S. Raymond <esr>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by esr (Posted a comment)
  • -unavailable- added by ss23 (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):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 22 Feb 2015 05:03:59 PM UTCesrOpen/ClosedOpen=>Closed
    Sat 24 Jan 2015 01:18:47 PM UTCesrStatusNone=>Fixed
      Assigned toNone=>esr
    Wed 10 Dec 2014 06:38:12 AM UTCss23Attached File-=>Added cgps.patch, #32630

    Back to the top


    Powered by Savane 3.1-cleanup1