summaryrefslogtreecommitdiff
path: root/cgpxlogger.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename config.h so it can be installed as gpsd_config.h...Chris Kuethe2006-10-261-0/+1
| | | | | | ...for those who want to build their own apps linked against libgps and want the headers to work. Works on OpenBSD, tested by Jeff Francis on OS X and Linux
* Eliminate compiler warnings about unused variables.Chris Kuethe2006-10-261-1/+1
|
* Add subversion ID tags near the beginning of every file.Chris Kuethe2006-09-211-0/+1
| | | | First line where possible, second line for scripts called with #!
* fix the $Id$ keyword substitution hereChris Kuethe2006-09-211-1/+1
|
* Extend copyright year.Chris Kuethe2006-09-031-15/+37
| | | | | | KNF. Wrap long lines. The xml header is a binary blob, and I'm staying clear of it.
* having "char *poll" causes runtime linker warnings. rename to "pollstr"Chris Kuethe2006-09-031-2/+2
| | | | ./cgpxlogger:/usr/lib/libpthread.so.6.3: ./cgpxlogger : WARNING: symbol(poll) size mismatch, relink your program
* Stelian Pop's rewrite of cgpxlogger.c to use libgps and have a J switch.Eric S. Raymond2006-09-031-162/+78
|
* Prevent cgpxlogger from logging non-fixes. From Robin L Darroch on gpsd-dev.Chris Kuethe2006-08-041-0/+1
|
* Change -v to -V for Verbose optionGary E. Miller2006-03-131-1/+4
|
* Parse NMEA-violating data from Antaris ublox correctly.Eric S. Raymond2006-03-021-1/+0
| | | | | Merge cgpxlogger and gpxlogger man pages onto xgps.1. Fix two minor compiler warnings.
* Commits from the Caribbean (I) 18.880471N / 79.755955WChris Kuethe2006-02-211-3/+5
| | | | | | | | | | | | | Fixing two bugs in gpxlogger: 1) don't write track logs when a fix is not available. That means tracking stops if fix is lost, and that means tracks do not start until solutions are available. 2) perror() is apparently fatal, __dead, NOTREACHED, etc. though I see no evidence of this in the manpage. If cgpxlogger loses contact with gpsd, perror() terminates the program, and the logs are left incomplete. That is bad. Now we print out strerror(), and pretend we caught a SIGPIPE. At least I can clean up on the way out...
* stupid bug. don't try to write gpx records when we don't have a fix.Chris Kuethe2006-02-201-1/+2
|
* Various select implementations clobber the timeout structure...Chris Kuethe2005-09-281-3/+4
| | | | ...so set it up before each select. Suggestion from Remco Treffkorn.
* Why did I ever think it was necessary to jump through that convoluted hoop.Chris Kuethe2005-09-281-6/+3
| | | | | | | As I'm reading numbers, I'll just let scanf() sort it out, then I don't need to worry about string read lengths. Also, why did I comment out the test around the timestamp?
* Bad hacker - no donut!Chris Kuethe2005-09-281-4/+4
| | | | | | | | | Unbounded scanf() is bad. I know that latitude and longitude should never be more than 11 characters: 1-3 digits for degrees, 6 digits for fractions of a degree, a decimal point and possibly a minus sign. Eleven characters. Thus, we read up to 12 bytes (make room for the trailing NULL) into a 16 byte buffer (I like powers of 2).
* Small fixes.Chris Kuethe2005-09-281-12/+25
| | | | | | | Fix the removal of the trailing \r\n Fix off-by-one in tokenization Better comments on quantities printed Better tests on whether certain quantities should be printed
* Add cgpxlogger - a GPX logging program that polls gpsd and outputs GPX records.Chris Kuethe2005-09-281-0/+322
Based on my perl script which will be going away shortly and Amaury Jacquot's gpxlogger.c which can go away at his discretion. Usage: ./cgpxlogger [-h] [-s server] [-p port] [-i interval] defaults to './cgpxlogger -s 127.0.0.1 -p 2947 -i 5