summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-05-28 00:19:58 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-05-28 00:19:58 +0000
commite8bccb91d5392f7166250b8afc6da9c670d1b229 (patch)
tree4effdd70982b97dd3ec6a9f92bad80bfb8674c87 /gps.h
parent83f2d075636694624feeba4c0284b7aff6f8ef61 (diff)
downloadgpsd-e8bccb91d5392f7166250b8afc6da9c670d1b229.tar.gz
First cut at support for AIS Type 21 messages (not tested).
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index 5a6f0273..2f647eb9 100644
--- a/gps.h
+++ b/gps.h
@@ -630,6 +630,26 @@ struct ais_t
bool assigned; /* assigned-mode flag */
uint spare; /* spare bits */
} type19;
+ /* Type 21 - Aids to Navigation Report */
+ struct {
+ uint type; /* aid type */
+ char name[35]; /* name of aid to navigation */
+ bool accuracy; /* position accuracy */
+ int longitude; /* longitude */
+ int latitude; /* latitude */
+ uint to_bow; /* dimension to bow */
+ uint to_stern; /* dimension to stern */
+ uint to_port; /* dimension to port */
+ uint to_starboard; /* dimension to starboard */
+ uint epfd; /* type of EPFD */
+ uint utc_second; /* second of UTC timestamp */
+ bool off_position; /* off-position indicator */
+ uint regional; /* regional reserved field */
+ bool raim; /* RAIM flag */
+ bool virtual_aid; /* is virtual station? */
+ bool assigned; /* assigned-mode flag */
+ uint spare; /* unused */
+ } type21;
};
};