diff options
author | Christian Gagneraud <cgagneraud@techworks.ie> | 2012-06-05 14:08:19 +0100 |
---|---|---|
committer | Christian Gagneraud <chris@techworks.ie> | 2012-06-05 15:58:02 +0100 |
commit | 0e8d0f6367a25c773021b9b3a73b7ce8cb953af7 (patch) | |
tree | 66b8d2e8477831cb804ae8262bb6860299bb1999 /gpsdecode.c | |
parent | 452520a8efe303ff8abbaa8b5d4eccc01a478991 (diff) | |
download | gpsd-0e8d0f6367a25c773021b9b3a73b7ce8cb953af7.tar.gz |
[AIS] Met/Hydro: fixes and improvements
Diffstat (limited to 'gpsdecode.c')
-rw-r--r-- | gpsdecode.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gpsdecode.c b/gpsdecode.c index c510cc66..0198a66c 100644 --- a/gpsdecode.c +++ b/gpsdecode.c @@ -194,6 +194,47 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen) ais->type8.dac1fid11.ice); imo = true; break; + case 31: /* IMO289 - Met/Hydro message */ + (void)snprintf(buf + strlen(buf), buflen - strlen(buf), + "|%d|%d|%02uT%02u:%02uZ|%u|%u|%u|%u|%d|%u|%d|%u|%u|%u|%d|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%u|%d|%u|%u|%u", + ais->type8.dac1fid31.lon, + ais->type8.dac1fid31.lat, + ais->type8.dac1fid31.day, + ais->type8.dac1fid31.hour, + ais->type8.dac1fid31.minute, + ais->type8.dac1fid31.wspeed, + ais->type8.dac1fid31.wgust, + ais->type8.dac1fid31.wdir, + ais->type8.dac1fid31.wgustdir, + ais->type8.dac1fid31.airtemp, + ais->type8.dac1fid31.humidity, + ais->type8.dac1fid31.dewpoint, + ais->type8.dac1fid31.pressure, + ais->type8.dac1fid31.pressuretend, + ais->type8.dac1fid31.visibility, + ais->type8.dac1fid31.waterlevel, + ais->type8.dac1fid31.leveltrend, + ais->type8.dac1fid31.cspeed, + ais->type8.dac1fid31.cdir, + ais->type8.dac1fid31.cspeed2, + ais->type8.dac1fid31.cdir2, + ais->type8.dac1fid31.cdepth2, + ais->type8.dac1fid31.cspeed3, + ais->type8.dac1fid31.cdir3, + ais->type8.dac1fid31.cdepth3, + ais->type8.dac1fid31.waveheight, + ais->type8.dac1fid31.waveperiod, + ais->type8.dac1fid31.wavedir, + ais->type8.dac1fid31.swellheight, + ais->type8.dac1fid31.swellperiod, + ais->type8.dac1fid31.swelldir, + ais->type8.dac1fid31.seastate, + ais->type8.dac1fid31.watertemp, + ais->type8.dac1fid31.preciptype, + ais->type8.dac1fid31.salinity, + ais->type8.dac1fid31.ice); + imo = true; + break; } break; } |