diff options
author | Jon Schlueter <jschlueter@redhat.com> | 2015-10-06 03:13:49 -0400 |
---|---|---|
committer | Jon Schlueter <jschlueter@redhat.com> | 2015-10-06 03:17:40 -0400 |
commit | 5c20d030c70578d6d212b00cc972e2b19d5abf9c (patch) | |
tree | 032f3af5412570069bcfd01fe2b9ea65988bc68f /test/sample.aivdm.chk | |
parent | 7a5aa615ba26763169757ebf53ea8611ed9856a4 (diff) | |
download | gpsd-5c20d030c70578d6d212b00cc972e2b19d5abf9c.tar.gz |
Fix json_aivdm_dump for bad temp scaling
- 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
Diffstat (limited to 'test/sample.aivdm.chk')
-rw-r--r-- | test/sample.aivdm.chk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/sample.aivdm.chk b/test/sample.aivdm.chk index b8c188bf..701dc764 100644 --- a/test/sample.aivdm.chk +++ b/test/sample.aivdm.chk @@ -76,3 +76,11 @@ 6|0|002444012|0|255803540|1|1|18|80:01000000000000000000
6|3|002442101|2|246351000|0|1|32|80:00000000000000000100
6|3|002442104|0|245679000|0|1|32|80:00000000000000000100
+8|1|002300061|1|11|1464000|3879000|20T18:27Z|11|12|162|167|473|80|1023|232|2|255|511|3|255|511|255|511|31|255|511|31|255|63|511|255|63|511|15|1023|7|511|3
+8|1|002300057|1|11|1617700|3622270|20T18:27Z|18|22|99|99|569|56|1023|231|2|255|511|3|255|511|255|511|31|255|511|31|255|63|511|255|63|511|15|1023|7|511|3
+8|0|992611190|1|31|1126600|3264671|20T18:28Z|17|127|132|511|14|127|-1|214|3|127|1538|3|0|0|255|511|31|255|511|31|0|0|0|255|63|511|15|-1|7|511|3
+8|1|002300059|1|11|1301953|3606681|20T18:27Z|9|10|69|62|588|95|1023|227|2|255|511|3|255|511|255|511|31|255|511|31|255|63|511|255|63|511|15|1023|7|511|3
+8|1|002300061|1|11|1370000|3837000|20T18:28Z|5|6|189|178|528|80|1023|231|2|255|511|3|255|511|255|511|31|255|511|31|255|63|511|255|63|511|15|1023|7|511|3
+8|1|002300057|1|11|1586491|3616491|20T18:27Z|15|18|115|106|579|67|1023|231|2|255|511|3|255|511|255|511|31|255|511|31|255|63|511|255|63|511|15|1023|7|511|3
+8|1|002300059|1|11|1325788|3622678|20T18:28Z|12|14|92|84|586|90|1023|228|2|255|511|3|255|511|255|511|31|255|511|31|255|63|511|255|63|511|15|1023|7|511|3
+8|0|002766080|1|11|1382800|3532000|20T18:30Z|0|0|0|0|0|0|0|0|0|0|0|0|255|0|0|0|0|0|0|0|0|3|0|0|0|0|0|1|0|0|0
|