| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
Most drivers now have a control_send method that takes a
payload. provides whatever checksuming and leader/trailer bytes are
needed, and ships it to a specified active device.
This change should not alter any behavior. All regression tests pass.
|
| |
|
|
|
|
|
|
|
| |
While looking at a compiler warning, I noticed what appears to be a bug in
the zodiac reconfigurator. I think the correct behaviour is to fail if either
of the writes fail. Make it more legible and fix the logic. Also, clean up
some whitespace.
|
| |
|
|
|
|
| |
All regression tests pass.
|
| |
|
|
|
|
|
| |
Change to 'type_name' so gpsd pieces can be used with C++. Reported
by Matt Roberds <mattroberds@cox.net>.
|
|
|
|
| |
with a 1pps signal available.
|
| |
|
|
|
|
|
|
| |
This corresponds to what was done in esr's 12 Dec 2007 to remove
the fixed offset from drivers.c corrections must be handled by
users adding any device related offsets in ntp.conf
|
|
|
|
|
|
|
| |
Note that the implementation is now somewhat different. Before, this
flag prevented low-level writes to the device. Now it prevents operations
that could *cause* low-level writes -- notably subtype probes, mode
changes, and baud-rate changes.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a big, super-intrusive patch but changes no logic at all --
it's all about ripping out some of the gps_device_t structure members
into a new gps_packet_t structure. Even the driver API doesn't change
at all, this is all libgpsd(3) internals being rearranged.
The motivation here is that we want to kill off the ad-hoc Python
implementation of a packet-sniffer in gpsfake. To do that we need to
be able to write a "pure" packet sniffer that uses the same C code as
the daemon's but without being welded to the rest of the libgpsd(3)
code. This is the first step towards that.
|
|
|
|
| |
if configuration is enabled.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch defines a uniform set of log levels and changes all gpsd_report()
instances to use them. In most cases (I'd say about 80%) this will make
no observable difference, as the numeric log levels the code was using were
not too badly inconsistent anyway. The new log level macros are defined
and described in gpsd.h.
The main thing I wanted was to be able to consistently force dumping
of all I/O to devices and clients with -D 4. Some drivers didn't honor
this. One or two still may not through lack of an internal write() wrapper
that does logging; there will need to be some followup changes.
Level 0 messages are always displayed, but to make the semantics clearer
there are two defines LOG_ERR and LOG_SHOUT.
Level 5 is still super-raw I/O reporting. Level 6 and 7 messages are
tagged RAW_LOG+1 and RAW_LOG+2; I was particularly careful about these
because we have one report of a user who is getting good results from
Garmin serial only at -D 7 or up, and perish forbid I should interfere
with that bug being found.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
There is now a new method, "configurator". The initializer method
probes the driver for subtype information (such as a firmware rev)
without changing any device settings. The configurator method does
things like selecting which packets should send.
At the moment, these two methods are always called in tandem, so there
has been effectively no change in behavior. Soon, though, gpsctrl
will call the initializer method but *not* the configurator.
|
|
|
|
|
| |
While investigating this I discovered that part of a previous cange (moving an
ntpshm_put() call out of the NMEA driver) was incorrect and reverted it.
|
|
|
|
|
|
| |
...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 #!
|
|
|
|
| |
All regression tests pass.
|
|
|
|
|
|
|
|
| |
...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.
|
| |
|
|
|
|
|
|
|
| |
GPSD is now free from the often-misused strcat, strcpy and
sprintf. Future code should not use unbounded string functions. Glibc
users, please verify that the integrated strlcat and strlcpy are
correctly linked in.
|
| |
|
| |
|
|
|
|
| |
Fix a bug in Zodiac message sending on big-endian machines.
|
|
|
|
|
|
| |
It's not compiled in by default, but it does require one architecture
change -- device channels is now a driver- specific capability, since
the Thales GPS our TrueNorth user is working with has 14 channels.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Move stuff out of gps.h into driver-specific storage and local
variables.
|
|
|
|
|
| |
...because the NMEA driver sets them in different places. Add
satellite-picture parsing to Evermore driver.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Fix a return type. Note start-of-cycle in some test loads.
Consolidate -DGNU_SOURCE loads.
|
| |
|