summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-10-01 23:24:21 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-10-01 23:24:21 +0000
commita93eedd514133ea4a60fd0756947c827546d72c5 (patch)
tree9ae1bba752acb0130dcf1c1cf82e8a4452b28153 /gps.h
parent1711ebc03a92948579855c860759f18fa9d328d0 (diff)
downloadgpsd-a93eedd514133ea4a60fd0756947c827546d72c5.tar.gz
Clear up some driver-level confusion surrounding timestamp setting.
There was lots of duplicative setting of gpsdata.fix.time and gpsdata.sentence_time. The latter is now gone. The only case the sentence_time member was actually used for was timestamping skyviews; a new gpsdata.skyview_time now handles that, and all drivers set it properly.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps.h b/gps.h
index e8d457bc..8414f525 100644
--- a/gps.h
+++ b/gps.h
@@ -936,6 +936,7 @@ struct gps_data_t {
double epe; /* spherical position error, 95% confidence (meters) */
/* satellite status -- valid when satellites > 0 */
+ double skyview_time; /* skyview timestamp */
int satellites_visible; /* # of satellites in view */
int PRN[MAXCHANNELS]; /* PRNs of satellite */
int elevation[MAXCHANNELS]; /* elevation of satellite */
@@ -945,7 +946,6 @@ struct gps_data_t {
struct devconfig_t dev; /* device that shipped last update */
char tag[MAXTAGLEN+1]; /* tag of last sentence processed */
- double sentence_time; /* sentence timestamp (not the fix time!) */
/* hook functions */
int gps_fd; /* socket or file descriptor to GPS */