summaryrefslogtreecommitdiff
path: root/gpsd_json.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Simplify by using str_rstrip_char.Zbigniew Chyla2015-01-211-3/+3
| | | | | By using str_rstrip_char we explicitly show that we're removing trailing comma/space.
* Simplify by using str_appendfZbigniew Chyla2015-01-211-37/+26
|
* Add str_rstrip_char, use it everywhere.Zbigniew Chyla2015-01-211-68/+34
| | | | This change doesn't affect generated binary code.
* Add str_{,v}appendf, use it everywhere.Zbigniew Chyla2015-01-211-316/+231
| | | | This change doesn't affect generated binary code.
* Cleanup of string function and sizeof usage. All regression tests pass.Zbigniew Chyla2015-01-131-1/+1
|
* Refactor representation of satellite data into an array of structs...Eric S. Raymond2014-09-221-12/+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.
* Magic-number elimination. All regression tests pass.Eric S. Raymond2014-09-121-7/+8
|
* Proper use of the Type 8 structured bit.Eric S. Raymond2014-08-241-5/+1
|
* Drop the obsolete tag field from JSON output. Bump the minor protocol number.Eric S. Raymond2014-08-241-16/+0
| | | | | | | Required a regression-test rebuild, of course. The field is still set by the TSIP and SiRF drivers; the SiRF driver actually uses it. It may be possible to eliminate the TSIP uses, but so far attempting this has produced odd regression-test failures.
* PPS is no kinger marked unstable/experimental.Eric S. Raymond2014-08-231-3/+2
|
* Full implementation of AIS 'structured' bit. All regression tests pass.Eric S. Raymond2014-08-231-51/+20
|
* splint/cppcheck/coverity cleanup.Eric S. Raymond2014-08-211-3/+3
|
* Avoid core dump on Inland AIS Type 10.Eric S. Raymond2014-08-191-1/+2
|
* Prevent false match on Inland AIS messages.Eric S. Raymond2014-08-181-0/+15
|
* Cirresct specification annd processing of Inland AIS Type 10 message.Eric S. Raymond2014-08-181-7/+7
|
* Properly line-terminate Inland AIS dumps.Eric S. Raymond2014-08-181-4/+4
|
* Fix Savannah bug #42371, Typo in JSON output for AIS navaids.Eric S. Raymond2014-05-171-1/+1
|
* splint fixups - no logic changes.Eric S. Raymond2013-11-241-0/+2
|
* Report PPS time when timing policy is on and it's available.Eric S. Raymond2013-11-241-4/+10
|