summaryrefslogtreecommitdiff
path: root/cgps.c
Commit message (Collapse)AuthorAgeFilesLines
* Sort sats by Used, PRN.Gary E. Miller2016-03-291-0/+16
|
* use more precision when outputting lat/lon.Gary E. Miller2016-03-281-3/+3
| | | | A cm level GPS needs decimal degrees to 0.0000001
* By popular demand, restore STATUS_DGPS_FIX to public interface.Eric S. Raymond2016-01-291-5/+6
|
* A drowning deluge of whitespace hacks.Gary E. Miller2015-04-301-1/+1
|
* 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.
* Whoops, infinite timeout in cgps, now really 2 mins.Gary E. Miller2015-03-121-2/+2
|
* Increase timeout for cgps from 5 Sec to 120 Sec.Gary E. Miller2015-03-121-2/+7
| | | | Allow user input every 1/2 second wwheil waiting.
* Generqte -V messages in a uniform way.Eric S. Raymond2015-03-021-2/+2
| | | | All regression tests pass.
* gps.h gets installed in /usr/include and must not use other GPSD-specific files!Eric S. Raymond2015-02-261-0/+1
| | | | | | | It's bad that this get past me. Anybody who tries writing a C client with 3.12 is going to lose. Requires a release to fix. All regression tests pass.
* cppcheck cleanup.Eric S. Raymond2015-01-221-1/+1
|
* Silence another warning about array subscripts of type 'char'.Matt2015-01-131-1/+1
|
* Clean STATUS_DGPS_FIX out of the public interface. All regression tests pass.Eric S. Raymond2015-01-131-6/+5
|
* Refactor representation of satellite data into an array of structs...Eric S. Raymond2014-09-221-19/+12
| | | | | | | | | | | | | | | | | | ...from a set of parallel arrays. This change flushed out a longstanding bug in the computation of DOPs for estimated error bars. Some test-load rebuilds were required: geostar-geos1m-binary.log.chk: With this change error estimates are computed and reported. trimble-lassen_iq-3dfix.log, trimble-lassen_iq-3dfix.log: the change revealed a bug in the computation of satellite-seen bits. Error estimates did not change. navcom.log: Error estimates changed. With these rebuilds, all regression tests pass.
* Full splint cleanup.Eric S. Raymond2013-11-121-0/+2
|
* cgps: don't overwrite partial lines in the message dump.Beat Bolli2013-11-101-1/+5
| | | | | Signed-off-by: Beat Bolli <bbolli@ewanet.ch> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Full splint cleanup. Partial cppcheck cleanup.Eric S. Raymond2013-11-051-3/+4
|
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-7/+7
|
* Replace exit(2) with exit(EXIT_FAILURE). None of these were documented.Eric S. Raymond2012-09-071-1/+1
| | | | | | | | This is a separate commit so we can revert it someday if making the distinction again comes to seem more important than struct mingw portability. All regression tests pass.
* Replace exit({0,1}) with exit(EXIT_{SUCCESS,FAILURE})Eric S. Raymond2012-09-071-3/+3
| | | | Note there are some exit(2) instances we bneed to decide what to do with.
* Display time offset (system time - GPS time) in cgps.Eric S. Raymond2011-10-101-4/+13
|
* Stop trying to display a single device type in cgps. Might be > 1 attached.Eric S. Raymond2011-10-041-22/+13
|
* Refactoring and splint cleanup.Eric S. Raymond2011-09-291-73/+7
|
* splint cleanup.Eric S. Raymond2011-09-291-1/+1
|
* splint cleanup.Eric S. Raymond2011-09-281-3/+5
|
* Defensive programming.Eric S. Raymond2011-09-171-3/+3
|
* Add a sanoty check.Eric S. Raymond2011-09-161-6/+8
|
* Make the Maidenhead convrter available in Python.Eric S. Raymond2011-03-291-1/+1
|
* Add Maidehead grid square to cgps optional fields.Eric S. Raymond2011-03-291-5/+15
|
* In the client API, take the data buffer out of the gpsdata_t structure.Eric S. Raymond2011-03-181-1/+1
| | | | | | | | | | | | | | | | | | tz has shown me that we had a point of brittleness where the size of the client's data buffer was exposed in gps_data_t. Solution: move it (and the data-waiting count) to the client's private-data member. Requires a new but trivial client-library entry point to get the buffer pointer when a client needs it. Had to be done before API Version 5 froze, or we'd have been stuck breaking a shipped API again. No implications for the daemon or other tools, as this buffer is never used there. (Except it gets rid of several K of never-used static buffer space in the daemon, which is a good thing.) All regression tests pass. Code splints clean. cgps (the only place the API fix matters in our code) live-tests correctly.
* Don't let cgps leave the terminal in a bad state on timeout.Beat Bolli2011-03-121-2/+5
| | | | | | | Exit()ing on timeout leaves the terminal in noecho state, so we have to undo the curses initialization on timeout. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Give gps_waiting() a timeout argument. Use it systematically in test clients.Eric S. Raymond2011-03-091-26/+3
| | | | cgps and gpxlogger are live-tested and work. All regression tests pass.
* Fix an explanatory comment.Eric S. Raymond2011-02-251-3/+4
|
* Vertical window size computation had to be redone to fix a display bug.Eric S. Raymond2011-02-231-16/+15
| | | | | The root cause was MAXCHANNELS getting bumped to 72. The old window size computation relied on it being small.
* Splint cleanup. All regression tests pass.Eric S. Raymond2011-02-161-1/+1
|
* In gpxlogger, filter for device on the server rather than client side,Michael Tatarinov2011-02-141-22/+9
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* The raw_hook mwember and set_raw_hook are gone; client API cleanup is done.Eric S. Raymond2011-01-251-15/+11
|
* More deheader testing. All regression tests pass.Eric S. Raymond2011-01-131-0/+1
|
* Insert SuS headers required for portablity, as revealed by deheader.Eric S. Raymond2010-12-221-0/+3
|
* Correct a previous commit changing <time.h> to <sys/time.h> eceywhere.Eric S. Raymond2010-12-211-1/+1
| | | | <sys/time.h> is needed for select(2).
* cgps now handles resize signals.Eric S. Raymond2010-12-161-16/+28
|
* The difference between curses.h and ncurses shouldn't matter to gpsd.Eric S. Raymond2010-12-141-6/+1
|
* Another pass at removing unneeded headers.Eric S. Raymond2010-12-141-2/+0
|
* More header cleanup.Eric S. Raymond2010-12-141-1/+1
|
* Taking SuS seriously some more.Eric S. Raymond2010-12-141-3/+3
|
* More header simplification. All regression tests pass.Eric S. Raymond2010-12-141-1/+0
|
* Simplification through taking SuS seriously.Eric S. Raymond2010-12-131-3/+0
|
* SuS conformance.Eric S. Raymond2010-12-131-0/+1
|
* Duplicate-inclusion and portability cleanup. All regression tests pass.Eric S. Raymond2010-12-111-0/+1
|
* sys/types.h doesn't belong here...Chris Kuethe2010-12-081-1/+1
| | | | | ... in a test for SYS_SELECT_H. And sys/types.h probably exists and is needed everywhere. Fixes compile on openbsd.
* Partial splint cleanup. All regression tests pass.Eric S. Raymond2010-12-081-1/+3
|