summaryrefslogtreecommitdiff
path: root/libgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-08-01 15:15:55 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-08-01 15:15:55 +0000
commit1aead380840db92adbb6ed3cdb213e93276956a9 (patch)
tree6e907f5825b16671d29f7cae1b01ebdd4139bc96 /libgps.c
parentef029f6a2a1a47be5bd566a21b9b73d1ff0dd22f (diff)
downloadgpsd-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 'libgps.c')
-rw-r--r--libgps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgps.c b/libgps.c
index 50f5edd6..574ab9ed 100644
--- a/libgps.c
+++ b/libgps.c
@@ -257,7 +257,7 @@ static void gps_unpack(char *buf, struct gps_data_t *gpsdata)
char eph[20], epv[20], track[20],speed[20], climb[20];
char epd[20], eps[20], epc[20];
int st = sscanf(sp+2,
- "%6s %lf %lf %lf %lf %s %s %s %s %s %s %s %s %s",
+ "%8s %lf %lf %lf %lf %s %s %s %s %s %s %s %s %s",
tag, &nf.time, &nf.ept,
&nf.latitude, &nf.longitude,
alt, eph, epv, track, speed, climb,
@@ -289,7 +289,7 @@ static void gps_unpack(char *buf, struct gps_data_t *gpsdata)
gpsdata->set |= SPEEDERR_SET;
if (isnan(nf.epc)==0)
gpsdata->set |= CLIMBERR_SET;
-
+ nf.pitch = nf.roll = nf.dip = NAN;
gpsdata->fix = nf;
(void)strcpy(gpsdata->tag, tag);
gpsdata->set = TIME_SET|TIMERR_SET|LATLON_SET|MODE_SET;