summaryrefslogtreecommitdiff
path: root/monitor_sirf.c
Commit message (Collapse)AuthorAgeFilesLines
* gpsmon: Don't try to convert NaN to isotime.Gary E. Miller2019-02-071-3/+5
| | | | A drop in the buckect of the mess that is gpsmon.
* LICENSE: Update licenses for consistency. No functional changes.Gary E. Miller2018-11-191-1/+1
|
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* Add Coverity suppressions for new invariant checks.Eric S. Raymond2016-01-291-0/+1
|
* Make asynchronous updating of PPS windows more reliable.Eric S. Raymond2016-01-041-0/+1
| | | | Generalizes a patch for monitor_ubx.c submitted by by Nuno Gonçalves.
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-27/+0
| | | | | | | | | | | | | | | | | | | The proximate cause was that we've been seing emission of error messages that were randomly and disturbingly variable across different environments - notably Raspbian and Gentoo splint gave nontrivially different results than Ubuntu 14.10 splint. And this was *not* due to Ubuntu patches! A pristine splint built from the 3.1.2 tarball on Ubuntu didn't match the Raspbian and Gentoo results either. But this has been coming for a while. Easy access to more modern static analyzers such as coverity, scan-build and cppcheck has been decreasing the utility of splint, which is unmaintained and somewhat buggy and not easy to use. Only file not cleaned is ppsthread.c, because Gary has been working on it during this cleanup. All regression tests pass. PPS observed live on GR601-W.
* In gpsmon, refactor so PPS field updates are done by common code.Eric S. Raymond2015-02-241-22/+1
|
* Abolish all confusing uses of the word 'drift' for a time delta.Eric S. Raymond2015-02-231-4/+4
| | | | No logic changes. All regression tesrs pass. Live PPS observed.
* Remove unused and incorrect retval from timespec_strZbigniew Chyla2015-02-151-1/+1
| | | | | | | All callers ignore value returned by timespec_str. Additionally, the function returns simply the result of snprintf(), which is not necessarily the number of chars written to the buffer (if the buffer provided by the caller was too small).
* Full 22-digit display of PPS offset in the SiRF monitor.Eric S. Raymond2015-02-131-5/+5
|
* Widen PPS offset field in the three montors (NMEA, uBlox, SiRF) that report it.Eric S. Raymond2015-02-121-3/+3
| | | | | | | | | | | To accomplish this, I had to shorted "PPS offset:" to "PPS:"; documentation has been adjusted accordingly In the NMEA and uBlox cases this gets us the required 22 characters. The SiRF monitor is four shy of that. The OnCore monitor gets PPS offset in-band and already has fields sised to report that.
* Replace Gary's magic number 22 with TIMESPEC_LEN.Eric S. Raymond2015-02-121-1/+1
| | | | All regression tests pass.
* Jigger PPS display for gpsmon/SiRF so it (usually) fits.Gary E. Miller2015-02-111-3/+3
| | | | | The PPS string can be 20 chars wide, so it will not fir in the current space on laarge offsets.
* cppcheck and Coverity cleanup; all regression tests pass.Eric S. Raymond2015-02-091-1/+1
|
* splint cleanup. All regressiion tests pass.Eric S. Raymond2015-02-091-5/+5
|
* Add function timespec_str(), and use it.Gary E. Miller2015-02-051-8/+3
| | | | | Converting a timespec to a printable string is odd, so placed in a new function for ease of use.
* Fix a carry error in TS_SUB()Gary E. Miller2015-02-021-3/+3
| | | | | | TS_SUB getting pretty big. It should probably be a function. Will also need a function to format a timespec as a nice string.
* Fix sign of PPS offset in gpsmon.Gary E. Miller2015-02-021-5/+11
| | | | | In gpsmon client mode the u-blox now exactly matches what I see in ntpq -p.
* Whoops, bad printf formatting. Missing %Gary E. Miller2015-02-021-1/+1
|
* Fix SiRF PPS offset precision in gpsmonGary E. Miller2015-02-021-3/+12
|
* Comment possible numeric overflow in timespec_diff_ns()Gary E. Miller2015-02-021-0/+1
| | | | | timespec_diff_ns() should not be used is the delta is more than about 2 seconds.
* Add str_starts_with macro, use it instead of strncmp.Zbigniew Chyla2015-01-211-2/+2
| | | | This change doesn't affect generated binary code.
* Structure member name change: packet -> lexer. No logic changes.Eric S. Raymond2014-08-271-2/+2
| | | | All regression tests pass.
* "Not available" is too long and doesn't fit in window.Michael Tatarinov2014-05-201-1/+1
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Be explicit when PPS is not available because the build used pps=no.Eric S. Raymond2013-11-171-1/+4
|
* Rename and rationalize driver table instances. No logic changes.Eric S. Raymond2013-11-121-6/+7
|
* Fix pps=no build.Eric S. Raymond2013-11-121-0/+4
|
* Fix PPS offset display bug by properly thread-locking some accesses.Eric S. Raymond2013-11-121-3/+10
|
* Full splint cleanup. Partial cppcheck cleanup.Eric S. Raymond2013-11-051-2/+2
|
* Partial splint cleanup. All regression tests pass. PPS is live.Eric S. Raymond2013-11-051-1/+1
|
* Add PPS offset display to the SiRF monitor.Eric S. Raymond2013-11-051-2/+6
| | | | | It's not a CSD output field, but there isn't any better place to put it on the display.
* SiRF monitor. Cosmetic tweaks.Michael Tatarinov2011-10-311-51/+42
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* The previous round of splint fixups was botched. Remedy this.Eric S. Raymond2011-10-101-3/+0
|
* const and splint cleanup.Eric S. Raymond2011-10-091-1/+11
|
* Add a historical note.Eric S. Raymond2011-09-211-1/+2
|
* Remove ancient unused code.Eric S. Raymond2011-09-211-65/+0
|
* Cosmetic consistency tweak.Eric S. Raymond2011-09-211-2/+2
|
* Cosmetic fix from mike_t, slightly hacked. All regression tests pass.Eric S. Raymond2011-06-301-2/+2
|
* Regularize some names.Eric S. Raymond2011-04-011-8/+8
|
* Bugfixes in the GPS monitor.Michael Tatarinov2011-02-151-1/+5
| | | | | | | 1. Don't send a command if the device is not specified. 2. Always set the subframe_enabled flag to off when we toggle subframe mode, because we're counting on receipt of a subframe packet to turn it on if the command succeeds.
* Some tweaks for the GPS monitor.Michael Tatarinov2011-02-141-2/+22
| | | | | | | | | | 1. The gpsdata.dev.path is filled only in JSON mode, but we in super-raw mode. Fill it. 2. Toggle subframe_enabled flag when we toggle subframe mode. 3. Disable update mid6win, mid7win, mid9win, mid13win, mid27win when we display navigation parameters.
* Cosmetic fixes for the SiRF monitor.Michael Tatarinov2011-02-111-58/+40
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* splint simplification and cleanup.Eric S. Raymond2011-02-041-3/+3
|
* Partial splint and warning cleanup. All regression tests pass.Eric S. Raymond2011-02-031-1/+1
|
* More cosmetic tweaks for the SirF monitor.Michael Tatarinov2011-01-271-19/+17
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Cosmetic improvements for SiRF monitor screen.Michael Tatarinov2011-01-271-17/+19
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Further reduce dependencies onm the sytem clock.Eric S. Raymond2011-01-201-1/+1
| | | | All regression tests pass.
* Unconditionall enable SiRF's PPS message, and watch for it.Eric S. Raymond2011-01-201-3/+4
| | | | All regression tests pass.
* Add explantory comments.Eric S. Raymond2011-01-201-0/+7
|
* More deheader testing. All regression tests pass.Eric S. Raymond2011-01-131-0/+1
|