summaryrefslogtreecommitdiff
path: root/libgps_core.c
Commit message (Collapse)AuthorAgeFilesLines
* use more precision when outputting lat/lon.Gary E. Miller2016-03-281-1/+2
| | | | A cm level GPS needs decimal degrees to 0.0000001
* Still more whitespace fixupsGary E. Miller2015-04-301-2/+2
|
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-17/+7
| | | | | | | | | | | | | | | | | | | 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.
* Document SHM and JSON timeout is in uSec. Fix SHM so that is true.Gary E. Miller2015-03-121-0/+1
| | | | | JSON wait was in uSec, but SHM wait was in Sec. Made both uSec and documented three places.
* Feature removal - delete last remnants of old pre-JSON protocol from libgps.Eric S. Raymond2015-02-221-4/+0
| | | | | All regression tests pass. Clients are working live. PPS observed on Macx-1.
* Revert the change abolishing the "pps" policy flag, it broke gpsmon client mode.Eric S. Raymond2015-02-021-1/+2
| | | | All regression tests pass.
* Add str_{,v}appendf, use it everywhere.Zbigniew Chyla2015-01-211-2/+2
| | | | This change doesn't affect generated binary code.
* Always use sizeof to get array sizeZbigniew Chyla2015-01-131-2/+2
| | | | | | Don't use constant/expression from an array's definition when referring to its size. Eliminates redundancy and avoids problems when array size changes. The change doesn't affect generated code.
* Refactor representation of satellite data into an array of structs...Eric S. Raymond2014-09-221-10/+7
| | | | | | | | | | | | | | | | | | ...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.
* Minimal option requires conditionalization of some code.Eric S. Raymond2014-09-061-4/+19
| | | | | All regression tests pass with default options (GPS tests are disabled with minimal on, because socket_export is off).
* splint/cppcheck cleanuo after the gpsd_report change.Eric S. Raymond2014-08-271-0/+2
| | | | All regression tests pass.
* Clean up some FIXMEs. All regression tests pass.Eric S. Raymond2014-08-241-1/+0
|
* PPS is no kinger marked unstable/experimental.Eric S. Raymond2014-08-231-2/+1
|
* ppsbar -> pps.Eric S. Raymond2013-11-131-2/+2
| | | | All regression tests pass. PPS is live in both gpsd and gpsmon.
* PPS events now show in gpsmon runb through the daemon.Eric S. Raymond2013-11-091-1/+2
|
* Code is fully cppcheck, splint, and Coverity clean.Eric S. Raymond2013-11-061-0/+1
| | | | All regression tests pass. PPS is live.
* Minor typo fix. All regression tests pass.Eric S. Raymond2013-09-211-1/+1
|
* Restore some accidentally omitted code.Eric S. Raymond2013-09-211-1/+1
|
* Fix some minor bugs in debug reporting of the sat picture.Eric S. Raymond2013-09-211-1/+6
|
* More cppcheck cleanup.Eric S. Raymond2013-09-171-0/+1
|
* Split Type 24 reporting, including the -s option to gpsdecode.Eric S. Raymond2013-09-141-1/+2
| | | | All regression tests pass.
* Fix static-checker warnings. All regression tests pass.Eric S. Raymond2013-04-301-5/+6
| | | | | cppchecker now finds variables that could have reduced scope; that's most of these.
* Fix a dangerous typo caught by Coverity. All regression tests pass.Eric S. Raymond2012-09-221-1/+1
|
* Lose the assumption that socket_t is an integer.Eric S. Raymond2012-09-221-3/+3
|
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-6/+6
|
* Eliminated a bug Rick Bywater tripped over.Eric S. Raymond2012-05-141-1/+1
|
* Still working on pacifying Coverity. All regression tests pass.Eric S. Raymond2012-05-111-1/+1
|
* First cut at implementing waiting test for shm export.Eric S. Raymond2011-10-031-1/+7
| | | | Timeout argument is presently ignored.
* Remove duplicate code.Michael Tatarinov2011-09-301-1/+3
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* splint cleanup.Eric S. Raymond2011-09-301-1/+3
|
* Magic-number elimination.Eric S. Raymond2011-09-301-2/+2
| | | | All three exports work.
* Re-do runtime dispatch in the client library.Eric S. Raymond2011-09-301-76/+27
|
* splint cleanup.Eric S. Raymond2011-09-281-5/+7
|
* Canned mainloop function for socket export...Eric S. Raymond2011-09-281-1/+46
| | | | ...also, dispatch to open for the DBUS transport.
* Runtime dispatch to methods is working in the client library.Eric S. Raymond2011-09-281-19/+51
|
* Avoid a name collision.Eric S. Raymond2011-09-281-1/+1
|
* First step in runtime export dispatch for the client library.Eric S. Raymond2011-09-281-0/+11
|
* Break out prototypes for client library export methgods into a new heasder.Eric S. Raymond2011-09-281-0/+1
| | | | All regression tests pass. All three exports work in gpxlogger.
* Get back to a state where the shm export works.Eric S. Raymond2011-09-271-26/+0
|
* Converge the library APIs for different transports more closely.Eric S. Raymond2011-09-271-0/+26
|
* Add some debugging.Eric S. Raymond2011-09-161-1/+4
|
* Make the sock_export=no build.Eric S. Raymond2011-08-261-0/+59
| | | | | | | | | | The way I fixed this extends the library API so some functions which were previously undefined for shm transport are now defined. This doesn't change the binary API of the library in the normal (sock_export=yes) case at all, so I'm not bumping its version. No changes in the daemon. All regression tests pass (in the normal sock_export=yes build).
* More code slimming.Eric S. Raymond2011-06-111-1/+1
|
* Break the libgps test code our of libgps_core.c.Eric S. Raymond2011-04-031-104/+1
|
* Allow gps_errstr() to report shm-specific errors.Eric S. Raymond2011-03-291-2/+10
|
* Squeeze more code out of the minimal build.Eric S. Raymond2011-03-291-2/+9
|
* Scan-build and splint cleanup. All regression tests pass.Eric S. Raymond2011-03-281-0/+2
|
* Cast gpsdata->gps_fd to intptr_t as int might not be big enough.Bernd Zeimetz2011-03-281-2/+2
| | | | This also fixes building with g++ >= 4.5.
* The shm transport finallly works through gps_open().Eric S. Raymond2011-03-281-2/+1
|
* Part repair of the shm dispatch.Eric S. Raymond2011-03-271-1/+1
| | | | | Uh oh. One of my rests was broken. The gps_shm_* functions work, but dispatch to them through the public API is broken. This partway fixes it.