mainGPSD - Support: sr #109470, gpsprof -r cannot replay logfiles

 
 

sr #109470: gpsprof -r cannot replay logfiles

Submitter:  None
Submitted:  Fri 02 Mar 2018 11:16:32 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  5 - Blocker Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 02 Mar 2018 11:20:25 PM UTC, comment #1: 

missed a bit in the original submission:

$ gpsprof -l foo.log > foo.gpt
$ gpsprof -r < foo.log

(backtrace)


Anonymous
Fri 02 Mar 2018 11:16:32 PM UTC, original submission:  

Current (3.17) gpsprof is broken:

$  gpsprof > foo.gpt
   correctly generates a gnuplot file with 100 samples.


$ gpsprof -l foo.log > foo.gpt
gpsprof: replotting......(0.01 sec) done.
Traceback (most recent call last):
  File "/usr/bin/gpsprof", line 529, in <module>
    plot.postprocess()
  File "/usr/bin/gpsprof", line 206, in postprocess
    self.centroid = (sum([x[0] for x in self.fixes]) / len(self.fixes),
ZeroDivisionError: division by zero

rewinding to 3.16 has a different, but also fatal breakage, in that all positions read from the logfile are recorded as 0 or nan:

plot "-" using 1:2 with points ls 3 title "101 GPS fixes" , cx(t, cep),cy(t, cep) ls 1 title "CEP (50%) = 0.000000 meters", cx(t, cep95),cy(t, cep95) title "CEP (95%) = 0.000000 meters", cx(t, cep99),cy(t, cep99) title "CEP (99%) = 0.0000
00 meters"
# Position uncertainty, 2018-03-02T23:14:16, u-blox, 9600 8N1, cycle 1s
0.000000        0.000000        0.000000        0.000000        nan
0.000000        0.000000        0.000000        0.000000        nan
0.000000        0.000000        0.000000        0.000000        nan
0.000000        0.000000        0.000000        0.000000        nan
0.000000        0.000000        0.000000        0.000000        nan
0


The total effect is that no offline plots can be generated.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code