summaryrefslogtreecommitdiff
path: root/driver_navcom.c
Commit message (Collapse)AuthorAgeFilesLines
* Contain the assumption that time hinting is done to NTPD.Eric S. Raymond2013-10-311-3/+3
| | | | | | | 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-3/+3
| | | | We'll have to sneak up on this change more slowly.
* Separate ntpd support from chrony support, step 1.Eric S. Raymond2013-10-301-3/+3
| | | | | | | | | | | | | 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-1/+1
|
* OK, visualize as a method was a bad idea. All regression tests pass.Eric S. Raymond2013-10-141-3/+0
|
* Create driver slot and scons option for a visualizer driver method.Eric S. Raymond2013-10-131-0/+3
|
* Change the logic for managing the drive mode bit to report reality...Eric S. Raymond2013-10-041-8/+2
| | | | ...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-52/+56
| | | | | | | | 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.
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-1/+1
|
* Refacter the bits.c stuff to eliminate ugly globals...Eric S. Raymond2012-06-021-14/+11
| | | | | | ...and be more explicit about operand sizes. All regressuion tests [ass, code splints clean.
* More cppcheck warning fixups. All regression tests pass.Eric S. Raymond2012-05-181-1/+2
|
* Cleanup motivated by new cppcheck with more tests. All regression tests pass.Eric S. Raymond2012-05-161-3/+3
|
* Navcom needs binary supportPeter Korsgaard2011-11-101-2/+2
| | | | | | | | | | | | Enable binary support when navcom driver is enabled, otherwise the build errors out with: ./libgpsd.so: undefined reference to `navcom_binary' If no other drivers needing binary support are enabled. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Remove gpsd_hexdump_wrapper() from everything outside the packet sniffer.Eric S. Raymond2011-06-171-2/+1
|
* Cut down on gpsd_hexdump_wrapper() calls.Eric S. Raymond2011-06-171-5/+0
| | | | | | | | | | | | | | | 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.
* Regularize some names.Eric S. Raymond2011-04-011-10/+10
|
* Scan-build and splint cleanup. All regression tests pass.Eric S. Raymond2011-03-281-3/+2
|
* Fix scan-build glitches. All regression tests pass.Eric S. Raymond2011-03-281-2/+1
|
* Re-identify most *_IS flags with corresponding *_SET flags.Eric S. Raymond2011-03-271-8/+8
| | | | | | | | | | | 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-2/+3
| | | | All regression tests pass.
* Verbosity suppression. All regression tests pass.Eric S. Raymond2011-02-281-0/+3
|
* Remove pass_rtcm(),Eric S. Raymond2011-02-271-2/+2
| | | | | Replace it wuth what it calls, gpsd_write(). Requiresd only a prototype tweak and some casts, no logic changes. All regression tests pass.
* Partial splint and warning cleanup. All regression tests pass.Eric S. Raymond2011-02-031-6/+6
|
* Refactor time handling yet again. All regression tests pass.Eric S. Raymond2011-01-211-3/+3
|
* Add some suitable warning comments.Eric S. Raymond2011-01-211-0/+5
|
* Reduce dependency on the system clock.Eric S. Raymond2011-01-201-16/+8
|
* Added a driver-type flags member to the driver method structure.Eric S. Raymond2011-01-191-0/+1
| | | | All regression tests pass.
* splint cleanup. All regression tests pass.Eric S. Raymond2011-01-181-1/+1
|
* Make the Navcom driver use gpsd_resolve_time().Eric S. Raymond2011-01-171-26/+9
|
* Introduce GPS_TIME_VALID flag for GPS time validation.Eric S. Raymond2011-01-171-0/+3
|
* More deheader testing.Eric S. Raymond2011-01-121-0/+1
|
* Trigger strings that aren't NMEA packets won't work.Eric S. Raymond2011-01-091-1/+1
|
* Move the Navcom wakeuop event to the identify event.Eric S. Raymond2011-01-091-13/+5
| | | | | | | The Navcom protcol reference tells us that the factory default is to stream GGA & VTG at 1Hz, 19.2Kbps. Therefore it doesn't need a wakeup before it sends data. It also teklls us that settings are hewld in NVRAM so we don't need to redo them on reactivate.
* Rename the bits.h macros to be explicit about operand length.Eric S. Raymond2010-12-261-86/+86
| | | | | | With most machines being 64-bit now, the assumption that "word" = 16 bits and "long" = 32 bits is increasingly archaic. This commit removes it from our naming conventions.
* More header portability auditing by deheader.Eric S. Raymond2010-12-221-3/+1
|
* Insert GPS week rollover checks everywhere we rely on GPS time.Eric S. Raymond2010-12-201-0/+3
| | | | All regression tests pass.
* More deheaderizing. All regression tests pass.Eric S. Raymond2010-12-011-7/+0
|
* Eliminate some uses or ERROR_IS.Eric S. Raymond2010-05-071-1/+1
| | | | | | | | | Drivers shouldn't really set this any more, as it's used to signal that the attempt to get sync on a data stream has failed. Also, make some UDP cases wirk bewtter by arranging not to throw ERROR_IS on leading comments. No, I don't know why this didn't fail sooner. It must have sommetthing to do with the granularity of the writes from ptys
* Remove obsolete FIX-ME, we understand their calculations better now.Eric S. Raymond2010-04-261-1/+0
|
* FIXME -> FIX-ME, so I can walk through these without tripping over autotools.Eric S. Raymond2010-04-261-2/+2
|
* Reindent. All regression tests pass.Eric S. Raymond2010-04-261-5/+6
| | | | | 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/+0
| | | | | | | | | | | | | | | 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-6/+6
|
* Eliminate a lot of private copies of gps_tow for one global copy inGary E. Miller2010-04-181-8/+14
| | | | sesion->context.
* Smoke out more private copies of gps_week and move into session->context. Gary E. Miller2010-04-181-0/+5
| | | | Prepare to do the same for Time of Week (tow).
* Some splint annotations got unstuck by the reindentation.Eric S. Raymond2010-04-141-2/+3
|
* Re-reindent some drivers because we added another control option.Eric S. Raymond2010-04-141-306/+346
| | | | All regression tests pass.
* Protect more displayed structures from indent.Eric S. Raymond2010-04-131-0/+2
|
* Refactor serial ntpshm_put() calls.Eric S. Raymond2010-04-121-0/+3
| | | | | | | | | | | | | | | 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-10/+10
| | | | | | | | | | | | | | | | | 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.