diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-05-31 07:49:00 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-05-31 07:49:00 -0400 |
commit | 4e4ac8884e5469d3843f4a775559f22ff7c8d292 (patch) | |
tree | c57964f522e6ff392c81894ffefc9c6f956f8cae /gps.h | |
parent | 0e98bf00b5a63798e30026d9198892b7c24c4c71 (diff) | |
download | gpsd-4e4ac8884e5469d3843f4a775559f22ff7c8d292.tar.gz |
In AIS, partial support for VTS-Generated/Synthetic Targets.
JSON parsing of string IDs won't work yet; code generator needs
some extension.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -1118,6 +1118,30 @@ struct ais_t struct { unsigned int airdraught; /* Air Draught */ } dac1fid15; + /* IMO289 - VTS-generated/Synthetic Targets */ + struct { + signed int ntargets; + struct target_t { +#define DAC1FID17_IDTYPE_MMSI 0 +#define DAC1FID17_IDTYPE_IMO 1 +#define DAC1FID17_IDTYPE_CALLSIGN 2 +#define DAC1FID17_IDTYPE_OTHER 3 + unsigned int idtype; /* Identifier type */ + union { /* Target identifier */ + unsigned int mmsi; + unsigned int imo; + char callsign[7+1]; + char other[7+1]; + } id; + signed int lat; /* Latitude */ + signed int lon; /* Longitude */ +#define DAC1FID17_COURSE_NOT_AVAILABLE 360 + unsigned int course; /* Course Over Ground */ + unsigned int second; /* Time Stamp */ +#define DAC1FID17_SPEED_NOT_AVAILABLE 255 + unsigned int speed; /* Speed Over Ground */ + } targets[4]; + } dac1fid17; /* IMO 289 - Marine Traffic Signal */ struct { unsigned int linkage; /* Message Linkage ID */ |