summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-07-13 22:22:20 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-07-13 22:22:20 -0400
commite69bcb6b01af6b25c6a525fb1961b92ac04f5213 (patch)
tree1f58e61f24014d94ffa3834787c9b9c5fc5c9ee4 /gps.h
parentc5f760dc7d47007e591324bbf1cf8999a09b3dd0 (diff)
downloadgpsd-e69bcb6b01af6b25c6a525fb1961b92ac04f5213.tar.gz
Bump maximum channel count to 32.
This is in order to accommodate devices that can do GLONASS; requires a library-major-version bump. Required a rebuild of two regression tests duee to the change in the number of GSA fields dumped in pseudo-NMEA output. Other than that, all regression tests pass.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gps.h b/gps.h
index 23ff0bf5..dc441632 100644
--- a/gps.h
+++ b/gps.h
@@ -38,12 +38,13 @@ extern "C" {
/*
* 4.1 - Base version for initial JSON protocol (Dec 2009)
* 4.2 - AIS application IDs split into DAC and FID (May 2010)
+ * 5.0 - MAXCHANNELS bumped from 20 to 32 for GLONASS (July 2010)
*/
-#define GPSD_API_MAJOR_VERSION 4 /* bump on incompatible changes */
-#define GPSD_API_MINOR_VERSION 2 /* bump on compatible changes */
+#define GPSD_API_MAJOR_VERSION 5 /* bump on incompatible changes */
+#define GPSD_API_MINOR_VERSION 0 /* bump on compatible changes */
#define MAXTAGLEN 8 /* maximum length of sentence tag name */
-#define MAXCHANNELS 20 /* maximum GPS channels (*not* satellites!) */
+#define MAXCHANNELS 32 /* must be > 12 GPS + 12 GLONASS + 2 WAAS */
#define GPS_PRNMAX 32 /* above this number are SBAS satellites */
#define GPS_PATH_MAX 64 /* dev files usually have short names */
#define MAXUSERDEVS 4 /* max devices per user */