diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-08-01 15:15:55 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-08-01 15:15:55 +0000 |
commit | 1aead380840db92adbb6ed3cdb213e93276956a9 (patch) | |
tree | 6e907f5825b16671d29f7cae1b01ebdd4139bc96 /evermore.c | |
parent | ef029f6a2a1a47be5bd566a21b9b73d1ff0dd22f (diff) | |
download | gpsd-1aead380840db92adbb6ed3cdb213e93276956a9.tar.gz |
True North support integrated.
It's not compiled in by default, but it does require one architecture
change -- device channels is now a driver- specific capability, since
the Thales GPS our TrueNorth user is working with has 14 channels.
Diffstat (limited to 'evermore.c')
-rw-r--r-- | evermore.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -116,6 +116,8 @@ #define PUT_ORIGIN 0 #include "bits.h" +#define EVERMORE_CHANNELS 12 + /*@ +charint -usedef -compdef @*/ static bool evermore_write(int fd, unsigned char *msg, size_t msglen) { @@ -268,7 +270,7 @@ gps_mask_t evermore_parse(struct gps_device_t *session, unsigned char *buf, size gpsd_report(4, "Warning: EverMore packet has information about %d satellites!\n", session->gpsdata.satellites); } - if (session->gpsdata.satellites > MAXCHANNELS) session->gpsdata.satellites = MAXCHANNELS; + if (session->gpsdata.satellites > EVERMORE_CHANNELS) session->gpsdata.satellites = EVERMORE_CHANNELS; satcnt = 0; for (i = 0; i < (size_t)session->gpsdata.satellites; i++) { int prn; @@ -537,6 +539,7 @@ struct gps_type_t evermore_binary = .typename = "EverMore binary", /* full name of type */ //.trigger = "$PEMT,100,05.", /* recognize the type */ .trigger = "\x10\x02\x04\x38\x8d\xc5\x10\x03", + .channels = EVERMORE_CHANNELS, /* consumer-grade GPS */ .probe = NULL, /* no probe */ .initializer = evermore_initializer, /* initialize the device */ .get_packet = packet_get, /* use generic one */ |