summaryrefslogtreecommitdiff
path: root/gpsd_json.c
Commit message (Collapse)AuthorAgeFilesLines
* gpsd_json.c: Add gnssid:svid to SKY.Gary E. Miller2018-09-191-6/+13
| | | | Update regression tests for new values.
* ATT: change heading to %.3f to match Trimble precision.Gary E. Miller2018-09-111-1/+2
|
* gpsd_json, AIS: Increase precision of AIS LATLON.Sven Geggus2018-09-041-19/+19
| | | | | | | Change %.4f to %.6f when AIS_LATLON_DIV or AIS_LATLON4_DIV is used. Change %.3f to %.4f for AIS_LATLON3_DIV. Signed-off-by: Gary E. Miller <gem@rellim.com>
* gpsd_json, AIS: add missing JSON terminators.Sven Geggus2018-09-041-3/+6
| | | | | | | | This could create unparseable JSON messages. Including regression tests. Signed-off-by: Gary E. Miller <gem@rellim.com>
* Savannah issue #53671: policy_t -> gps_policy_t.Gary E. Miller2018-07-261-3/+3
| | | | | | This is to prevent a conflict with Boost version 1.67. No functional change.
* gpsd_json.c: Change isnan() to isfinite()Gary E. Miller2018-07-141-43/+47
| | | | | This fixes some crash cases. isnan() does not detect all NaN.
* $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
|
* isfinite() needs _POSIX_C_SOURCE >= 200112LBernd Zeimetz2018-02-141-0/+2
|
* gpsd_json: stupid mistake forgot to invert test for isfinite()Gary E. Miller2018-02-131-8/+8
| | | | | isnan(), by design, does not catch all NaNs. So checnged to isfinite(), but forgot to invert the test.
* ECEF: remove unused and unneeded ecef.valid.Gary E. Miller2018-02-121-26/+24
| | | | Gotta check each value for isfinite() anyway.
* Add ECEF support to u-blocx driver, data comes out in json.Gary E. Miller2018-02-081-2/+30
| | | | More work to do so cgps, xgps, etc. see the new data.
* Shield FreeBSD from standards compliance.Gary E. Miller2016-09-071-3/+4
| | | | | gpsd now compiles, and runs scons check, with no warnings on FreeBSD.
* Fix a bad castGary E. Miller2016-09-071-1/+1
| | | | Use (void) when a function result is unused.
* for vsnprintf() FreeBSD wants __ISO_C_VISIBLE >= 1999Gary E. Miller2016-08-161-0/+3
| | | | | Sad, C99 did not actually standardize the defines to invoke the standard.
* __DARWIN_C_LEVEL and _DARWIN_C_SOURCE to silence some warnings.Gary E. Miller2016-08-161-0/+4
| | | | vsnprintf() and strlcmp() are happier now.
* isascii() needs _XOPEN_SOURCE 500Gary E. Miller2016-08-151-0/+3
|
* Fix a misleading indent..Gary E. Miller2016-08-091-4/+4
| | | | | | | | | Fixes this warning: gpsd_json.c:1996:13: warning: this 'else' clause does not guard... [-Wmisleading -indentation] Since when is indenting mandatory in C???
* Add "status" to TPV for DGPS notificationGary E. Miller2016-04-061-0/+2
| | | | | Also update the affected regression files. gpsd had been throwing away the DGPS status.
* Add missing double quotes. Fixed .chk to match.Gary E. Miller2016-04-061-1/+1
|
* Fix JSON dump code to not report time in GST unless there's a valid fix.Eric S. Raymond2016-03-291-2/+3
|
* Add concept of a GPS-disciplined oscillatorMichael Brown2016-02-091-0/+21
| | | | Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
* Add Coverity suppressions for new invariant checks.Eric S. Raymond2016-01-291-1/+1
|
* Fix json_aivdm_dump for bad temp scalingJon Schlueter2015-10-061-5/+5
| | | | | | | | | | | | | - Type 8, DAC = 1 FID = 11: airtemp, dewpoint and watertemp calculations go wrong due to unsigned ints. Identified by: Stefan Roels <sroels-gpsd-dev@42solutions.nl> unsigned/signed subtraction was causing math to go wonky. new sample data added to sample.aivdm which exibits the conversion errors Also identified watertemp that was failing from same data Regenerated the corresponding check files from current code
* add an ais type9 sample which has speedJon Schlueter2015-10-051-1/+1
| | | | | | Type 9: the ais->type9.speed field should be used instead of the type1 field Identifed by: Stefan Roels <sroels-gpsd-dev@42solutions.nl>
* Fixup line ending inconsistancy in gpsd_jsonStefan Roels2015-10-021-2/+2
| | | | | | | the file had 2 entries with \t\n instead of \r\n relating to persons entry under the AIS entries Signed-off-by: Jon Schlueter <jschlueter@redhat.com>
* A gaggle of whitespace gaffs.Gary E. Miller2015-04-301-3/+3
|
* Eliminate some duplication code for timespec arithmetic.Eric S. Raymond2015-04-011-1/+1
|
* Properly thread-interlock some timing code.Eric S. Raymond2015-04-011-2/+5
|
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-44/+19
| | | | | | | | | | | | | | | | | | | 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.
* Fix incorrect arguments in NITEMS macro callsZbigniew Chyla2015-03-221-2/+2
|
* TODO items for subtype and pps_precisionGary E. Miller2015-03-191-0/+1
| | | | | subtype is too short, expand to 128 need pps_precision to add to JSON for ntpd usage
* splint/cppcheck/coverity prerelease cleanup.Eric S. Raymond2015-03-131-3/+4
|
* Fix building with timing=on and pps=on. All regression tests pass.Eric S. Raymond2015-03-091-5/+3
|
* Using clock_gettime() for TIMING is more accurate and lets use remove a float.Eric S. Raymond2015-03-091-11/+14
| | | | All regression tests pass.
* 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).
* Avoid warning (pointer to volatile struct).Zbigniew Chyla2015-02-151-1/+2
|
* Fix compilation errorZbigniew Chyla2015-02-151-1/+2
| | | | | Fix compilation error that shows up only when building with "timing=true pps=true".
* Fix incorrect use of strlcatZbigniew Chyla2015-02-151-2/+2
|
* Replace Gary's magic number 22 with TIMESPEC_LEN.Eric S. Raymond2015-02-121-1/+1
| | | | All regression tests pass.
* cppcheck and Coverity cleanup; all regression tests pass.Eric S. Raymond2015-02-091-1/+1
|
* Fix some untested cases in JSON AIS dumping.Eric S. Raymond2015-02-051-3/+3
| | | | | | Addresses Savannah bug #44183: Some bugs in json-encoding. All regression tests pass.
* Add function timespec_str(), and use it.Gary E. Miller2015-02-051-4/+3
| | | | | Converting a timespec to a printable string is odd, so placed in a new function for ease of use.
* Add TS_SUB() to subtract timespecs. Fix another double.Gary E. Miller2015-02-021-1/+1
|
* Revert the change abolishing the "pps" policy flag, it broke gpsmon client mode.Eric S. Raymond2015-02-021-2/+3
| | | | All regression tests pass.
* Fix loss of precision in PPS json message.Gary E. Miller2015-02-021-2/+5
| | | | | | PPS time is 63 bits of precision A doulbe is only 53 bits of preccision PPS time does not fit in a double without loss of precision
* Fix a formatting error in AIS JSON generation (client library get it right).Eric S. Raymond2015-01-301-1/+1
| | | | Required one test rebuild.
* Assertions cleanup and new policy. All regression tests pass.Eric S. Raymond2015-01-301-4/+4
|
* Elminate double dump of yaw from a compass.Eric S. Raymond2015-01-241-7/+0
| | | | | | | A step towards fixing Savannah bug #43789: Dip and mag_x are not available in gps_data_t All regression tests pass.
* Easy splint cleanups. All regression tests pass.Eric S. Raymond2015-01-211-1/+1
|