summaryrefslogtreecommitdiff
path: root/gpsutils.c
Commit message (Collapse)AuthorAgeFilesLines
* Re-identify most *_IS flags with corresponding *_SET flags.Eric S. Raymond2011-03-271-11/+11
| | | | | | | | | | | 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.
* Emit "mode" before its dependent attributes in TPV, and timestamps with .3f.Eric S. Raymond2011-03-221-2/+7
| | | | Required a regression-test rebuild.
* Give timestamps their own typedef. No logic changes.Eric S. Raymond2011-03-101-6/+6
| | | | All regression tests pass, splint and cppcheck pass.
* More splint cleanup.Eric S. Raymond2011-02-211-1/+1
|
* splint cleanup.Eric S. Raymond2011-02-211-1/+1
|
* Bulletproof a formatting function against C library variations.Eric S. Raymond2011-02-191-1/+2
|
* Timestamps in TPV and SKY go from float seconds since Unix epoch to ISO8601.Eric S. Raymond2011-01-291-2/+2
| | | | | | | | Protocol version number is bumped. Python and C test clients are known to work; interfaces of the C and Python client bindings are unchanged. Third-party client-side bindings which rely on naively copying JSON members will break (implementers have been repeatedly warned not to do this).
* Document gpsd's assumption about the host system clock correctly.Eric S. Raymond2011-01-201-11/+0
| | | | | We're more dependent on it than I realized. At least all the dependencies are in one module now, and we may be able to do something about relaxing them.
* All the messy gpstime conversion stuff isin timebase.c now.Eric S. Raymond2011-01-201-33/+2
| | | | All regression tests pass.
* More deheader testing. All regression tests pass.Eric S. Raymond2011-01-131-0/+1
|
* More header portability audting with a new version of deheader.Eric S. Raymond2010-12-221-0/+2
|
* More header portability auditing by deheader.Eric S. Raymond2010-12-221-4/+0
|
* Last thing we need is two different GPS_EPOCH values.Eric S. Raymond2010-12-201-1/+0
|
* Abolish gpsd_report.c. No more hardwired logging from the client libraries.Eric S. Raymond2010-12-161-315/+0
| | | | Only the daemon now uses this function.
* More partial splint cleanup.Eric S. Raymond2010-12-081-0/+2
|
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-4/+0
|
* Enhance the earth-distance() function to compute initial and final bearings...Gleb Smirnoff2010-10-231-2/+14
| | | | | | ...renaming it and still supporting the old entry point. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* gpsutil.c: fill_dop bug if sats < 4Jon Schlueter2010-10-061-0/+12
| | | | | | bug present where it would try to invert matrix with out enough data... added guard to prevent trying to calculate dop's if we don't have 4 sats with current code.
* Suppress logging of the satellite picture.Eric S. Raymond2010-04-151-1/+1
| | | | | All regression tests pass. flocktest on grelber and yazug passes, Codebase splints and cppchecks clean.
* Allow GNU indent to have its way with the last two files.Eric S. Raymond2010-04-141-2/+2
|
* Whitespace tweaks to pacify indent.Eric S. Raymond2010-04-141-2/+3
|
* Scatter GNU indent pragmas to tell it not to do stupid things.Eric S. Raymond2010-04-141-1/+3
| | | | All regression tests pass.
* Reindented some small utility modules. All regression tests pass.Eric S. Raymond2010-04-141-205/+206
|
* A longstanding bug in error modeling fixed.Eric S. Raymond2010-04-131-1/+1
| | | | | | The guard controllong DOP computation wasn't right. The result was that x/y error estimates were computed much less often than they should have been.
* Detect and scavenge unused daemon-side status-mask bit.Eric S. Raymond2010-04-101-2/+0
|
* Make the client library and daemon use different sets of state-flag masks.Eric S. Raymond2010-04-091-48/+13
| | | | | | | | | | | | | | | | | 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.
* Internals of Qt support.Chris Browet2010-03-311-0/+20
| | | | | | | | | | | | | | | | | All regression tests pass. Note from esr: this feature cannot be announced yert, as it requires documentation in the INSTALL file. 1. What the target environments are (Linux? Windows? Both) 2. All build prerequisites (C++ compiler? Qt library? Other libraries?) 3. What the new files libQgpsmm_global.h and libQgpsmm.pro are for, and how the are used. We also need to know how to regression-test this code under Linux so we can verify that it's not broken as the client library evolves. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Dead-code removal.Eric S. Raymond2010-03-231-35/+0
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-2/+0
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-2/+7
|
* Use the Vincenty formula rather than the Haversine formula for earth_distance.Chris Kuethe2010-02-271-43/+60
| | | | | | | Vincenty is much better behaved with small distances. This is a translation of http://www.movable-type.co.uk/scripts/latlong-vincenty.html While I'm here, put a couple of WGS84 constants into a header.
* Removing logging put in place for debugging failing tests on Mac OS X.Michael Ledford2009-12-031-13/+1
|
* More logging to find regression test error on OS X. Getting closer.Michael Ledford2009-12-021-1/+7
|
* Increased logging precision gpsd_error_model().Michael Ledford2009-11-301-0/+7
| | | | | Added logging inside of earth_distance() and CalcRad() to further help debug failing regression test on Mac OS X.
* Include the whole config file in gpsd.h.Eric S. Raymond2009-11-201-1/+0
| | | | | | | That is, instead of sectioning out two little config defines and putting them in. This makes gpsd.h self-copntained (e.g. in case it gets installed as a library header) and means we can get rid of most inclusions of it.
* Change some logging levels and reduce verbosity.Eric S. Raymond2009-10-061-4/+2
|
* Condition out some dead code.Eric S. Raymond2009-10-021-0/+2
|
* SKY response now includes DOP reports.Eric S. Raymond2009-09-151-3/+13
| | | | Most regression tests needed to be rebuilt.
* Remove a variable declaration that is now unused.Eric S. Raymond2009-09-151-1/+0
|
* Separate DOP flags are gone.Eric S. Raymond2009-09-151-7/+1
| | | | | SiRF was holding stale DOPs for too long, sometimes leading to overly-optimistic error estimates.
* Add clear_dop().Eric S. Raymond2009-09-151-16/+21
| | | | | This is an intermediate step; shortly we'll use it to change the DOP data management. All regression tests pass.
* Give DOPs their own structure...Eric S. Raymond2009-09-151-15/+15
| | | | | | ...mainly because there will shortly be code to clear it as a unit. Pure refactoring step; all regression tests pass, splint gives no warnings.
* Guard some inclusions that splint doesn't like. Eric S. Raymond2009-09-101-0/+2
| | | | No effect on compilation. All regression tests pass.
* Split eph into epx and epy internally... Eric S. Raymond2009-09-031-4/+7
| | | | | | ...but still report eph by re-mixing them in the JSON dumper. This was worth doing because all regression tests still pass, showing that visible behavior for old-protocol users gas not changed.
* Major rearrangement of device members in struct gpsdata_t... Eric S. Raymond2009-08-231-1/+1
| | | | | ...documented in the protocol-transition white paper. All regression tests pass.
* I don't think a singular LOS matrix is worth a LOG_WARN. Chris Kuethe2009-07-071-33/+35
| | | | | Also, report which device is feeding the data that causes this singular matrix. And some whitespace cleanups while I'm here...
* This diff goes most of the way to getting us splint-clean again.Eric S. Raymond2009-01-051-1/+1
|
* avoid a crash while parsing time. from greg troxelChris Kuethe2008-12-021-1/+1
|
* revert eric's patch to fix leap year date handlingChris Kuethe2008-01-011-14/+24
| | | | | add rob janssen's patch which may be more efficient - haven't benchmarked either.
* Fix for mkgmtime bug reported by Rob Janssen, from GNU gmtime() manual page.Eric S. Raymond2008-01-011-21/+14
|