diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2008-06-27 21:03:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2008-06-27 21:03:02 +0000 |
commit | b38e329a76f4863aca356ba2fba1a86a8594f740 (patch) | |
tree | abe02e2ec648daeeaa4b762bfe57f556608e8b5b /gps.h | |
parent | 6e11a47ba5f3d589e635b58784f99a69b698ad5b (diff) | |
download | gpsd-b38e329a76f4863aca356ba2fba1a86a8594f740.tar.gz |
Typo fix and documentation tweak and a bit of type refactoring.
This is preparatory to RTCM3 support.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -72,7 +72,7 @@ struct gps_fix_t { }; /* - * From the RCTM104 standard: + * From the RCTM104 2.x standard: * * "The 30 bit words (as opposed to 32 bit words) coupled with a 50 Hz * transmission rate provides a convenient timing capability where the @@ -99,13 +99,15 @@ struct gps_fix_t { typedef /*@unsignedintegraltype@*/ uint32_t isgps30bits_t; #endif /* S_SPLINT_S */ +typedef enum {unknown, gps, glonass, galileo} navsystem; + struct rtcm2_t { /* header contents */ unsigned type; /* RTCM message type */ unsigned length; /* length (words) */ double zcount; /* time within hour: GPS time, no leap secs */ unsigned refstaid; /* reference station ID */ - unsigned seqnum; /* nessage sequence number (modulo 8) */ + unsigned seqnum; /* message sequence number (modulo 8) */ unsigned stathlth; /* station health */ /* message data in decoded form */ @@ -126,7 +128,7 @@ struct rtcm2_t { } ecef; struct { /* data from type 4 messages */ bool valid; /* is message well-formed? */ - enum {gps, glonass, unknown} system; + navsystem system; enum {local, global, invalid} sense; char datum[6]; double dx, dy, dz; |