summaryrefslogtreecommitdiff
path: root/gpsd_json.c
Commit message (Collapse)AuthorAgeFilesLines
* gpsd_json: RAW, only output freqid for GLO, skip GLO PRN 255.Gary E. Miller2019-05-171-3/+9
| | | | | Only GLONASS uses freqid, no need for other GNSS. GLO PRN 255 is not tracked yet, useless in RAW.
* JSON/RAW: Add sigid, if non-zero.Gary E. Miller2019-05-171-2/+6
| | | | | Only affects ZED-F9P for now. Easier than decoding the obs_code.
* gpsd_json: Filter out PRN from SKY w/o Elevation and AzimuthGary E. Miller2019-05-061-0/+7
| | | | | | | NMEA says to not report bad elevation and azimuth, so follow that advice. This only affects some u-blox 8 binary, and one odd GREIS regression.
* JSON: Add sigid to PRN in SKY.Gary E. Miller2019-04-191-0/+5
| | | | Update doc to match. Not used, yet.
* gps_data_t: Add datum field. Add decode for $PGRMM.Gary E. Miller2019-03-251-2/+5
| | | | | Sadly, $PGRMM is after a cycle ender and the data is never reported, so no regression changes. Cycle ender needs to get fixed...
* Split epe into eph and sep.Gary E. Miller2019-03-221-2/+5
| | | | | | | | Try to do it with forward and backward compatibility, which is challenging with current miscojson. Sometimes epe was used to 2D estimated erro. Sometimes for 3D error. So make it explicit eph is 2D, and sep is 3D.
* gpsd_json: epe now in the JSON.Gary E. Miller2019-03-151-1/+3
| | | | Odd that it was never there before...
* Document an assumption.Eric S. Raymond2019-03-141-0/+1
|
* Change NMEA mode setting, thus major changes in gpsd_error_model().Gary E. Miller2019-03-071-1/+1
| | | | | | | | | | | | | | | | The start of this overly large patch was to simply move the test for MODE_2D/3D flipping, which only affect NMEA 183, back into driver_nmea0813.c But that was intertwined with how gpsd_error_model() computes derived variables, which required major changes to how NMEA 183 mode_2D/3D are set. This ultimatly led to major regression test results. Almost all for the better. I tried to break it up, but moving from one paradigm to another needed one big jump...
* gpsd_json: Put new status values in TPV.Gary E. Miller2019-02-061-2/+4
| | | | Nothing usesd it, yet.
* 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