summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-09-19 18:26:48 -0700
committerGary E. Miller <gem@rellim.com>2018-09-19 18:26:48 -0700
commit7c8ea9cbcb27790947f758a7c73a108b1c21bfb0 (patch)
tree9763e6bcefad4d86993b50420a4027980856b5cf /gps.h
parentc37d624b1aff697a04d7c8fa7a526224975a3f96 (diff)
downloadgpsd-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.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/gps.h b/gps.h
index 2b23df98..6ed827da 100644
--- a/gps.h
+++ b/gps.h
@@ -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