summaryrefslogtreecommitdiff
path: root/zodiac.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix unclean references to the packet output buffer from bits.h.Eric S. Raymond2008-07-081-99/+104
|
* 'typename' is a reserved word in C++. Gary E. Miller2008-01-191-2/+2
| | | | | Change to 'type_name' so gpsd pieces can be used with C++. Reported by Matt Roberds <mattroberds@cox.net>.
* Added a warning against changing a magic number without live testingMick Durkin2007-12-211-0/+4
| | | | with a 1pps signal available.
* Restored "magic" value because it affected 1pps with this driverMick Durkin2007-12-201-1/+1
|
* Correct zodiac.c so no "magic" value is used to offset the time sent to ntpd.Mick Durkin2007-12-161-1/+1
| | | | | | 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
* Pull the device_readonly variable into the global context structure.Eric S. Raymond2007-06-011-5/+0
| | | | | | | 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.
* make the zodiac writer respect device_readonlyChris Kuethe2007-04-061-0/+4
|
* Split the packet-sniffer internals out of the session structure. Eric S. Raymond2006-11-301-10/+10
| | | | | | | | | | | | | 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.
* Split wrapup method into revert and wrapup. The revert method is onlt calledEric S. Raymond2006-11-141-0/+5
| | | | if configuration is enabled.
* Convert some log levels I missed first time around.Eric S. Raymond2006-11-021-1/+1
|
* Untested (but harmless if buggy) code to get subtype info from a Zodiac.Eric S. Raymond2006-11-021-0/+15
|
* Define uniform log level macros.Eric S. Raymond2006-11-021-48/+48
| | | | | | | | | | | | | | | | | | | | | | 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.
* Rename some methods for clarity.Eric S. Raymond2006-10-301-3/+3
|
* Split the "initializer" driver method in two.Eric S. Raymond2006-10-301-0/+1
| | | | | | | | | | | 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.
* Fix libgpsd(3) so it's usable when ntpshm_init() has not been called.Eric S. Raymond2006-10-301-1/+1
| | | | | 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.
* Rename config.h so it can be installed as gpsd_config.h...Chris Kuethe2006-10-261-0/+2
| | | | | | ...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
* Partial splint cleanup.Eric S. Raymond2006-10-261-0/+1
|
* mark the (obvious) end of the ALLOW_RECONFIGURE conditionalChris Kuethe2006-10-101-1/+1
|
* zodiac now honours --disable-reconfigureChris Kuethe2006-10-101-1/+7
|
* 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 #!
* The big dead-storage elimination: we get rid of the newdata member.Eric S. Raymond2006-09-091-18/+18
| | | | All regression tests pass.
* Design decision: Trie North data gets mapped into existing fields (track, etc)Eric S. Raymond2006-08-311-1/+1
| | | | | | | | ...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.
* splint cleanup after CK's strcat()/strlcopy() cleanup.Eric S. Raymond2006-08-201-1/+1
|
* String safety, courtesy of snprintf, strlcat and strlcpy.Chris Kuethe2006-08-191-1/+1
| | | | | | | 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.
* Jerome Cornet's cleaner fix for the Earthmate.Eric S. Raymond2006-08-161-1/+16
|
* Fix missing semicolon. From Robin L Darroch on gpsd-devChris Kuethe2006-08-121-1/+1
|
* Disable iTalk by default.Eric S. Raymond2006-07-131-2/+3
| | | | Fix a bug in Zodiac message sending on big-endian machines.
* True North support integrated.Eric S. Raymond2005-08-011-0/+1
| | | | | | 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.
* Support compilers that can't do anonymous unions.Eric S. Raymond2005-07-261-9/+9
|
* Add little-endian macros to bits.h. More fixes for the DBUS problem.Eric S. Raymond2005-07-181-0/+2
|
* Switch to using C99 initializers everywhere.Eric S. Raymond2005-07-161-13/+13
|
* Architecture extension; handle variable sample rates.Eric S. Raymond2005-07-111-0/+2
|
* We know how to scale error estimates now.Eric S. Raymond2005-07-081-5/+5
|
* Report uniform 95% confidence intervals.Eric S. Raymond2005-07-081-6/+6
|
* Big driver structure refactoring.Eric S. Raymond2005-07-081-8/+13
| | | | | Move stuff out of gps.h into driver-specific storage and local variables.
* USED_SET needs to be a separate mask from SATELLITES_SET...Eric S. Raymond2005-07-081-1/+1
| | | | | ...because the NMEA driver sets them in different places. Add satellite-picture parsing to Evermore driver.
* Quiet splint.Eric S. Raymond2005-07-051-1/+1
|
* Add status mode setting to Zodiac driver.Eric S. Raymond2005-07-041-1/+8
|
* Move driver-specific members into a union in order to save some storage.Eric S. Raymond2005-07-011-9/+9
|
* More prep work for 16-channel receivers.Eric S. Raymond2005-06-221-3/+3
|
* New packet-return API using newdata and explicit merging.Eric S. Raymond2005-06-151-17/+17
|
* First cut at implementing the CYCLE_START_SET flag.Eric S. Raymond2005-06-151-1/+1
|
* Various small cleanups.Eric S. Raymond2005-06-151-2/+1
| | | | | Fix a return type. Note start-of-cycle in some test loads. Consolidate -DGNU_SOURCE loads.
* Add Zodiac log to regression test.Eric S. Raymond2005-06-131-0/+6
|
* Refactor so the raw_hook dumping is done in handle_packet...Eric S. Raymond2005-06-121-27/+7
| | | | ...after the driver is called, rather than within the driver.
* Port hack for OpebBSD; base code on C99 round()/roundf().Eric S. Raymond2005-06-111-1/+1
|
* New version of bits.h with fixed-width types for cross-architecture portability.Eric S. Raymond2005-06-101-8/+1
| | | | Also, the bit-getter macros from zodiac.c now live here.
* OpenBSD port change: round[f] -> rint[f].Eric S. Raymond2005-06-101-1/+1
|
* Do some int to size_t conversions we didn't catch the first time around.Eric S. Raymond2005-06-101-3/+3
|
* Type cleanup.Eric S. Raymond2005-06-101-1/+1
| | | | | Mainly introducing size_t, speed_t, and bool to replace plain integral types. Passes all regression tests.