summaryrefslogtreecommitdiff
path: root/driver_tsip.c
Commit message (Collapse)AuthorAgeFilesLines
...
* splint cleanup.Eric S. Raymond2010-05-081-0/+1
|
* Improved decoding for Supplemental Timing Packet.Eric S. Raymond2010-05-031-0/+25
| | | | >From a suggestion by Joe Davidson. All regression tests pass.
* FIXME -> FIX-ME, so I can walk through these without tripping over autotools.Eric S. Raymond2010-04-261-3/+3
|
* Reindent. All regression tests pass.Eric S. Raymond2010-04-261-12/+14
| | | | | Most of the bulk of this one is the xgpsspeed code, which was not formerly incldecd in reindenting.
* Clear DOPs only when we get a skyview report.Eric S. Raymond2010-04-201-1/+2
| | | | | | | | | | | | | | | This solves the disappearing epx/epy bug on SiRFs, but it was actually a systemic problem that affected several drivers. Navigation solution messages were clearing DOPs, making it impossible for the error modeller to compute estimates. New logic: Clear DOPs only when we get a skyview report. They'll be regenerated by our visibility-matrix calculation when the skyview sentence is analyzed. If a sentence from the device supplies a DOP between the time the visibility calculation is done and when the next fix is reported, it will override our computed value. This might change later! This change required a regression-test rebuild.
* Splint and cppcheck cleanup. All regression tests pass.Eric S. Raymond2010-04-201-4/+4
|
* Eliminate a lot of private copies of gps_tow for one global copy inGary E. Miller2010-04-181-8/+19
| | | | sesion->context.
* Smoke out more private copies of gps_week and move into session->context. Gary E. Miller2010-04-181-1/+3
| | | | Prepare to do the same for Time of Week (tow).
* Collapse various copies of gps_week into one in gps_contxt_t.Gary E. Miller2010-04-161-9/+9
|
* Reindented more driver code. All regression tests pass.Eric S. Raymond2010-04-141-419/+441
|
* Protect more displayed structures from indent.Eric S. Raymond2010-04-131-0/+2
|
* Cosmetic glitches found while testing reindenting.Eric S. Raymond2010-04-131-1/+1
|
* Refactor serial ntpshm_put() calls.Eric S. Raymond2010-04-121-10/+13
| | | | | | | | | | | | | | | 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-19/+19
| | | | | | | | | | | | | | | | | 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.
* only update this timer when polling tracking statusChris Kuethe2010-04-081-1/+0
|
* Drivers now put their per-packet new data into a session->newdata member.Eric S. Raymond2010-04-051-88/+88
| | | | | | | 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.
* Fix building with --disable-controlsendPaulius Zaleckas2010-03-291-1/+1
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Fix building with --disable-reconfigurePaulius Zaleckas2010-03-281-1/+1
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Teach the TSIP driver to flip to SiRF mode when it sees a SiRF packet.Eric S. Raymond2010-03-171-0/+13
| | | | | | | mrd reported that once every couple of weeks his SiRF was flipping into Trimble binary mode and not recovering. Damn Trimble for not checksumming their packets, it make palse positives hard to reject. This should enable the SiRF to recover.
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-4/+3
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-2/+5
|
* Mac OS X cleanup passes from mledford.Eric S. Raymond2009-11-191-1/+1
|
* splint cleanup.Eric S. Raymond2009-11-191-3/+8
|
* these speed switches are no longer necessary; tsip can probe for parityChris Kuethe2009-11-191-2/+3
|
* Fix some whitespace glitches found while experimenting with indent(1).Eric S. Raymond2009-11-171-1/+1
| | | | All regression tests pass.
* fix the probe logic, thereby unbreaking the rest of the protocols.Chris Kuethe2009-11-171-4/+7
|
* Make fudge explicit in ntpshm_put(), and log it..Gary E. Miller2009-11-171-2/+2
|
* merge in the rest of chris adams' SVeeSix patchChris Kuethe2009-11-171-3/+109
|
* cycle reporting for the tsip driverChris Kuethe2009-11-051-5/+6
|
* Splint pacification, part 2.Eric S. Raymond2009-10-261-2/+7
|
* In the wake of the change to use only C99 fixed-length types... Eric S. Raymond2009-10-261-3/+5
| | | | ...splint needs some pacifying. This is part 1. All regressions pass.
* whitespaceChris Kuethe2009-10-241-40/+40
|
* Address Berlios tracker bug #16299: Eric S. Raymond2009-10-121-14/+14
| | | | | Solaris lacks u_int*_t typedefs. Switch to the C99 standard ones. All regression tests pass.
* The new instrumentation pays off. Eric S. Raymond2009-10-021-10/+5
| | | | | | | 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-4/+4
|
* My bright idea to use timestamp() to set skyview times backfired... Eric S. Raymond2009-10-021-21/+73
| | | | | ...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-10/+11
| | | | | | | | 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.
* In the gpsdata structure, satellites -> satellites_visibleEric S. Raymond2009-10-011-3/+3
| | | | All regression tests pass, code splints clean.
* Change the driver event set to be more orthogonal.Eric S. Raymond2009-09-161-2/+3
| | | | | | | | | | | 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.
* More simplification of DOP handling. All regression tests passEric S. Raymond2009-09-151-1/+1
|
* Give DOPs their own structure...Eric S. Raymond2009-09-151-8/+8
| | | | | | ...mainly because there will shortly be code to clear it as a unit. Pure refactoring step; all regression tests pass, splint gives no warnings.
* TSIP driver was a bit too ambitious about setting mode from skyview;Eric S. Raymond2009-09-131-4/+15
| | | | | this resulted in some spurious reports. Required rebuilding of the TSIP regression check logs. All other regression tests passed.
* 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-5/+4
| | | | | | | 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-11/+7
| | | | | 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-7/+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-35/+37
| | | | | | | 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.
* Son of the Splint Cleanup.Eric S. Raymond2009-09-101-2/+2
| | | | | Major change in this set is enforcong consistency about the data type of serial parity information.
* Bride of the Splint Cleanup. All regression tests pass.Eric S. Raymond2009-09-101-2/+2
|