summaryrefslogtreecommitdiff
path: root/gpsd_json.c
Commit message (Collapse)AuthorAgeFilesLines
* Make all hex-dumping truly thread-safe.Eric S. Raymond2013-10-131-7/+14
|
* Lost separator.Michael Tatarinov2013-10-111-1/+1
|
* Some compilers barf if you name a struct member 'class'.Eric S. Raymond2013-10-061-2/+2
|
* Variable renames, and remove an extraneous break statement.Eric S. Raymond2013-10-061-1/+0
|
* Inland AIS full support (untested).Eric S. Raymond2013-10-061-1/+44
|
* Complete support for Inland AIS Water Levels message.Eric S. Raymond2013-10-051-0/+14
|
* Fix a small slipup.Eric S. Raymond2013-10-051-0/+1
|
* Implement handling of Inland AIS EMMA warning.Eric S. Raymond2013-10-051-0/+71
|
* More splint cleanup.Eric S. Raymond2013-10-041-2/+2
|
* splint cleanup.Eric S. Raymond2013-10-021-10/+11
|
* Support Inland AIS ship static and voyage-related data.Eric S. Raymond2013-10-021-0/+101
|
* Change a variable name that had become misleading.Eric S. Raymond2013-10-021-25/+24
|
* New-style dumping (numeric and text both) for two more fields.Eric S. Raymond2013-10-011-4/+18
| | | | All regression tests pass.
* Fix several small but fatal bugs in the new JSON generation.Eric S. Raymond2013-10-011-5/+5
|
* Dump preciptypes in the new manner.Eric S. Raymond2013-10-011-3/+7
|
* First step of disentangling text display from scaling.Eric S. Raymond2013-10-011-140/+162
| | | | | | | | | | | | | | | | | | | | | | This commit makes changes to the way JSON exports the following field members: Type 1,2,3: status Type 4,5,19,21: epfd Type 5,19,23,24: shiptype Type 6 DAC235 FID 10: racon, light Type 6 DAC 1 FID 28: rtype Type 8 DAC 1 FID 17: idtype Type 8 DAC 1 FID 19: signal, nextsignal Type 8 DAC 1 FID 27: rtype Type 21: aid_type Type 23: stationtype Each of these output attributes was formerly numeric when scaling was off but string when scaling was on. Now the base attribute is always numeric, and the text is shipped as an attribute with "_text" appended to the name. Both attributes are always shipped. Similar changes are made in Inland AIS JSON that has never shipped.
* Support for Inland AISNumber of Persons On Board.Eric S. Raymond2013-10-011-0/+8
|
* Support for Inland AIS RTA at lock/bridge/terminal.Eric S. Raymond2013-10-011-0/+28
|
* Support for Inland AIS ETA at lock/bridge/terminal.Eric S. Raymond2013-10-011-1/+20
|
* Axccept Persons On Board as either a type 6 or 8 message.Eric S. Raymond2013-10-011-0/+5
|
* Change gpsd_report to no longer use a global. All regression tests pass.Eric S. Raymond2013-09-291-3/+0
| | | | | | | | This is a large, ugly change. But without it we can't troubleshoot the ICP/IP-source initialization bug properly - colliding definitions of gpsd_report() were interfering with error reporting early in gpsd runs. More cleanup work remains to be done, but at least this is working.
* Extract ITU-R 1371-4 model and serial fields from AIS Type24 messages.Eric S. Raymond2013-09-151-1/+3
| | | | | | | | | | | | | | In ITU-R 1371-4, there are new model and serial fields carved out of the right-hand end of vendorid, which is reduced from 7 chars to 3. It is not clear in which minor revision this change took place. To cope with older AIS implementations, unpack the trailing bits *both* ways; truly revision-4-conformant implementations will have up to four characters of trailing garbage on the vendorid, and older implementations will have garbafe in the model and serial fields. This commit also reverts the change to copy only 20 characters rather than 21 when analyzing the name field in a type21. There's some mystery about why this didn't break the rgression tests sooner.
* Split Type 24 reporting, including the -s option to gpsdecode.Eric S. Raymond2013-09-141-28/+42
| | | | All regression tests pass.
* RTCM3 R1033 JSON unpacking.Eric S. Raymond2013-05-021-1/+1
|
* RTCM3 R104 JSON unoacking.Eric S. Raymond2013-05-021-1/+1
|
* Unpack JSON for RTCM3 R1007, R1008, and R1009.Eric S. Raymond2013-05-011-7/+7
|
* More cppcheck pacification.Eric S. Raymond2013-05-011-2/+3
|
* Fix static-checker warnings. All regression tests pass.Eric S. Raymond2013-04-301-12/+12
| | | | | cppchecker now finds variables that could have reduced scope; that's most of these.
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-24/+24
|
* Change the API so the yermios strucytture is not publicly exposed.Eric S. Raymond2012-09-071-1/+1
| | | | | | | | Becauser this changed the libgpsd API but not the libgps one, libgpsd now has its own version number. (Doing otherwise would have inflicted a gratuitous binary-compatibility break on application developers). All regression tests pass. Audit check runs clean.
* [AIS] Fixed EPFD display in scaled JSONChristian Gagneraud2012-08-231-4/+7
| | | | aivdm-regress passed
* Fix scaling of AIS navigation message 'course' member.Eric S. Raymond2012-08-221-2/+2
|
* Ratuiinalize names of AIS scaling factors; all divisors now end with DIV.Eric S. Raymond2012-06-241-64/+64
| | | | All regression tests pass.
* Sigh. Repair regressipon tests after signedness change. All tests pass.Eric S. Raymond2012-06-241-1/+1
|
* Always wemit ISO8601 timestamps with the same length.Eric S. Raymond2012-06-211-2/+2
| | | | Someday, this will prevent a nasty surprise for a client programmer.
* [AIS] Fix previous AIS mergeChristian Gagneraud2012-06-201-1/+1
| | | | | Some modifications were lost during last merge, fix that. Regression pass except for ait250.
* [AIS] Fix plenty of small bugs unveiled by aishub test campaign.Christian Gagneraud2012-06-201-52/+105
| | | | | | | | | | | | | | | | | | | | | | A test campaign was run with live data from aishub.net (ca. 25 millions sentence, 1.2 GB of logs), the goal was to check the decoding and the JSON parsing and dumping code. On all the AIS data, the following tests were done: - AIVDM decoding - JSON scaled dump - JSON validity check on scaled dump. - JSON unscaled dump - JSON validity check on unscaled dump - JSON unscaled idempotency check - JSON unscaled/scaled idempotency check The last check consisted of: - parsing the unscaled dump - dumping it back in scaled mode - compare it with the original scaled dump. This test campaign has unveiled plenty of small bugs all around the AIS code. This patch fixes all of them and adds new sentences in the regression tests.
* [AIS] Do scaling/offset operations only in json dumpChristian Gagneraud2012-06-051-30/+30
| | | | splint and check pass.
* [AIS] Met/Hydro: fixes and improvementsChristian Gagneraud2012-06-051-31/+25
|
* [AIS] AtoN: formatting fixesChristian Gagneraud2012-06-051-10/+4
|
* Less intrusive way to fix the scaling problems in the AtoN code.Eric S. Raymond2012-05-251-5/+8
| | | | All regression tests pass, all compiler warnings suppressed (on x86_64).
* Temporarily condition out cgans's AtON code...Eric S. Raymond2012-05-241-1/+4
| | | | | | | ...until he gets the scaling right. Problem is, right now it's throwing copious warnings which I don't want to have to deal with while I'm looking for port bugs - which sometimes manifest as compiler warnings themselves and could get lost in the clutter.
* [AIS] Add UK/ROI AtoN monitoring data message handlingChristian Gagneraud2012-05-231-1/+67
|
* Fix a few remnant strlcat calls that still weren't right.Eric S. Raymond2012-05-211-3/+3
| | | | All regression tests pass.
* Fix computation of buffer length arguments in strlcat(3) calls.Eric S. Raymond2012-05-211-13/+13
| | | | | | It's the entire length of the buffer we want there, not the portion left. All regression tests pass.
* [AIS] Use a dedicated stucture for IMO236 met/hydro messageChristian Gagneraud2012-05-201-79/+210
|
* [AIS] Typos fixes and other nitpicksChristian Gagneraud2012-05-201-5/+5
|
* Eliminate a potential buffer overrun.Eric S. Raymond2012-05-141-1/+1
|
* Fixes for reporting of AIS met/hydro message.Christian Gagneraud2012-05-111-7/+7
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* More coverity-inspired fixes.Eric S. Raymond2012-05-091-1/+1
| | | | All regression tests pass ans soint runs clean.