summaryrefslogtreecommitdiff
path: root/gpxlogger.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-11 16:06:11 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-11 16:06:11 +0000
commitf55757cf2dabd99e75895a2808763dc9098b963e (patch)
tree28297c24f6aacf8b4c10606e13b317fba3865120 /gpxlogger.c
parent72f71599cb2175603f39625f09e6339362be4d4e (diff)
downloadgpsd-f55757cf2dabd99e75895a2808763dc9098b963e.tar.gz
J command and switch are gone.
Now that we have reliable end-of-cycle detection in NMEA, we can always clear the fixbuffer at start of cycle and accumulate data until we transmit at end of cycle. Accordingly, there is no longer any bneed for users to choose between jittery-but-correct and buffered-but-laggy reports. Accordingly, the daemon 'J' command is no longer necessary. All the client side options and commands connected with it can go away too.
Diffstat (limited to 'gpxlogger.c')
-rw-r--r--gpxlogger.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/gpxlogger.c b/gpxlogger.c
index d8eefec4..a985a2d1 100644
--- a/gpxlogger.c
+++ b/gpxlogger.c
@@ -264,7 +264,6 @@ static int dbus_mainloop(void)
**************************************************************************/
struct fixsource_t source;
-static int lcasoc = 0;
static void process(struct gps_data_t *gpsdata,
char *buf UNUSED, size_t len UNUSED, int level UNUSED)
@@ -290,10 +289,7 @@ static int socket_mainloop(void)
}
gps_set_raw_hook(gpsdata, process);
- if (lcasoc)
- gps_stream(gpsdata, WATCH_ENABLE | WATCH_NOJITTER);
- else
- gps_stream(gpsdata, WATCH_ENABLE);
+ gps_stream(gpsdata, WATCH_ENABLE);
for(;;){
int data;
@@ -338,7 +334,7 @@ int main (int argc, char** argv)
int ch;
progname = argv[0];
- while ((ch = getopt(argc, argv, "hi:j:V")) != -1){
+ while ((ch = getopt(argc, argv, "hi:V")) != -1){
switch (ch) {
case 'i': /* set polling interfal */
timeout = (unsigned int)atoi(optarg);
@@ -348,10 +344,6 @@ int main (int argc, char** argv)
fprintf(stderr,
"WARNING: track timeout is an hour or more!\n");
break;
- case 'j': /* set data smoothing */
- lcasoc = (unsigned int)atoi(optarg);
- lcasoc = lcasoc ? 1 : 0;
- break;
case 'V':
(void)fprintf(stderr, "SVN ID: $Id$ \n");
exit(0);