summaryrefslogtreecommitdiff
path: root/libgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-08-31 20:50:59 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-08-31 20:50:59 +0000
commit84115883abcc6e083b367c5b1e59215784f87f3e (patch)
treeabdc4d1892290bedd2cddcdad1538b5b10849482 /libgps.c
parentc61e42306cf42981e34d1dae844bb90861e5aced (diff)
downloadgpsd-84115883abcc6e083b367c5b1e59215784f87f3e.tar.gz
Design decision: Trie North data gets mapped into existing fields (track, etc)
...rather than new ones like heading. This gets rid of the HEADING_FIX code contributed but not compiled in by default. Also, fix a place in the zodiac driver that sets a fix rather than newdata member.
Diffstat (limited to 'libgps.c')
-rw-r--r--libgps.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libgps.c b/libgps.c
index ae04e3c7..18727f82 100644
--- a/libgps.c
+++ b/libgps.c
@@ -351,12 +351,6 @@ static void gps_unpack(char *buf, struct gps_data_t *gpsdata)
gpsdata->set |= SPEEDERR_SET;
if (isnan(nf.epc)==0)
gpsdata->set |= CLIMBERR_SET;
-#ifndef HEADING_FIX
- nf.pitch = nf.roll = nf.dip = NAN;
-#else /* HEADING_FIX */
- /* there is no support for a TrueNorth source in the O command at this stage, so libgps-based clients that wish to use the heading provided by such a source must send the sequence "OH\n". N.B. the order is important - "HO\n" will result in heading=NAN. More work is needed to provide any support for pitch, roll and dip. */
- nf.pitch = nf.roll = nf.dip = nf.heading = NAN;
-#endif /* HEADING_FIX */
gpsdata->fix = nf;
(void)strlcpy(gpsdata->tag, tag, MAXTAGLEN+1);
gpsdata->set |= TIME_SET|TIMERR_SET|LATLON_SET|MODE_SET;