summaryrefslogtreecommitdiff
path: root/driver_aivdm.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix scan-build glitches. All regression tests pass.Eric S. Raymond2011-03-281-1/+1
|
* First moves in the direction of supporting IMO 289 subtypes of AIS message 8.Eric S. Raymond2011-01-301-0/+61
| | | | Code is currently conditioned out.
* More header portability auditing by deheader.Eric S. Raymond2010-12-221-7/+0
|
* Duplicate-inclusion and portability cleanup. All regression tests pass.Eric S. Raymond2010-12-111-1/+0
|
* Minor code cleanup, banishing warnings.Eric S. Raymond2010-12-011-4/+3
|
* Document a minor problem with AIVDO sentences and rebuild its regression test.Eric S. Raymond2010-12-011-0/+10
|
* Fixes SEGV on reception of short aivdm type 26 messageNirgal Vourgère2010-11-141-0/+4
| | | | | | | | | gpsd is crashing when receiving some messages such as !AIVDM,1,1,,A,J=IJuwOmoTt,2*3F because unsigned value ais->type26.bitcount is sometimes assigned a negative value. Signed-off-by: Bernd Zeimetz <bernd@bzed.de>
* trailing whitespace removal in driver_aivdmJon Schlueter2010-11-061-7/+7
|
* Rework diagnostic in driver_aivdm to print usable infoJon Schlueter2010-11-061-3/+3
|
* Enable much stricter compilation warningsEric S. Raymond2010-09-161-6/+6
| | | | | | | | We now compile with -Wextra on and only the warning on missing fields in initializers turned off (because of the way some of thee JSON code is generated). Cleanups necessary to eliminate all warnings have been done. All regression tests pass.
* Splint cleanup.Eric S. Raymond2010-05-251-2/+2
|
* Make sure 24A and 24B aivdm sentences are correctly aggregated.Nirgal2010-05-221-6/+43
| | | | | | | | Patch adds unit tests for all the collision cases. All regression tests pass. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Nirgal's AIVDM fix patch from the dev list, 2010-05-18.Nirgal2010-05-211-36/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always clean the resulting ais buffer, so that no garbage is left. Removed CLEAR macro. * Always returns false when decoding is incomplete, including for unsupported message types. * Warn about unknown messages of type 24C and 24D, return false. * Added support for AIS channels 1, 2 and empty. Maps respectively to 'A', 'B', 'A' and generate an error message. Added FIXME in code. * fragmented message fix. Ok that one is not minimal. It's only reader-sanity minimal ;) - Renamed context var "await" to "decoded_frags", because of its initial value of 0. It now contains the number of successfully decoded fragments in the complete sentence. - Added local var "nfrag" for expected fragment count. It used to be store in context directly, under name "await". Contexts are for keeping data across several calls! Things stored there unconditionally at the beginning of processing shouldn't be there, they should be on stack as temporary values. - Renamed local var "part" as "ifrag", it still contains the fragment id amongst nfrags fragments. All regression tests pass. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Minor bug in AIS sixbit decoding pointed out by Nirgal: 39 -> "'", not "`".Eric S. Raymond2010-05-181-1/+1
|
* Comment fix.Eric S. Raymond2010-05-121-1/+1
|
* Harden AIS driver against malformed or overlong messages.Eric S. Raymond2010-05-121-4/+16
| | | | All regression tests pass.
* Fix AIS type 15 decoding and add a new test from Kurt Schwehr.Eric S. Raymond2010-05-121-3/+4
|
* In AIS message types 6 and 8, split app_id into DAC and FID per ITU-1371.Eric S. Raymond2010-05-101-10/+14
| | | | | | | | | | | | Wire protocol and API minor versions get bumped. All changes are as documented in AIVDM.txt, which now describes known message 6 and 8 subtypes. Involved rebuilding a couple of AIS regression tests. All regression tests pass. Also includes various typo fixes for AIVDM.txt discovered by Baylink while we were reviewing these changes.
* Fix AIVDM channel error message.Beat Bolli2010-05-101-1/+1
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Make AIVDM driver returnb false on truncated sentences.Eric S. Raymond2010-05-091-24/+24
| | | | After a suggestion by Nirgal. All regression test pass, code splint clean.
* C AIS decoder now has separate contexts for A and B channels.Eric S. Raymond2010-05-091-1/+12
| | | | AIS regression test passes.
* Visibility scope reduction for some AIS context.Eric S. Raymond2010-05-091-10/+12
| | | | All regression tests pass.
* Stop trying to special-case terminating whitespace in gpsd_report().Eric S. Raymond2010-05-051-1/+1
|
* Prevent gpsdecode from emitting messages with garbage data when length is wrong.Nirgal2010-04-261-0/+18
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* AIVDM driver reindented. AIVDM regression tests pass.Eric S. Raymond2010-04-141-25/+23
|
* Remove useless pragmas, GNU indent is easily confusd.Eric S. Raymond2010-04-141-30/+7
| | | | All regression tests pass.
* It seems GNU indent can be fatally confused by its own pragmas...Eric S. Raymond2010-04-131-8/+0
|
* Pound indent into less intrusive behavior on this file.Eric S. Raymond2010-04-131-1/+39
|
* Fix embarrassing error in AIS Type 17 interpretation.Eric S. Raymond2010-03-291-5/+8
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-4/+3
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-0/+3
|
* Add packet length checks to the C decoder Eric S. Raymond2010-02-011-4/+112
| | | | And the -m option to the Python decoder.
* Make the decoders use the pad fields as seems to be intended.Eric S. Raymond2010-02-011-1/+1
|
* Correct handling of pad field.Eric S. Raymond2010-01-311-1/+4
|
* Regression test and proper field conditionalization for AIS Type 16Eric S. Raymond2010-01-301-2/+2
|
* Improved handling and documentation of AIS type 22 messages.Eric S. Raymond2010-01-301-4/+9
|
* We now have a test for AIS Type 13 decoding based on live and verified dataEric S. Raymond2010-01-281-2/+2
|
* AIS message length checks throw out valid data...Eric S. Raymond2010-01-281-6/+0
| | | | because trailing garbage isn't uncommon. Stupid fscking vendors...
* More message-length chexks for AIS.Eric S. Raymond2010-01-281-0/+11
|
* Typo fix.Eric S. Raymond2010-01-281-1/+1
|
* Detect corrupted AIS messages of type 25. All regression tests pass.Eric S. Raymond2010-01-281-0/+10
|
* Support for AIS type 25 and 26 messages.Eric S. Raymond2009-12-191-2/+48
|
* Added regression-test loads for AIS message types 12-14.Eric S. Raymond2009-11-301-2/+2
|
* Document that a trailing @ should terminate a packed-six-bit AIS string.Eric S. Raymond2009-11-301-3/+9
| | | | Ensure that both decoders do this.
* Corrections to the AIS specification, and one fieldname.Eric S. Raymond2009-11-261-1/+1
|
* Include the whole config file in gpsd.h.Eric S. Raymond2009-11-201-2/+0
| | | | | | | That is, instead of sectioning out two little config defines and putting them in. This makes gpsd.h self-copntained (e.g. in case it gets installed as a library header) and means we can get rid of most inclusions of it.
* Condition out some debugging stuff no longer used.Eric S. Raymond2009-10-091-0/+4
|
* We now have regression tests for AIS Type 15 and 20 messages.Eric S. Raymond2009-09-241-3/+3
|
* AIS message type 21 now has a regression test.Eric S. Raymond2009-09-231-15/+14
|
* Update lists of known-good AIS decodings.Eric S. Raymond2009-09-231-2/+2
|