diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-12-28 03:58:47 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-12-28 03:58:47 +0000 |
commit | 6865d112c3865cf3456a75411aad7dc09627c197 (patch) | |
tree | 89228ee8a753aac499b11dda1f1c5c076e667c9a /gpsd.h | |
parent | 546a4d9fe6a6db19618f81933609d3e32ffeac7a (diff) | |
download | gpsd-6865d112c3865cf3456a75411aad7dc09627c197.tar.gz |
having both enable-italk and enable-itrax is dumb.
now, all itrax features (including italk and $PFST) shall be
controlled with enable-itrax.
obviously i'm hacking on italk again, so make the italk driver compile again.
Diffstat (limited to 'gpsd.h')
-rw-r--r-- | gpsd.h | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -18,7 +18,7 @@ #ifdef EARTHMATE_ENABLE #define ZODIAC_ENABLE #endif -#if defined(ZODIAC_ENABLE) || defined(SIRF_ENABLE) || defined(GARMIN_ENABLE) || defined(TSIP_ENABLE) || defined(EVERMORE_ENABLE) || defined(ITALK_ENABLE) || defined(UBX_ENABLE) +#if defined(ZODIAC_ENABLE) || defined(SIRF_ENABLE) || defined(GARMIN_ENABLE) || defined(TSIP_ENABLE) || defined(EVERMORE_ENABLE) || defined(ITRAX_ENABLE) || defined(UBX_ENABLE) #define BINARY_ENABLE #endif #if defined(TRIPMATE_ENABLE) || defined(BINARY_ENABLE) @@ -41,11 +41,13 @@ enum isgpsstat_t { /* * The packet buffers need to be as long than the longest packet we * expect to see in any protocol, because we have to be able to hold - * an entire packet for checksumming. Thus, in particular, they need - * to be as long as a UBX SVINFO packet, up to 200 bytes payload and 6 - * bytes of header/length/checksum/trailer. + * an entire packet for checksumming... + * First we thought it had to be big enough for a SiRF Measured Tracker + * Data packet (188 bytes). Then it had to be big enough for a UBX SVINFO + * packet (206 bytes). Now it turns out that a couple of ITALK messages are + * over 512 bytes. I know we like verbose output, but this is ridiculous. */ -#define MAX_PACKET_LENGTH 206 /* 6 + 8 + 192 */ +#define MAX_PACKET_LENGTH 516 /* 7 + 506 + 3 */ /* * We used to define the input buffer length as MAX_PACKET_LENGTH*2+1. @@ -55,7 +57,7 @@ enum isgpsstat_t { * device to be very big. I sometimes see a read of 250 characters or * more." */ -#define INPUT_BUFFER_LENGTH 1024 +#define INPUT_BUFFER_LENGTH 1536 struct gps_packet_t { /* packet-getter internals */ @@ -136,7 +138,7 @@ extern void rtcm_output_magnavox(isgps30bits_t *, FILE *); #ifdef EARTHMATE_ENABLE #define ZODIAC_ENABLE #endif -#if defined(ZODIAC_ENABLE) || defined(SIRF_ENABLE) || defined(GARMIN_ENABLE) || defined(TSIP_ENABLE) || defined(EVERMORE_ENABLE) || defined(ITALK_ENABLE) +#if defined(ZODIAC_ENABLE) || defined(SIRF_ENABLE) || defined(GARMIN_ENABLE) || defined(TSIP_ENABLE) || defined(EVERMORE_ENABLE) || defined(ITRAX_ENABLE) #define BINARY_ENABLE #endif #if defined(TRIPMATE_ENABLE) || defined(BINARY_ENABLE) |