summaryrefslogtreecommitdiff
path: root/xgpsspeed
Commit message (Collapse)AuthorAgeFilesLines
* xgpsspeed: Fix --rotate option.Fred Wright2018-12-281-8/+12
| | | | | | | | | | The rotation was inappropriately being applied to the speed scale, while failing to apply it to the triangle pointer. This fixes both issues. TESTED: Ran against local real GPS, and a couple of logfiles with nonzero velocities, and observed reasonable displays.
* xgpsspeed: Add check for PYTHONPATHGary E. Miller2018-11-161-1/+8
|
* Update version to 3.19-dev. back to dev cycle.dev-3.19aGary E. Miller2018-10-191-1/+1
|
* Chnage version to 3.18.1release-3.18.1Gary E. Miller2018-10-191-1/+1
|
* Fixes typos in xgpsspeed messages.Fred Wright2018-10-091-2/+2
| | | | | | | | Two messages misspelled 'xgpsspeed'. Now fixed. TESTED: xgpsspeed -V now outputs correct name. Version check message not tested.
* 3.19!dev: Change revisions for 3.19~dev cycle.Gary E. Miller2018-10-021-1/+1
|
* Version bump to 3.18 for release.release-3.18Gary E. Miller2018-10-021-1/+1
|
* xgpsspeed: Add some missing docstrings.Gary E. Miller2018-10-011-0/+9
|
* xgpsspeed: Add version checks. Output warnings to stderr.Gary E. Miller2018-10-011-2/+19
|
* Python clients: Opps 3.18~dev, not 3.18-dev.Gary E. Miller2018-10-011-1/+1
| | | | A tilda, not a dash.
* xgpsspeed: tweak usage()Gary E. Miller2018-09-251-3/+1
|
* xgpsspeed: fix Gtk version check.Gary E. Miller2018-09-211-4/+3
|
* xgpsspeed: pep8 tweaks.Gary E. Miller2018-09-211-20/+22
|
* xgpsspeed: fix -V and --version options.Gary E. Miller2018-09-211-0/+10
|
* xgpsspeed: sort options.Gary E. Miller2018-09-211-28/+28
|
* add gps module version check to Python programsGary E. Miller2018-09-211-0/+6
|
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* Clean up C and Python code-checker warnings.Eric S. Raymond2017-09-061-4/+4
|
* xgpsspeed: fix pylint complaint about mismatched function overloads.Gary E. Miller2017-07-271-4/+4
| | | | | Best not to overload a function with a function that does not take the same arguments.
* xgps*: delete-event was mis-spelled as delete_eventGary E. Miller2017-07-271-1/+1
|
* xgpsspeed: fix pylint complaint about unsafe default.Gary E. Miller2017-07-271-5/+7
| | | | Also improve the window title a bit.
* xgpsspeed: fix __init__ complaint by pylintGary E. Miller2017-07-271-1/+1
|
* Fixes some pylint issues.Fred Wright2017-07-141-7/+12
| | | | | | | | | | | 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.
* xgpsspeed: pep8 fixesGary E. Miller2017-07-011-19/+36
|
* Tweaks xgps and xgpsspeed UIs.Fred Wright2016-12-181-8/+20
| | | | | | | | | | | | | | | | | | | | 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-31/+44
| | | | | | | | | | | | | | 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-3/+6
| | | | | | | | | | | | | | | 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>
* 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-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixes Gtk warnings related to xgps/xgpsspeed error boxes.Fred Wright2016-04-091-0/+2
| | | | | | | | | | | | | | | 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.
* Minor usage message tweaks for xgpsspeed.Fred Wright2016-03-261-2/+2
| | | | | | Fixes a typo, and also capitalizes one message for capitalization consistency (except for the text for 'help' itself, which is internal to OptionParser).
* xgps/xgpsspeed port cleanup: deal with Python 3 division semantics.Eric S. Raymond2016-03-251-0/+3
|
* Default mode for xgpssspeed is now the more interesting nautical display.Eric S. Raymond2016-03-251-1/+8
|
* xgps and xgpsspeed are fully polyglot...Eric S. Raymond2016-03-251-1/+1
| | | | ...change their shebang lines to plain Python.
* Fix xgpssspeed satellite display under Python 3.Eric S. Raymond2016-03-251-1/+1
|
* xgpsspeed successfully ported to python-gi.Eric S. Raymond2016-03-251-33/+34
|
* Eliminate use of event argument in the xgpsspeed draw handler.Eric S. Raymond2016-03-251-14/+16
| | | | This is a step towards Gtk3 porting.
* Update xgpsspeed to use recent pygtk-2.0 binding...Eric S. Raymond2016-03-241-4/+4
| | | | | | ...as described at https://wiki.gnome.org/Projects/PyGObject/IntrospectionPorting
* Forward-port Python utilities to run polyglot under either Python 2 or 3.Eric S. Raymond2016-03-221-6/+6
| | | | | | 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.
* 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 in xgpsspeedJon Schlueter2015-03-021-150/+148
|
* pylint cleanup of xgpsspeed. Live-test works.Eric S. Raymond2015-02-221-13/+12
|
* Remove duplicative and dead code, and rename a class.Eric S. Raymond2013-01-221-48/+33
|
* Factor out common code. Also, no point in a separate version for this.Eric S. Raymond2013-01-171-38/+16
|
* Remove duplicate code.Eric S. Raymond2013-01-171-6/+0
|
* The old xgpsspeed version number and TODO no longer make much sense.Eric S. Raymond2013-01-171-12/+2
|
* Credit where credit is due.Eric S. Raymond2013-01-171-2/+6
|