summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
Commit message (Collapse)AuthorAgeFilesLines
* First xut at JSON passthrough code.Eric S. Raymond2011-06-141-0/+12
| | | | Not turned in by default yet; it interferes with RTCM2 decoding.
* More code slimming.Eric S. Raymond2011-06-111-0/+2
|
* Regularize some names.Eric S. Raymond2011-04-011-4/+4
|
* Introduce --disable-cheapfloats for the ARM guys.Eric S. Raymond2011-03-311-9/+17
|
* gps_maskdump() has been a CPU hog. Drastically reduce the number of calls...Eric S. Raymond2011-03-311-2/+0
| | | | | ...and guard them with debug level so they won't be done when the output would never be shipped anywhere.
* Re-identify most *_IS flags with corresponding *_SET flags.Eric S. Raymond2011-03-271-12/+12
| | | | | | | | | | | 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.
* First cut at shared-memory export. Daemon-side only.Eric S. Raymond2011-03-251-0/+3
| | | | | Not configured in by default yet because it produces a strange regression failure.
* Documentation update. All regression tests pass.Eric S. Raymond2011-03-241-1/+6
|
* Pull the last NTPSHM code dependency out of the core library.Eric S. Raymond2011-03-241-37/+0
| | | | | | The npshm stuff is now coupled to everything else in the daemon only through the dispatcher layer. This means that auxiliary tools like gpsmon and gpsctl will no longer try to talk to ntpd at device-initialization time.
* Try to move NTP link activation and deactivation up to the disparcher layer.Eric S. Raymond2011-03-241-1/+0
|
* PPSTIME_IS and CLEAR_IS may be in the first packet.Gary E. Miller2011-03-231-1/+1
|
* Set ntpd_ship_to per-cycle based on the driver PPSTIME_IS flag.Eric S. Raymond2011-03-241-25/+28
|
* Add fixcnt constraint to packet time as well.Gary E. Miller2011-03-231-24/+24
|
* 3 sats needed for good time, not 4.Gary E. Miller2011-03-231-1/+1
|
* Revert over conditioning ship_to_ntpdGary E. Miller2011-03-231-2/+5
|
* Refactoring step. Hide the internals of NTPD communication better.Eric S. Raymond2011-03-231-8/+1
|
* The ship_to_ntpd flag shouldn't latch.Eric S. Raymond2011-03-231-0/+1
|
* Move as much of the PPS support as possible to ntpshm.c.Eric S. Raymond2011-03-231-551/+0
| | | | All regression tests pass.
* Attempt to use the new PPSTIME_IS mask bit to control updating ntpd.Eric S. Raymond2011-03-231-19/+6
| | | | | | | This commit may break ntpd support and should be live-tested by someone who can - I don't have an RS232 GPS with PPS to try it on. All regression tests pass.
* Track fix counts per-device as well as for all devices.Eric S. Raymond2011-03-231-1/+3
| | | | | | | | This count isn't used yet. I'll need it to fix a severe layering violation by bad OnCore code, and it's a separate commit for bisection purposes in case the fix breaks other things. All regression tests pass; code splints clean.
* Remove the root only interface to chronyd. Document that interface.Gary E. Miller2011-03-171-3/+8
| | | | | | Sadly there is no easy way to open a socket to chrony that lives in /var/run before gpsd drops root. This removes that broken code and documents the chrony interface.
* Yet more double->timestamp_t moves.Eric S. Raymond2011-03-101-2/+2
| | | | | | All tests pass. These are didfficult to spot because the compiler actually doesn't care about the distinction btween the source and result type of a typedef.
* More timestamp_t conversions. No logic changes.Eric S. Raymond2011-03-101-1/+1
| | | | Regression tests, splint, and cppcheck pass.
* Give timestamps their own typedef. No logic changes.Eric S. Raymond2011-03-101-3/+3
| | | | All regression tests pass, splint and cppcheck pass.
* Split an excessively long function. No logic changes. All regression tests pass.Eric S. Raymond2011-02-241-0/+64
|
* Tweak a KPPS log message that is not really an error.Gary E. Miller2011-02-241-1/+1
|
* Revert esr's breakage of chrony interface.Gary E. Miller2011-02-241-5/+6
| | | | | | | His commit broke the chrony socket open function. So I reverted the change and improved that code. Something still broken in chrony interface.
* Abolish device->is_serial. Replaced by device->servicetype.Eric S. Raymond2011-02-241-2/+3
|
* Eliminate the context->netgnss_service member.Eric S. Raymond2011-02-241-1/+0
| | | | | | | | | This is more global context that really needed to be per-device state. Instead, create a per-devicd servicetype member to carry this information. Practically apeaking, this means gpsd can now watch multiple NTRIP and DGPS sessions without getting confused. All regressuin tests pass.
* Eliminate the context sentdgps member in favor of a per-session state flag.Eric S. Raymond2011-02-241-1/+0
| | | | All regressuin tests pass.
* Eliminate the dsock member in the context structure.Eric S. Raymond2011-02-241-1/+0
| | | | | | | | | | | | Another step towards integrating NTRIP support in a way that's actually correct for the daemon architecture. This involved conditioning out code for DGPSIP server lookups, a feature which was never documented and has probably been broken forever. It's actually not even clear there are still any DGPSIP servers still running; the dgpsip package was removed from Debiann at maintainer request in 2008 (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392666). I may yet just rip out that code entirely.
* Move NTRIP per-connection state from global context to private driver area.Eric S. Raymond2011-02-241-3/+0
| | | | | | | The flap over probes revealed that the NTRIP support is bolted onto the daemon in a very awkward way that is likely to cause problems now that it's actually being, like, *used*. This is a step towards making it behave more like a normal driver.
* Guard probes on whether the device being activated is serial.Eric S. Raymond2011-02-241-1/+1
| | | | | | The previous test was wrong. Checking if the net correction service available is netgnss might give the wrong result is it is but there are attached serial devices as well.
* initial device recognition is only done for non ntrip connectionsAndre Naujoks2011-02-241-16/+18
| | | | | | garmin-USB Dection still works Signed-off-by: Jon Schlueter <jon.schlueter@gmail.com>
* Revert the removal if GPS driver initializers.Gary E. Miller2011-02-231-0/+19
| | | | | | | | | The bad change was from "NTRIP fixes from Andre Naujoks." on Mon 21 Feb 2011 16:18:16 -0500. Those initializers are in there for a reason! Usually hard to test that you need them without powering down the test GPS. Reversion testing will NOT validate the initializers!
* Refactor device opening. No logic changes. All regression tests pass.Eric S. Raymond2011-02-231-56/+2
|
* splint cleanup.Eric S. Raymond2011-02-221-2/+2
|
* strcpy() elimination.Eric S. Raymond2011-02-221-2/+2
|
* Move a warning about speeds < 38400 that triggered too often.Eric S. Raymond2011-02-221-3/+0
| | | | | I have profiled. For GPS data, 9600 is sufficient. The exception is if subframe data is enabled.
* NTRIP fixes from Andre Naujoks.Eric S. Raymond2011-02-211-21/+4
| | | | I fixed them up to splint clean.
* change gpsd_init to take a const char * device (name) paramJon Schlueter2011-02-211-1/+1
|
* A log message needed to move. No logic changes.Eric S. Raymond2011-02-211-3/+3
|
* splint cleanup. All regression tests pass.Eric S. Raymond2011-02-161-0/+2
|
* More layer separation. All regression tests pass.Eric S. Raymond2011-02-161-0/+34
|
* More layer separation. All regression tests pass.Eric S. Raymond2011-02-161-21/+26
|
* Fix a loss of precision in KPPS, By: Miroslav LichvarGary E. Miller2011-01-271-5/+4
|
* More refactoring of rollover checking.Eric S. Raymond2011-01-171-41/+0
|
* Narrow a variable scope to eliminate a warning.Eric S. Raymond2011-01-161-2/+1
|
* GPS week rollover check extends to the rollover equivalent of now.Eric S. Raymond2011-01-151-1/+2
|
* Detect week-counter overruns using the leap second.Eric S. Raymond2011-01-151-6/+30
|