summaryrefslogtreecommitdiff
path: root/gpsdecode.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-01 08:15:04 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-01 08:15:04 +0000
commitafb11120aba9cbe40e2e3e0f04550833817253e5 (patch)
treec2b2814ec7c0658cfe662d441cdbb7c009dc40a6 /gpsdecode.c
parent2ca680896b4daea2a9a72e43ccb902e5ea2c9421 (diff)
downloadgpsd-afb11120aba9cbe40e2e3e0f04550833817253e5.tar.gz
More code generation - up to AIS message 13 now.
All regression tests pass.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r--gpsdecode.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/gpsdecode.c b/gpsdecode.c
index bdebafd4..2f4054dd 100644
--- a/gpsdecode.c
+++ b/gpsdecode.c
@@ -49,18 +49,18 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen)
case 3:
(void)snprintf(buf+strlen(buf), buflen-strlen(buf),
"%u,%d,%u,%u,%d,%d,%u,%d,%u,0x%x,%d,0x%x",
- ais->type123.status,
- ais->type123.turn,
- ais->type123.speed,
- (uint)ais->type123.accuracy,
- ais->type123.lon,
- ais->type123.lat,
- ais->type123.course,
- ais->type123.heading,
- ais->type123.second,
- ais->type123.maneuver,
- ais->type123.raim,
- ais->type123.radio);
+ ais->type1.status,
+ ais->type1.turn,
+ ais->type1.speed,
+ (uint)ais->type1.accuracy,
+ ais->type1.lon,
+ ais->type1.lat,
+ ais->type1.course,
+ ais->type1.heading,
+ ais->type1.second,
+ ais->type1.maneuver,
+ ais->type1.raim,
+ ais->type1.radio);
break;
case 4: /* Base Station Report */
case 11: /* UTC/Date Response */
@@ -106,7 +106,7 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen)
ais->type6.seqno,
ais->type6.dest_mmsi,
ais->type6.retransmit,
- ais->type6.application_id,
+ ais->type6.app_id,
ais->type6.bitcount,
gpsd_hexdump(ais->type6.bitdata,
(ais->type6.bitcount+7)/8));
@@ -122,7 +122,7 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen)
case 8: /* Binary Broadcast Message */
(void)snprintf(buf+strlen(buf), buflen-strlen(buf),
"%u,%u:%s",
- ais->type8.application_id,
+ ais->type8.app_id,
ais->type8.bitcount,
gpsd_hexdump(ais->type8.bitdata,
(ais->type8.bitcount+7)/8));