diff options
author | Gary E. Miller <gem@rellim.com> | 2018-09-19 15:53:24 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-09-19 15:53:24 -0700 |
commit | 77c19c5f519616f6b82fc7e6d64d918a785f9ba4 (patch) | |
tree | c4c0e4293fbcbd385656a0ab2f62b1af33595c73 /gps.h | |
parent | ea669eea5b814a30dc1081d18cf84aa066e74428 (diff) | |
download | gpsd-77c19c5f519616f6b82fc7e6d64d918a785f9ba4.tar.gz |
gps.h: PRN is a mess, add gnssid:svid.
INCOMPATIBLE CHANGE!
No two GPS encode PRN the same way, so be more explicit about
constellation and PRN within the constellation.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -1820,9 +1820,25 @@ struct ais_t struct satellite_t { double ss; /* signal-to-noise ratio, 0 to 254 dB, -1 for n/a */ bool used; /* this satellite used in solution */ - short PRN; /* PRN of this satellite, 1 to 437, 0 for n/a */ + /* PRN of this satellite, 1 to 437, 0 for n/a + * sadly there is no standard, but many different implementations of + * how to code PRN + */ + short PRN; short elevation; /* elevation of satellite, -90 to 90 deg, -91 for n/a */ short azimuth; /* azimuth, 0 to 359 deg, -1 for n/a */ + /* gnssid:svid, as defined by u-blox 8: + * gnssid svid (native PRN) + * 0 = GPS 1-32 + * 1 = SBAS 120-158 + * 2 = Galileo 1-36 + * 3 - BeiDou 1-37 + * 4 = IMES 1-10 + * 5 = QZSS 1-5 + * 6 = GLONASS 1-32, 22255 + */ + unsigned char gnssid; + unsigned char svid; }; struct attitude_t { |