summaryrefslogtreecommitdiff
path: root/driver_garmin.c
Commit message (Collapse)AuthorAgeFilesLines
* Code is now static-checker clean with splint, cppcheck, and Coverity.Eric S. Raymond2013-11-191-1/+5
| | | | All regression tests pass. PPS is live.
* More consistent ise of LOG_PROG.Eric S. Raymond2013-11-121-4/+5
| | | | This logging level is intended to directly explain accompanying I/O messages.
* Reduce gpsd log verbosity a lot.Eric S. Raymond2013-11-121-9/+9
| | | | | | | | | | Way too much logging was happening at LOG_IO level, which is intended for watching data traffic in and out of the daemon rather than all the minutiae of data analysis - that's LOG_DATA. Also, LOG_DATA gets pushed down two levels. The effect is that -D 5 means exactly what it did, but for purposes other than driver debugging -D 4 now suffices.
* Rename and rationalize driver table instances. No logic changes.Eric S. Raymond2013-11-121-3/+3
|
* Fix compiler warnings with clang 4.2 on OS X 10.7.5Beat Bolli2013-11-061-1/+1
| | | | | | | | | | | On OS X, /usr/include/sys/termios.h typedefs speed_t as unsigned long. On Linux, it is an unsigned int. This causes printf() format string warnings. Fix this by down-casting to an unsigned int and using "%u" as format. Also discard a close() result. Signed-off-by: Beat Bolli <bbolli@ewanet.ch> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Contain the assumption that time hinting is done to NTPD.Eric S. Raymond2013-10-311-12/+12
| | | | | | | Because it might be going to chrony. Or something else. No logic changes, just name changes and one new derived #define, TIMEHINT_ENABLE.
* Revert "Separate ntpd support from chrony support, step 1."Eric S. Raymond2013-10-301-12/+12
| | | | We'll have to sneak up on this change more slowly.
* Separate ntpd support from chrony support, step 1.Eric S. Raymond2013-10-301-12/+12
| | | | | | | | | | | | | ntp_offset becomes time_offset. There is a new config symbol CHRONY_ENABLE; most time service code is npw controlled by TIMESERVICE_ENABLE. The file ntpshm.c becomes timeexport.c This change is not complete. More disentanglement has to be done inside timeexport.c itself; at the moment enabling one but not both of ntpshm or chrony will probably break its compile. The point of getting this commit out is so Gary will see the new baseline code ASAP. All regression tests pass.
* More efficiebt sticky-flagging.Eric S. Raymond2013-10-151-3/+3
|
* OK, visualize as a method was a bad idea. All regression tests pass.Eric S. Raymond2013-10-141-9/+0
|
* Create driver slot and scons option for a visualizer driver method.Eric S. Raymond2013-10-131-0/+9
|
* Lower verbosity.Eric S. Raymond2013-10-091-1/+1
|
* Change the logic for managing the drive mode bit to report reality...Eric S. Raymond2013-10-041-5/+0
| | | | ...rather than setting it ad-hoc on a per-driver basis.
* Change gpsd_report to no longer use a global. All regression tests pass.Eric S. Raymond2013-09-291-88/+134
| | | | | | | | This is a large, ugly change. But without it we can't troubleshoot the ICP/IP-source initialization bug properly - colliding definitions of gpsd_report() were interfering with error reporting early in gpsd runs. More cleanup work remains to be done, but at least this is working.
* More cppcheck cleanup.Eric S. Raymond2013-09-171-1/+0
|
* Typo fixes.Eric S. Raymond2013-01-221-2/+2
|
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-5/+5
|
* Suppress a useless cppcheck warning.Eric S. Raymond2012-06-021-0/+1
|
* Fix a block nesting error in the Garmin driver.Beat Bolli2012-05-101-1/+1
| | | | | | Introduced in commit 470b53e846f13ab1c660cd05fe901d1e801df4e3. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Shutup Coverity and Splint about a hackish #ifdefGary E. Miller2012-05-091-4/+4
|
* Garmin binary driver. Improve set driver mode.Michael Tatarinov2011-10-261-1/+4
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Garmin binary driver. Set driver mode to binary.Michael Tatarinov2011-10-261-0/+2
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Revert "Garmin binary driver. Fixed bug in getting leap seconds."Eric S. Raymond2011-10-251-3/+3
| | | | Originator withdrew the patch after noticing his assumptions were wrong.
* Garmin binary driver. Fixed bug in getting leap seconds.Michael Tatarinov2011-10-251-3/+3
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* splint cleanup.Eric S. Raymond2011-10-231-1/+1
|
* Garmin binary protocol. Mapping Garmin RPN to SBAS PRN.Michael Tatarinov2011-10-201-2/+5
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Garmin driver. Fixed a bug in the code detection USB device.Michael Tatarinov2011-10-131-1/+1
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Garmin serial driver. Don't emit SKY if satellites aren't seen.Michael Tatarinov2011-10-121-3/+7
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* snr is unsigned, not signed, in garmin binary sat data.Gary E. Miller2011-10-121-2/+2
|
* Cut down on gpsd_hexdump_wrapper() calls.Eric S. Raymond2011-06-171-21/+2
| | | | | | | | | | | | | | | This awkward construct seems to have triggered some sort of toolchain bug. The symptom is that gpsd_hexdump_level has different values depending on whether we test it inside or outside of hex.c. As a first step towards eliminating this global, we throw out a bunch of hex logging that is duplicative or not really needed for production drivers. Experimental drivers can call the hex dumper unconditionally. The goal is to reduce the number of uses of this variable to eliminate it withoud doing violence to the internal APIs. This is a first step. All regression tests pass.
* splint cleanup.Eric S. Raymond2011-05-041-3/+3
|
* Regularize some names.Eric S. Raymond2011-04-011-16/+16
|
* gps_maskdump() has been a CPU hog. Drastically reduce the number of calls...Eric S. Raymond2011-03-311-10/+9
| | | | | ...and guard them with debug level so they won't be done when the output would never be shipped anywhere.
* scan-build and splint cleanup. All regression tests pass.Eric S. Raymond2011-03-291-3/+5
|
* Re-identify most *_IS flags with corresponding *_SET flags.Eric S. Raymond2011-03-271-9/+9
| | | | | | | | | | | Required so clients looking at flag masks in data exported via the shared-memory interface will see the right thing. These were separated originally in order to avoid pushing the reqyuired width of the gpsdata.set flag mask over 32 bits. It became 64 bits in the Version 5 API change, so that constraint went away. All regression tests pass.
* Make all drivers set the PPSTIME_IS mask where appropriate. It's not yet used.Eric S. Raymond2011-03-231-0/+7
| | | | All regression tests pass.
* And still more double -> timestamp_t moves.Eric S. Raymond2011-03-101-2/+2
| | | | All regression tests pass, splint passes.
* spellchecking and catching all of the same spelling mistakes in other filesJon Schlueter2011-03-051-1/+1
| | | | gpsd.xml gone through
* Convert from int to natural size_t/ssize_tJon Schlueter2011-03-011-2/+2
| | | | | | | Cherry-picked from Jon Schlueter's commit of 2011-03-01 06:38:31. All regression tests pass. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Verbosity suppression. All regression tests pass.Eric S. Raymond2011-02-281-0/+2
|
* Typo fix.Eric S. Raymond2011-02-281-1/+1
|
* Remove pass_rtcm(),Eric S. Raymond2011-02-271-3/+3
| | | | | Replace it wuth what it calls, gpsd_write(). Requiresd only a prototype tweak and some casts, no logic changes. All regression tests pass.
* Revert "Remove a mo-op initializer from the driver type list."Gary E. Miller2011-02-231-4/+37
| | | | | | | | | | | | | This reverts commit 2af953aba0cd88a211c0999ac9f49c31e1a34b52. There really IS a difference between the Garmin Serial Binary (GSB) and Garmin USB Binary (GUSB). GSB can do NMEA, GUSB can not GSB can switch serial speed, GUSB can not GUSB replaces the kernel driver with libusb, GSB must not. There is likely more consolidation that can be done, but it should be done by someone that can test the changes.
* Remove a mo-op initializer from the driver type list.Eric S. Raymond2011-02-221-37/+4
| | | | | | | garmon_ser_binary could never be found by any recent version of the driver-switching logic, which searches by numeric packet type. It effectively duplicated garmin_usb_binary, with the same packet type but earlier in the list.
* splint simplification and cleanup.Eric S. Raymond2011-02-041-3/+3
|
* splint cleanupEric S. Raymond2011-02-031-1/+2
|
* Added a driver-type flags member to the driver method structure.Eric S. Raymond2011-01-191-0/+3
| | | | All regression tests pass.
* Prevent some warnings under OpenBSD.Eric S. Raymond2011-01-131-1/+3
|
* More deheader testing.Eric S. Raymond2011-01-121-0/+1
|
* Suppress a compiler warning. All regression tests pass.Eric S. Raymond2011-01-031-2/+1
|