summaryrefslogtreecommitdiff
path: root/driver_garmin.c
Commit message (Collapse)AuthorAgeFilesLines
* Comment typo in GarminGary E. Miller2010-04-161-1/+1
|
* Sigh...avoid build lossage on Linux machines without libusb.Eric S. Raymond2010-04-161-2/+2
|
* libusb support lands in the Garmin driver.Eric S. Raymond2010-04-161-1/+69
|
* Tiny tweak to Garmin USB ntpd offset.Gary E. Miller2010-04-151-1/+1
|
* Reindented driver_garmin.c. All regression tests pass.Eric S. Raymond2010-04-141-410/+431
|
* Merge branch 'master' of ssh://esr@git.berlios.de/gitroot/gpsdEric S. Raymond2010-04-141-2/+16
|\
| * Setup driver_garmin.c for tweaking of ntpd_offset by baud rate.Gary E. Miller2010-04-131-2/+13
| |
| * Garmin USB needs its own ntpd fudge.Gary E. Miller2010-04-131-0/+3
| |
* | Attempt to reinstate some anti-indenting guards.Eric S. Raymond2010-04-131-3/+7
| | | | | | | | | | | | It'd be nice if GNU indent didn't lose its cookies this time... All regression tests pass.
* | Once again, GNU indent is confused by its own pragmas.Eric S. Raymond2010-04-131-6/+0
| |
* | Protect more displayed structures from indent.Eric S. Raymond2010-04-131-0/+6
|/
* Cosmetic glitches found while testing reindenting.Eric S. Raymond2010-04-131-2/+2
|
* Add back in important comments about the Garmin USB driverGary E. Miller2010-04-131-2/+10
|
* Narrow the scope of some variables and document what's going on.Eric S. Raymond2010-04-131-68/+86
|
* Properly guard the USB-garmin probe.Eric S. Raymond2010-04-131-1/+8
|
* More ntpshm_put() changes.Gary E. Miller2010-04-121-2/+4
|
* Add some debugging and fixes to new ntpshm_pps() wrapper.Gary E. Miller2010-04-121-2/+2
|
* Tag all Garmin debug output with 'Garmin:' for easier parsing of logs.Gary E. Miller2010-04-121-84/+84
|
* Garmin driver needs to set valid bits when it has a valid fix.Gary E. Miller2010-04-121-1/+4
|
* Refactor serial ntpshm_put() calls.Eric S. Raymond2010-04-121-7/+17
| | | | | | | | | | | | | | | These calls move out of scattered places in the drivers into one spot in libgpsd_core.c where they can be guarded with consistent validity checks. Time offset is now computed by a new driver method, ntp_offset(), which has access through the session structure to the baud rate, the tag of the sentence last received, etc. If the ntp_offset() method returns NAN, no notification is shipped. The logic of these methods replicates the sentence and baud-rate specific computations that were embedded in individual sentence methods before. All regression tests pass.
* Make the client library and daemon use different sets of state-flag masks.Eric S. Raymond2010-04-091-3/+3
| | | | | | | | | | | | | | | | | Large patch, no actual executable code changes except in three debug dumpers. Breaks up the *_SET status macros so the client side continues to use them, but the daemon uses a similarly-named set with an _IS suffix. This frees up two mask bits in both sets - the client side no longer needs to have REPORT_SET and CLEAR_SET bits, and the daemon side no longer needs to have VERSION_SET and POLICY_SET. The only actual code change is that the maskdump.c module, generated by maskaudit.py, splits in half - one child now dumps client-side flags, the other daemon-side flags. One other function call in a debug dumper in libgps_core.c changes. All regression tests pass.
* Drivers now put their per-packet new data into a session->newdata member.Eric S. Raymond2010-04-051-40/+40
| | | | | | | This is so they won't overwrite session->gpsdata.fix, which is going to move back to being where the current fix has been reported. All regression tests pass.
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-5/+4
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-3/+5
|
* Garmin USB is binary only, thus linking it to the Garmin Serial BinaryGary E. Miller2010-03-011-1/+3
| | | | mode switcher is a mistake.
* Splint and compiler warning cleanup.Eric S. Raymond2009-12-031-1/+1
| | | | | | | | While we're at it, static variables in drivers are a no-no! That's what the driver union in the device structure is for. Repair driver_ubx.c to use it correctly. All regression tests pass.
* Remove untrue Garmin Speed comment.Gary E. Miller2009-12-011-2/+0
| | | | Garmin Serial Binary can use more than just 9600:8N1
* Further comment tweaksGary E. Miller2009-11-201-12/+10
|
* Improve comments and make dependency on /proc/bus/usb/devices optional.Gary E. Miller2009-11-191-28/+36
|
* Adjust Garmin Serial Binary NTPD fudge for 4800bps.Gary E. Miller2009-11-171-2/+5
|
* Make fudge explicit in ntpshm_put(), and log it..Gary E. Miller2009-11-171-1/+1
|
* The new instrumentation pays off. Eric S. Raymond2009-10-021-3/+1
| | | | | | | On NMEA devices, mode could sometimes be held across cycles when it shouldn't have been. Fix this, simplifying how cycles are tracked in the process. Some regression tests needed rebuilding. Code splints clean.
* Fix a paste-o that made its way into many LOG_DATA format strings.Eric S. Raymond2009-10-021-1/+1
|
* My bright idea to use timestamp() to set skyview times backfired... Eric S. Raymond2009-10-021-1/+1
| | | | | ...making the regression tests nondeterministic. Oh well. Fixed. All drivers now use the LOG_DATA convention.
* Clear up some driver-level confusion surrounding timestamp setting.Eric S. Raymond2009-10-011-2/+1
| | | | | | | | There was lots of duplicative setting of gpsdata.fix.time and gpsdata.sentence_time. The latter is now gone. The only case the sentence_time member was actually used for was timestamping skyviews; a new gpsdata.skyview_time now handles that, and all drivers set it properly.
* Change some legends in printf strings...Eric S. Raymond2009-10-011-1/+1
| | | | ...to match the satellites->satellites_visible change.
* In the gpsdata structure, satellites -> satellites_visibleEric S. Raymond2009-10-011-2/+2
| | | | All regression tests pass, code splints clean.
* More DATA_LOG adaptations. All regression tests pass. Code splints clean.Eric S. Raymond2009-10-011-1/+1
|
* Adapt some drivers to use the new LOG_DATA level. All regression tests pass.Eric S. Raymond2009-09-301-0/+23
|
* Fix computation of epx and epy from eph.Eric S. Raymond2009-09-301-1/+4
| | | | | Factor of 1/sqrt(2) has to be applied (on the assumption that epx and epy are equal).
* Refactor the cycle-end tracking. The AIS machinery should use it.Eric S. Raymond2009-09-301-1/+1
| | | | All regression tests pass.
* Change the driver event set to be more orthogonal.Eric S. Raymond2009-09-161-1/+5
| | | | | | | | | | | This had the expected effect, the N command can now works on SiRFs again because the subdevice probe is not called after every driver switch. One of the Trimbles has minor regression breakage on this change (two fewer reports emitted just after packet lock) but I'm not worrying about that as the TSIP driver needs to be upgraded to do CYCLE_END, anyway.
* Rename event_revert to event_deactivate. No behavior changes.Eric S. Raymond2009-09-131-1/+1
|
* Fold the probe_wakup method into the new generic lifetime-event hook. Eric S. Raymond2009-09-131-15/+12
| | | | | | | This finishes the bug refactoring; now we're ready to do actual behavior changes. Codebase splints clean. All regression tests pass.
* Fold the revert method into the generic event hook.Eric S. Raymond2009-09-131-14/+3
| | | | | Abolish the wrapup method; there were only two users, one was trivial, and the other belonged as a revert.
* The configurator member becomes event_hook. Eric S. Raymond2009-09-131-6/+5
| | | | | | | | | | | | | Code that referenced the sequence number argument now looks at session->packet_counter directly. This was almost a pure refactoring step. I added one obviously missing session->packet.counter == 0 test in the oncore driver. Despite temptation, I didn't try to fix when the packet.counter gets zeroed; I'm going to try to confine the behavior changes to one concise patch, which hasn't happened yet. Codebase splints clean. All regression tests pass.
* Merge the configurator and probe_subtype methods. Eric S. Raymond2009-09-131-7/+5
| | | | | | | They're now distinguished by an event argument passed to the common hook function. This is a refactoring step - later, we'll define more and different events for finer-grained control. All regression tests pass.
* Guard some inclusions that splint doesn't like. Eric S. Raymond2009-09-101-0/+2
| | | | No effect on compilation. All regression tests pass.
* Continuing the splint cleanup.Eric S. Raymond2009-09-101-1/+1
|
* Reliable cycle-start indication for almost all drivers.Eric S. Raymond2009-09-091-1/+4
| | | | | Some regression tests needed to be rebuilt as a result. One new regression test, for iTalk binary.