| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
...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
|
| |
|
|
|
|
| |
First line where possible, second line for scripts called with #!
|
| |
|
|
|
|
|
|
| |
KNF.
Wrap long lines.
The xml header is a binary blob, and I'm staying clear of it.
|
|
|
|
| |
./cgpxlogger:/usr/lib/libpthread.so.6.3: ./cgpxlogger : WARNING: symbol(poll) size mismatch, relink your program
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Merge cgpxlogger and gpxlogger man pages onto xgps.1.
Fix two minor compiler warnings.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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...
|
| |
|
|
|
|
| |
...so set it up before each select. Suggestion from Remco Treffkorn.
|
|
|
|
|
|
|
| |
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?
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
| |
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
|
|
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
|