summaryrefslogtreecommitdiff
path: root/libgps_core.c
Commit message (Collapse)AuthorAgeFilesLines
* libgps.3: Update gps_read() prototype.Gary E. Miller2019-02-041-1/+7
| | | | And some related nits.
* LICENSE: Update licenses for consistency. No functional changes.Gary E. Miller2018-11-191-1/+1
|
* libgps_json: Add a bit of RAW debug.Gary E. Miller2018-10-301-0/+2
|
* ATT: centralize clearing of the attitude data.Gary E. Miller2018-09-111-1/+2
| | | | | This showed up a bug where rtcm3_unpack() was not clearing its rtcm3 data, which is a union with the attitude data.
* gps_read(): fix some nasty buffer overruns and corruptions.Gary E. Miller2018-07-141-2/+8
| | | | | | | Now pass an optional message buffer to gps_read(). Finally the JSON display in cgps works. Thanks to Virgin Orbit for their support fixing this bug.
* $GPVTG Added parsing, storage, output of magnetic courseDaniel_M_Williams2018-06-121-0/+3
| | | | Signed-off-by: Gary E. Miller <gem@rellim.com>
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* Remove misleading comment.Robert Norris2017-03-171-1/+0
| | | | | | | | | The code doesn't fail on 32bit machines. TESTED: Run 'test_gpsmm' and 'test_libgps -D 4' on a 32bit Linux machine. Signed-off-by: Fred Wright <fw@fwright.net>
* Whitespace cleanups related to recent changes.Fred Wright2017-02-201-1/+3
|
* Explicit marking of ignoring fprintf() resultRobert Norris2017-02-201-1/+1
| | | | | | | | | Ensure consistent marking of '(void)' for most normal usage of fprintf() TESTED: 'scons build-all check' passes Signed-off-by: Fred Wright <fw@fwright.net>
* for vsnprintf() FreeBSD wants __ISO_C_VISIBLE >= 1999Gary E. Miller2016-08-161-0/+4
| | | | | Sad, C99 did not actually standardize the defines to invoke the standard.
* Ensure all functions of the client API are available at all times.Robert Norris2016-08-021-0/+4
| | | | | | | | Thus client programs won't fail to build or run due to missing functions. Although when clientdebug is turned off in building libgps, then these functions won't do anything. Signed-off-by: Gary E. Miller <gem@rellim.com>
* 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.