summaryrefslogtreecommitdiff
path: root/gpsmon.c
Commit message (Collapse)AuthorAgeFilesLines
* A gaggle of whitespace gaffs.Gary E. Miller2015-04-301-13/+13
|
* Stop infinite loop in gpsmon for /dev/pps0Gary E. Miller2015-04-021-5/+7
| | | | Also fix debug output gsmon: -> gpsmon:
* Improved error messages in gpsmon.Eric S. Raymond2015-04-011-4/+2
|
* Eliminate some duplication code for timespec arithmetic.Eric S. Raymond2015-04-011-1/+1
|
* Clean up PPS monitor interface with renames, and additional documentation.Eric S. Raymond2015-04-011-2/+6
|
* Write scan-build suppressions to it runs clean.Eric S. Raymond2015-03-301-0/+3
| | | | | | Promote scan-build to be onere of the stock pre-release checks. Fix one minor cppcheck nit.
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-65/+13
| | | | | | | | | | | | | | | | | | | 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, omit hexdumping trailing CR/LF when dumping textual packets.Eric S. Raymond2015-03-301-0/+6
|
* Clean up most spint errors. All regression tests pass.Eric S. Raymond2015-03-281-3/+5
|
* Fix a display glitch in gpsmon.Eric S. Raymond2015-03-191-12/+20
|
* Address Savannah bug #44566: Unused variable warnings with -DNDEBUGKurt Schwehr2015-03-171-1/+1
| | | | | | With -Werror -DNDEBUG, these two cases end up failing with unused variables (gcc 4.9 with lots of patches on Linux). The attached patch solves the issue for me, but it's possible that it might be better with the UNUSEDs wrapped in
* Simplify the thread-monitor interface.Eric S. Raymond2015-03-111-2/+2
| | | | PPS observed live on GR601W.
* splint cleanup of new code.Eric S. Raymond2015-03-081-1/+1
|
* Fix a display glitch when there is a field after TOFF or PPS...Eric S. Raymond2015-03-081-2/+6
| | | | ...but on the same line.
* ppsthread.c is now fully decoupled from the libgpsd_core.c structures.Eric S. Raymond2015-03-081-0/+1
| | | | | | | | | | | | | | | | | The files ntpshm.h ntpshmread.c ntpshmwrite.c ppsthread.[ch] timespec_str.[ch] now form a standalone group which can be used for NTP communication and PPS thread monitoring. Separation is not yet perfect, as ppsthread.c requires gpsd_config.h for HAVE_SYS_TIMEPPS_H and npshmread.c/ntpshmwrite.c both require compiler.h. All regression tests pass. PPS is live on a GR-601W.
* Eliminate timestamp-T use from PPS thread code.Eric S. Raymond2015-03-081-1/+1
| | | | PPS observed live on GR-601W. All regression yests pass.
* Eliminate a potential source of defects by using static mutex initialization.Eric S. Raymond2015-03-081-3/+0
|
* Decouple (mostly) the PPS thread-monitor from the session structure.Eric S. Raymond2015-03-081-4/+4
| | | | | | | | | | | | This is the big step towards ntplib. A couple of minor issues remain to be ironed out, the most significant of which is what to do about the timestamp_t type. This changes some field offsets of private fields in struct gps_device_t. Probably does not require a version bump as access to them is all through the libgpsd API. All regression tests pass. PPS observed live in gpsmon direct mode.
* Factor PPS-related members of struct gps_device_t into a pps_thread_t structure.Eric S. Raymond2015-03-071-4/+6
| | | | | | | | | | | No logic changes, though it looks like there are two because two guards that would always have failed when the code was compiled with pps=off are now conditioned out. Also, this code is offset-preserving so as not to break link-time compatibility of libgpsd. (This is the subtler approach...) All regression tests pass.
* Revert "Another step in prying ntplib loose. Partly decouple ppsthread.c ↵Eric S. Raymond2015-03-071-15/+3
| | | | | | fom sessions." Previous approch was a bit too frontal.
* Another step in prying ntplib loose. Partly decouple ppsthread.c fom sessions.Eric S. Raymond2015-03-071-3/+15
| | | | All regression tests pass.
* Generqte -V messages in a uniform way.Eric S. Raymond2015-03-021-1/+1
| | | | All regression tests pass.
* Pre-release splint/cppcheck/coverity cleanup. All regression tests pass.Eric S. Raymond2015-02-261-1/+1
|
* Warning hunting cleanup in gpsmon.c for visiblize not always usedJon Schlueter2015-02-251-0/+2
| | | | visiblize only used under PPS_ENABLE guard
* Fix broken build for time_offset in gpsmonJon Schlueter2015-02-251-0/+2
| | | | | | | fix broken scons build with the following: scons minimal=on ncurses=on pps=on socket_export=on Missing NTP_ENABLE guard around usage of time_offset in gpsmon_hook()
* Fix a glitch when painting short values in a field.Eric S. Raymond2015-02-251-0/+6
|
* Put the PPS offset in the PPS timebar in gpsmon.Gary E. Miller2015-02-241-4/+7
|
* Convert gpsmon_hook() to use timespec_str()Gary E. Miller2015-02-241-10/+17
| | | | timespec_str() there fixes problems displaying negative timespecs
* Fix a gpsmon display glitch in client mode.Eric S. Raymond2015-02-241-1/+3
|
* In gpsmon, refactor so PPS field updates are done by common code.Eric S. Raymond2015-02-241-3/+30
|
* gpsmon: refactoring step, make utility function for TOS display.Eric S. Raymond2015-02-241-0/+25
|
* In gpsmon, repair PPSBAR emission.Eric S. Raymond2015-02-241-3/+19
|
* In gpsmon, restore some visibilization inadvertently removed.Eric S. Raymond2015-02-241-2/+4
|
* TOFF display in gpsmon.Eric S. Raymond2015-02-241-6/+5
|
* Restore correct screen painting for gpsmon error messages.Eric S. Raymond2015-02-241-24/+8
| | | | There's still some minor bug here - extra newlines at level LOG_PROG and above.
* Incomplete TOFF display code for gpsmon in NMEA0183 mode.Eric S. Raymond2015-02-231-8/+9
| | | | Fields have been moved to accommodate TOFF but it is not yet displayed.
* TOFF JSON message implemented and documented.Eric S. Raymond2015-02-231-8/+27
| | | | | | All regression tests pass. PPS observed live with gosmon. gpsmon presently ignores this message, but shout display its contents near PPS.
* Abolish all confusing uses of the word 'drift' for a time delta.Eric S. Raymond2015-02-231-10/+10
| | | | No logic changes. All regression tesrs pass. Live PPS observed.
* Fixing gpsmon.c to fix broken buildJon Schlueter2015-02-181-1/+1
| | | | | | | | scons minimal=on control_socket=on ncurses=on pps=on Fails with json_pps_read not defined for gpsmon We were missing matching guard in gpsmon for json_pps_read
* In gpsmon, attempt to banish edge-of-screen cruft from initialization JSON.Eric S. Raymond2015-02-121-0/+3
| | | | Also, use TPV rather than PVT to be consistent with GPSD JSON.
* Stop calling ntpshhm_latch() more than once a second in gpsmon.Gary E. Miller2015-02-111-2/+7
| | | | | Now the gpsmon hardware mode call to ntpshm_latch() looks more like the one in gpsd.
* BSD compiler waening and splint cleanup.Eric S. Raymond2015-02-111-1/+1
|
* Fix the gpsmon display-trashing problem; add some documentation and asserts.Eric S. Raymond2015-02-101-3/+4
| | | | All regression tests pass.
* splint cleanup. All regressiion tests pass.Eric S. Raymond2015-02-091-2/+2
|
* Fix PPS vars in client-mode gpsmon.Eric S. Raymond2015-02-031-0/+3
| | | | All regression tests pass.
* Add note where gpsmon is failing in PPS.Gary E. Miller2015-02-021-0/+1
|
* Clean up pps_early_init() placement in gpsmon.Gary E. Miller2015-02-021-3/+3
|
* Fix improper typecasting in a timespecGary E. Miller2015-02-021-6/+6
|
* Add TS_SUB() to subtract timespecs. Fix another double.Gary E. Miller2015-02-021-5/+7
|
* 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.