summaryrefslogtreecommitdiff
path: root/gpsd_json.c
Commit message (Collapse)AuthorAgeFilesLines
* POSIX_C_SOURCE: Not just a linux define. 200112L is a minimum.Gary E. Miller2018-12-261-2/+5
| | | | Don't force _POSIX_C_SOURCE 200112L, just make it a minimum.
* LICENSE: Update licenses for consistency. No functional changes.Gary E. Miller2018-11-191-1/+1
|
* RAW: Add c2c and l2c measurements.Gary E. Miller2018-11-121-6/+26
| | | | Those are C/A L2 pseudo-range and carrierphase.
* RAW: Save space in the JSON. Data from GREIS.Gary E. Miller2018-11-101-2/+2
|
* gpsd_json: Fix stupid mistake.Gary E. Miller2018-11-081-3/+2
|
* gpsd_json: RAW: Always report time.Gary E. Miller2018-11-081-5/+5
|
* rawdata: Add locktime field.Gary E. Miller2018-11-061-2/+3
| | | | So a client can see Carrier Phase slips.
* TPV: Add leapseconds to TPV JSON.Gary E. Miller2018-11-051-0/+4
| | | | Most current gpsd drivers do not report leap seconds.
* rawdata: Add lli to JSON data, use NAN for invalid cpMeas and prMeasGary E. Miller2018-11-051-2/+2
|
* json: Fis encode/decode of rawdata_t.Gary E. Miller2018-10-301-3/+3
|
* gpsd_json: Add freqid and obs (obs_code) to RAW message.Gary E. Miller2018-10-291-2/+5
|
* rawdata_t: Split mtime into time and nsec.Gary E. Miller2018-10-291-1/+2
| | | | And have to use t_real for mtime bacause json.c has no t_long type.
* rawdata_t: convert mtime from timestamp_t to timespec_t.Gary E. Miller2018-10-261-3/+4
| | | | One ns is important when measuring distance using time.
* rawdata_t: rearrange structure again.Gary E. Miller2018-10-261-10/+15
| | | | No need for 140 copies of the identical mtime.
* gpsd_json: Add more fields to RAW message.Gary E. Miller2018-10-261-17/+7
|
* Add RAW json messaage class for raw measurements.Gary E. Miller2018-10-241-0/+65
| | | | Which bumps the JSON minor rev.
* 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
|