diff options
author | Gary E. Miller <gem@rellim.com> | 2018-09-19 18:26:48 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-09-19 18:26:48 -0700 |
commit | 7c8ea9cbcb27790947f758a7c73a108b1c21bfb0 (patch) | |
tree | 9763e6bcefad4d86993b50420a4027980856b5cf /gps.h | |
parent | c37d624b1aff697a04d7c8fa7a526224975a3f96 (diff) | |
download | gpsd-7c8ea9cbcb27790947f758a7c73a108b1c21bfb0.tar.gz |
gps.h: remove unused, and wrong, macros.
GPS_PRN(), GBAS_PRN() and GNSS_PRN() were wishful thinking
and enver used.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -118,16 +118,13 @@ struct gps_fix_t { * NMEA0183 only allocates 1-32 for U.S. GPS IDs; it uses 33-64 for IDs ub the * SBAS range. */ -#define GPS_PRN(n) (((n) >= 1) && ((n) <= 32)) /* U.S. GPS satellite */ -#define GBAS_PRN(n) ((n) >= 64 && ((n) <= 119)) /* Other GNSS (GLONASS) and Ground Based Augmentation System (eg WAAS)*/ #define SBAS_PRN(n) ((n) >= 120 && ((n) <= 158)) /* Satellite Based Augmentation System (eg GAGAN)*/ -#define GNSS_PRN(n) ((n) >= 159 && ((n) <= 210)) /* other GNSS (eg BeiDou) */ /* - * GLONASS birds reuse GPS PRNs. - * It is an NMEA0183 convention to map them to pseudo-PRNs 65..96. - * (some other programs push them to 33 and above). - * The US GPS constellation plans to use the 33-63 range. + * Other GNSS birds reuse GPS PRNs. + * It is an NMEA0183 convention to map them to pseudo-PRNs 65..437. + * Very dependent on NMEA version. + * (some other GPS receivers push them to 33 and above). */ #define GLONASS_PRN_OFFSET 64 |