summaryrefslogtreecommitdiff
path: root/xgps
Commit message (Collapse)AuthorAgeFilesLines
* xgps: Add ECEF data. general cleanup.Gary E. Miller2018-06-271-38/+177
| | | | Thanks to Virgin Orbit for their support to improve xgps.
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* xgps: Add display of ECEF data.Gary E. Miller2018-02-141-2/+20
|
* Revert "Add clock_gettime in contrib."Gary E. Miller2018-01-251-90/+18
| | | | | | This reverts commit fb67eea6594bf9214e179ecc0c273e0fecb5bfda. Whoops. I accidently pushed some work in progress with clock_gettime.
* Add clock_gettime in contrib.Gary E. Miller2018-01-221-18/+90
| | | | This program measures the latency of the clock_gettime() system call.
* xgps: Print error message if Gtk3 not installed.Gary E. Miller2017-11-021-1/+7
| | | | xgps was just crashing if Gtk2 is installed.
* xgps*: delete-event was mis-spelled as delete_eventGary E. Miller2017-07-271-1/+1
|
* xgps: fix pylint complaint about initializer.Gary E. Miller2017-07-271-1/+2
| | | | The old call to __init__ did look odd...
* xgps: tweak window titleGary E. Miller2017-07-271-2/+4
|
* xgps: fix pylint complaints about changing variable typesGary E. Miller2017-07-261-3/+3
|
* Fixes some pylint issues.Fred Wright2017-07-141-15/+18
| | | | | | | | | | | This doesn't fix all complaints by pylint, but significantly reduces their number. Ditto for pep8 complaints. Also makes a couple of related cosmetic edits. TESTED: Ran "scons build-all check" with no errors. Both "pylint" and "pep8" targets report fewer issues.
* xgps: pep8 fixesGary E. Miller2017-07-011-28/+61
|
* Increases MAXCHANNELS in xgps.Fred Wright2017-01-191-3/+7
| | | | | | | | | | | | | | | The current MAXCHANNELS value in xgps, obtained from gps.py, has been observed to be inadequate. The value in gps.py is an outdated value that was never updated when the C value was changed, but using the new value of 72 in xgps would result in a huge window. This change defines a local MAXCHANNELS in xgps, which does not need to match the value in gps.py. It's currently set to 28, based on having observed a case with 25 visible satellites. It would be better to make it dynamic, but that would require reworking some of the Gtk setup code. TESTED: Ran against a receiver reporting 25 visible satellites, seeing all satellites reported and no console error messages.
* Tweaks xgps and xgpsspeed UIs.Fred Wright2016-12-181-6/+9
| | | | | | | | | | | | | | | | | | | | This makes a couple of minor improvements to the xgps[speed] UIs: 1) If a target (host/port/device) is specified, it is included in the window title. This is especially useful when running multiple instances pointing at different targets. 2) Interprets blank host and/or port fields in host:port:device notation as the default values. This allows, e.g., specifying a device without having to explicitly specify the default host/port. Also replaces all hardcoded '2947' instances with gps.GPSD_PORT. TESTED: Tried various arguments, including using the option forms in xgpsspeed. Also tried a long string of leading zeroes on the port number to verify that a ridiculously long target string is taken in stride.
* Adds skyview rotation support to xgps and xgpsspeed.Fred Wright2016-09-221-14/+23
| | | | | | | | | | | | | | This adds an optional argument to rotate the skyview display, making it possible to orient it correctly based on the direction one is actually facing. The specified heading is positioned at the top. This edit does not update contrib/webgps.py, which is somewhat more complicated to fix due to the Javascript involvement. TESTED: Ran both programs with and without the -r or --rotate option. Signed-off-by: Gary E. Miller <gem@rellim.com>
* Excludes unknown-position sats from skyview displays.Fred Wright2016-09-221-0/+2
| | | | | | | | | | | | | | | In some cases, the elevation and azimuth information are missing (i.e., reported as 0) for some satellites. E.g., the Navika-100 receiver fails to report positions for SBAS satellites. This change avoids showing such satellites at the "north point" of the display. They are *not* excluded from the textual list. TESTED: Ran xgps, xgpsspeed, and webgps.py against data from a Navika-100 receiver, and verified that the SBAS satellites are no longer inappropriately shown at the top. Signed-off-by: Gary E. Miller <gem@rellim.com>
* Fixes Python programs to use new-style classes.Fred Wright2016-04-111-5/+5
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixes integer division for Python 3.Fred Wright2016-04-101-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | This changes a few integer division cases to use the '//' floored-division operator, matching the normal Python 2 (C-like) '/' behavior, for compatibility with the switch to the "mathematical" divison operator in Python 3 (and in Python 2 with the "future division" import). This was more about keeping the behavior the same than determining whether floored division is actually the proper choice. One place where floored division is definitely wanted is in the GPS week calculations in leapsecond.py, which are now OK for Python 3, though currently that module is only used by SConstruct, and hence not with Python 3. Two other minor fixes: 1) The GPS base date is corrected in the comment in leapsecond.py. 2) The fit_to_grid() function in xgps now consistently returns floats, rather than returning either ints or floats depending on the line width. TESTED: Ran "scons build-all check" with all 6 supported Python versions. Also ran xgps and xgpsspeed with all but 2.6.
* Removes unnecessary Unicode literal from xgps.Fred Wright2016-04-091-5/+5
| | | | | | | | | | | | | | | | | Since the radio-button labels in the add_ui_from_string() text are just internal labels not visible to the user, there's no reason that they need to rely on non-USASCII characters. With that text confined to 7-bit ASCII, there's no need to use Unicode for the literal, which in turn eliminates the last incompatibility with Python 3.2. Note that this isn't the only case where the internal labels mismatch the user-visible text (the other ones involve embedded blanks). The fact that Gtk3 assumes 'ascii' for the encoding in this case may actually be a bug. TESTED: Ran xgps with Python 2.7 and 3.2-3.5 (using appropriately built extensions).
* Fixes Gtk warnings related to xgps/xgpsspeed error boxes.Fred Wright2016-04-091-2/+4
| | | | | | | | | | | | | | | The Gtk MessageDialog function gives a warning if no parent window is specified. Since the main window already exists in those cases, it's simply a matter of passing the extra argument to MessageDialog. This has the side effect of changing the position of the dialog box, such that it's centered over the parent window rather than being near its upper left-hand corner. In the xgps case, it appears to be centered over whichever subwindow was most recently updated. TESTED: Verified that both the gpsd not running and gpsd stopped running cases no longer produce warning messages on the terminal.
* Fixes xgps for Python 3.Fred Wright2016-04-091-1/+1
| | | | | | | | | This replaces the obsolete 'cmp' keyword for 'sorted' with the still-available (and more efficient) 'key' keyword. TESTED: Ran xgps with Python 2.7, 3.3, 3.4, and 3.5 (with appropriate builds).
* Fix the case where TPV has no field status.Fred Wright2016-04-081-1/+2
| | | | | | TPV has field status only when STATUS_DGPS Signed-off-by: Gary E. Miller <gem@rellim.com>
* Add "status" to TPV for DGPS notificationGary E. Miller2016-04-061-0/+2
| | | | | Also update the affected regression files. gpsd had been throwing away the DGPS status.
* Don't let NoiseView widget be confused by Python 3 float division.Eric S. Raymond2016-03-291-1/+1
|
* xgps/xgpsspeed port cleanup: deal with Python 3 division semantics.Eric S. Raymond2016-03-251-3/+4
|
* xgps and xgpsspeed are fully polyglot...Eric S. Raymond2016-03-251-1/+1
| | | | ...change their shebang lines to plain Python.
* Remove unneeded code.Eric S. Raymond2016-03-241-4/+2
|
* Port xgps to GTK 3.0 using gi bindings.Eric S. Raymond2016-03-241-62/+63
| | | | | | | Removes a dependency on the deprecated gobject/pygtk bindings. Note: this leaves build.txt out of date. To be fixed when we deal with xgpsspeed.
* Clear out a remnant of the old pre-JSON protocol in the Python code.Eric S. Raymond2016-03-221-1/+1
| | | | Also, set xgps back to requiring python2 because of the gobject problem.
* pylint cleanup.Eric S. Raymond2016-03-221-1/+1
|
* Forward-port Python utilities to run polyglot under either Python 2 or 3.Eric S. Raymond2016-03-221-3/+4
| | | | | | 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
* 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.
* Correct buggy detection of SBAS satellites in the Python client code.Eric S. Raymond2015-04-071-2/+1
| | | | | Before this fix, satellites from the Beidou or QZNSS wuld have been incirrectly displayed with the SBAS shape.
* Update PRNMAX to include GLONASS in xgps et alSanjeev Gupta2015-04-071-1/+1
|
* Update PRNMAX to includeSanjeev Gupta2015-04-071-1/+1
|
* pep8 cleanup of whitespace in xgpsJon Schlueter2015-03-021-2/+0
|
* pep8 whitespace cleanup in xgpsJon Schlueter2015-02-131-61/+76
| | | | | | | | | | | spaces around operators no extra spaces around parameter binding assignments spaces around = for assignment normalized whitespace between functions and classes indentation normalization two spaces before a comment # and one space after it Should be no actual code changes just stylistic cleanup for readablity
* Add missing import getopt package for xgpsJon Schlueter2015-02-131-0/+1
|
* split out and sort imports in xgps for pep8 cleanupJon Schlueter2015-02-131-3/+8
|
* pylint validation pass. All regresio tests pass, xgps runs live.Eric S. Raymond2014-08-231-12/+13
|
* Partial pylint cleanup. All regression tests pass, xgps works.Eric S. Raymond2013-11-151-9/+9
|
* Fix up xgps to use _text names.Eric S. Raymond2013-10-011-3/+3
|
* Savannah bug #36691: xgps shows wrong units for eps, epc, epd.Michael Tatarinov2012-06-201-3/+17
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* More Python sanity checking.Eric S. Raymond2011-10-281-12/+13
|
* Added selection step of grid in xgps.Michael Tatarinov2011-10-031-8/+28
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Partial pychecker cleanup.Eric S. Raymond2011-08-261-7/+7
|
* pychecker cleanup.Eric S. Raymond2011-08-261-2/+2
|
* Display GST noise statistics in xgps if they are available.Eric S. Raymond2011-03-301-18/+65
|