summaryrefslogtreecommitdiff
path: root/gpsprof
Commit message (Collapse)AuthorAgeFilesLines
* Fixes whitespace error in gpsprof.Fred Wright2016-12-261-1/+1
| | | | | | | | | In general, tabs are a bad idea in Python, and Python is getting pickier about mixing tabs and spaces. This instance caused Python 3.6 to barf. TESTED: Now works with Python 3.6.
* Now that EarthDistance() works well, use it in gpsprofGary E. Miller2016-07-271-3/+3
|
* Make gpsplot use the EarthDistanceSmall() from gps/misc.pyGary E. Miller2016-07-261-3/+3
|
* Move EarthDistanceSmall() into gps/misc.pyGary E. Miller2016-07-251-16/+0
| | | | | Other programs can use it. The accuracy looks good, not great, but WAY better than EarthDistance() and small angles.
* Add EarthDistanceSmallGary E. Miller2016-07-251-3/+19
| | | | | | | | At small angles EarthDistance blows up. EarthDistanceSmall uses an "Equirectangular Projection" to improve accuracy at small angles. Next up is to add ellipsoid corrction for lattitude.
* Another gpsprof %.7 to %.9Gary E. Miller2016-07-221-1/+1
| | | | We need to represent numbers like: 121.314064921 accurately.
* gpsproof can now show centi-meter resolutionGary E. Miller2016-07-211-8/+8
| | | | Basically %.7f becomes %.9f. Still in testing.
* Missing NL in gpsprof gnuplot output.Gary E. Miller2016-07-211-1/+1
|
* Stop gpsprof xtic lables from overlapping.Gary E. Miller2016-07-131-0/+1
|
* Set gpsprof output size to 800,600Gary E. Miller2016-07-131-1/+1
| | | | When using '-T png' the plots were too small.
* gpsprof: fix 'instrumented'plotNuno Gonçalves2016-06-141-8/+7
| | | | | | | * use requires_time flag * do not use dropped TAG field. Signed-off-by: Gary E. Miller <gem@rellim.com>
* Plot to %.3f meters.Gary E. Miller2016-04-121-13/+16
| | | | This is in preparation for cm-level accuracy.
* Fixes Python programs to use new-style classes.Fred Wright2016-04-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Although this isn't strictly a Python 3 requirement, using the new-style class definition syntax improves consistency between Python 2 and Python 3. Old-style classes have been deprecated since Python 2.2, but many such definitions linger on. Python 3 eliminates old-style classes, but instead of complaining about old-style definitions, it simply unconditionally and silently makes all classes new-style. The only incompatible differences are quite subtle and rarely matter in practice, but things are more consistent across versions if the new-style definitions are used. Also, the preferred method for subclasses to invoke parent init methods is via the super() construct, which is only available with new-style classes. Using super() is especially useful with multiple inheritance, which it handles automatically (provided that the init methods have compatible signatures). TESTED: Using an SConstruct patched to run the build helpers with the target Python, ran "scons build-all check ", as well as gpsprof and xgps, with all six supported Python versions (except 2.6 for xgps).
* Makes "future imports" and Python version comments consistent.Fred Wright2016-04-101-2/+3
| | | | | | | | | | | | | | | | | | | | This makes the "future import" statements consistently specify absolute_import, print_function, and division, for maximum consistency between Python 2 and Python 3. Although absolute_import is probably a don't care for top-level programs, if unit tests were ever implemented for the programs they would be imported as modules, making the module import behavior relevant. Note that previous Python 3 fixes are a prerequisite for this change. Also makes the "polyglot comment" consistent across sources. TESTED: Using a version of SConstruct patched to use the target Python for build helpers, ran "scons build-all check valgrind-audit www/hardware.html" with all six supported Python versions. Also ran gegps, gpscat, gpsprof, xgps, and xgpsspeed with both Python 2 and Python 3.
* Restore language about 2.6 portability, clean up Python imports.Eric S. Raymond2016-03-271-0/+2
|
* Fixes gpsprof to work with Python 2.6.Fred Wright2016-03-271-2/+2
| | | | | | | | | | | | The dict-without-values construct as a set initializer doesn't work in Python 2.6, though the usual set constructor does. This is not a recent bug. TESTED: Verified that gpsprof now works in Python 2.6, 2.7, 3.3, 3.4, and 3.5, at least in the TPV mode. Unable to test the PPS cases since gpsd doesn't recognize my PPS source (but the syntax is identical).
* Forward-port gps/ Python client code to run polyglot under Python 2 or 3.Eric S. Raymond2016-03-221-5/+6
| | | | | | | Verified by testing gpsprof under both versions. leapecond.py is also OK. Not yet polyglot: gegps, gpscap.py, gpscat, gpsfake, jsongen.py, maskaudit.py, test_maidenhead.py, valgrind_audit.py, xgps, xgpsspeed.
* Forward-port Python utilities to run polyglot under either Python 2 or 3.Eric S. Raymond2016-03-221-3/+3
| | | | | | For the moment most shebang lines still say 'python2' rather than just 'python'. This is because the client code in gps/ hasn't been touched yet; the internal imports break under Python 3 and that needs to be fixed.
* [pep8] autopep8 whitespace cleanupJon Schlueter2016-02-091-0/+2
| | | | | large scale autopep8 cleanup of several pep8 whitespace warnings
* Fix Append to string of serial parametersNuno Gonçalves2015-08-291-1/+1
| | | | | | Before it didn't print any serial parameters. Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
* In gpsprof, usefully ID a plot for non-serial devices.Eric S. Raymond2015-08-231-4/+9
|
* Change Python hashbang lines to invoke 'python2'Eric S. Raymond2015-07-191-1/+1
| | | | | | We've learned that Ubuntu 15.10 will have python3 as default. The ugly transition gas befun; our only recourse is to hape that all our deployment targets have 'pyton2' do the right thing. Works on 14.10.
* Clarify units for y axis for the tile delta plotSanjeev Gupta2015-04-051-1/+1
|
* Comment typo fix.Eric S. Raymond2015-04-051-1/+1
|
* gpsprof: pylint cleanup. Live-tested.Eric S. Raymond2015-02-221-10/+10
|
* pep8 whitespace cleanup in gpsprofJon Schlueter2015-02-131-28/+72
|
* More splint and pylint cleanups.Eric S. Raymond2013-11-151-10/+10
| | | | All regression tests pass with pps=tru or pps=false, PPS is live.
* Fix up gpsprof's dime difference calculation and add a mtching C macro.Eric S. Raymond2013-11-031-1/+1
| | | | All regression tests pass. PPS is live.
* gpsprof can now make plots of time deta from PPS.Eric S. Raymond2013-11-021-1/+7
| | | | I think it is revealing problems in the PPS instrumentation...
* Generic replotting code.Eric S. Raymond2013-11-021-1/+1
|
* gpsprof can collect timeplot data, but not yet plot it.Eric S. Raymond2013-11-011-3/+30
| | | | Not yet documented, either.
* Correct an error message.Eric S. Raymond2013-10-231-1/+1
|
* Version bump, pychecker fixes and installation-procedure tweaks.Eric S. Raymond2011-10-251-1/+1
|
* In gpsprof, added [server[:port[:device]]] options.Michael Tatarinov2011-10-121-13/+31
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Add -r option to gpsplot.Eric S. Raymond2011-10-101-14/+33
|
* Implement SIGUSR1 behavior in gpspprof, and change the way samples are counted.Eric S. Raymond2011-10-081-3/+8
|
* Clean up some variable names.Eric S. Raymond2011-10-071-4/+4
|
* Small improvement in profile logging.Eric S. Raymond2011-10-061-2/+3
|
* New -f option of gpspsprof to save JSON input.Eric S. Raymond2011-10-061-5/+15
|
* Attempted fix for space plot in gpsprof.Eric S. Raymond2011-10-061-1/+7
|
* In gpsprof, repair instrumented profile plot after the sat column was added.Michael Tatarinov2011-10-051-1/+1
| | | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Emit a count of used satellites in the extra timing attributes.Eric S. Raymond2011-10-051-3/+4
| | | | | We'll use this to check Gary's Miller's suspicion that time to compute a fix varies significantly with the number of sats in the skyview.
* GPSes give us at most 1ms of time precision. Don't plot as if we have more.Eric S. Raymond2011-10-041-2/+2
|
* Fix an error in the whole-cycle visualizations.Eric S. Raymond2011-09-301-1/+1
|
* Avoid failure on very long gpsprof runs.Eric S. Raymond2011-09-291-2/+2
|
* Fix bug in data() method for spaceplotting.Eric S. Raymond2011-09-291-9/+8
|
* Add whole-cycle profiling to show vendor binary orotocols don't cut latency.Eric S. Raymond2011-09-241-4/+4
|
* Change the semantics of gpsprof -d so we can both dump and plot in one run.Eric S. Raymond2011-09-241-14/+18
|
* Refactor gpsprof to put most plotting machinery in a common base class.Eric S. Raymond2011-09-241-149/+142
|
* Improved captioning in the plots.Eric S. Raymond2011-09-231-22/+28
|