diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-28 12:30:33 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-28 12:30:33 +0000 |
commit | 3cca5bc4c78f2e364c87605d150621ca17ae401f (patch) | |
tree | 34dc9495ec408a9e4e2ccbbce3543d992adb8c2d /test/synthetic-rtcm2.json | |
parent | c9234e4cdb313dd47566c5970d84e59e23a4cc1c (diff) | |
download | gpsd-3cca5bc4c78f2e364c87605d150621ca17ae401f.tar.gz |
Use enumerated string values for the "system" field in RTCM2 type 4 messages.
Register a synthetic test load for checking decoding of unusual message types.
Diffstat (limited to 'test/synthetic-rtcm2.json')
-rw-r--r-- | test/synthetic-rtcm2.json | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/synthetic-rtcm2.json b/test/synthetic-rtcm2.json new file mode 100644 index 00000000..23beecca --- /dev/null +++ b/test/synthetic-rtcm2.json @@ -0,0 +1,10 @@ +# This is a file of synthetic dumps of RTCM2 JSON designed to torture-test +# the library decoder. gpsdecode -e -j of this file should duplicate it. +# No messages 1 and 9 as those are generated by our binary sample +{"class":"RTCM2","type":3,"station_id":268,"zcount":250.8,"seqnum":1,"length":5,"station_health":0,"x":222.18,"y":333.30,"z":444.36} +{"class":"RTCM2","type":4,"station_id":268,"zcount":252.6,"seqnum":3,"length":4,"station_health":0,"system:"GPS","sense":1,"datum":WGS84","dx":25.6,"dy":30.1,"dz":32.7} +{"class":"RTCM2","type":5,"station_id":268,"zcount":253.8,"seqnum":4,"length":4,"station_health":0,"satellites":[{"ident":29,"iodl":false,"health":0,"snr":53,"health_en":false,"new_data":true,"los_warning":false,"tou":0},{"ident":12,"iodl":false,"health":0,"snr":26,"health_en":false,"new_data":false,"los_warning":true,"tou":0},{"ident":3,"iodl":false,"health":0,"snr":50,"health_en":false,"new_data":true,"los_warning":false,"tou":0},{"ident":15,"iodl":false,"health":0,"snr":41,"health_en":false,"new_data":false,"los_warning":true,"tou":0}]} +{"class":"RTCM2","type":6,"station_id":268,"zcount":255.0,"seqnum":5,"length":0,"station_health":0} +{"class":"RTCM2","type":7,"station_id":268,"zcount":256.8,"seqnum":6,"length":12,"station_health":0,"satellites":[{"latitude":38.8379,"longitude":-121.3532,"range":250,"frequency":313.2,"health":0,"station_id":764,"bitrate":200},{"latitude":39.4229,"longitude":-121.6059,"range":402,"frequency":317.2,"health":0,"station_id":878,"bitrate":100},{"latitude":37.1789,"longitude":-122.3804,"range":333,"frequency":291.3,"health":0,"station_id":883,"bitrate":100},{"latitude":40.4337,"longitude":-124.4020,"range":333,"frequency":290.1,"health":0,"station_id":885,"bitrate":100}]} +{"class":"RTCM2","type":16,"station_id":268,"zcount":258.6,"seqnum":7,"length":9,"station_health":0,"message":"ABRACADABRA SHEMHAMPHORASH"} +{"class":"RTCM2","type":23,"station_id":268,"zcount":258.6,"seqnum":0,"length":1,"station_health":0,"data":["0xffeeddcc"]} |