summaryrefslogtreecommitdiff
path: root/gpsutils.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Avoid naive FP comparison.Eric S. Raymond2007-12-151-4/+4
|
* Fxes to error-modeling docs.Mick Durkin2007-12-121-5/+5
| | | | | | | | | | | | | | | | | | | | | | 1). I think the description of the co-variance matrix is wrong. I expanded the squared terms so that s(n)^2 became s(n)*s(n) and so on. I then swapped the first and second parts of some terms so that the columns formed a regular pattern. I then "fixed" the terms which seemed wrong and simplifed the s(n)*s(n) terms back to s(n)^2. This does not affect the code, which implemented the correct matrix anyway. 2) The reporting of DOPS had the text descrtiption of calculated and reported fields reversed. 3) The reporting of DOPS had a duplicated pair of format fields for the TDOP. The format now matches the data.
* Fix patch by Petr Slansky.Eric S. Raymond2007-12-121-5/+5
|
* Fix to time conversion by Petr Slansky; passes all stable regressions.Eric S. Raymond2007-12-111-7/+6
| | | | Also, change a formal from int to size_t appropriately.
* One bit of the algebra in the DOP computation from satellites was incorrect; Eric S. Raymond2007-12-101-9/+40
| | | | | | | it affects computed VDOPs. Also, never override a reported DOP component with a computed one -- GPS firmware sometimes does satellite deweighting in useful but tricky ways, and we don't want to lose this advantage.
* avoid a core dump if somehow one of these pointers is NULLChris Kuethe2007-10-161-0/+2
|
* Our formula for computing estimated track error was computationally unstable.Eric S. Raymond2006-12-081-6/+6
| | | | | | | | | | | | | | | At low velocities it often yielded NaN on a 64-bit machine but a number close to 180 degress on a 32-bit machine. Address this by (a) punting to NaN when points very close together cause rounding-error blowup in the earth_distance() formula, and (b) punting to NaN when distance between fixes is less than the horizontal fix error estimate. The effect is that estimated track error will be NaN more often, but otherwise much more reliable and less prone to diverge between systems with different word sizes and/or FPU hardware. This change cuts the observed number of diff lines generated by 'make regress' on a 32-bit machine roughly in half.
* Convert some log levels I missed first time around.Eric S. Raymond2006-11-021-1/+1
|
* Define uniform log level macros.Eric S. Raymond2006-11-021-9/+9
| | | | | | | | | | | | | | | | | | | | | | This patch defines a uniform set of log levels and changes all gpsd_report() instances to use them. In most cases (I'd say about 80%) this will make no observable difference, as the numeric log levels the code was using were not too badly inconsistent anyway. The new log level macros are defined and described in gpsd.h. The main thing I wanted was to be able to consistently force dumping of all I/O to devices and clients with -D 4. Some drivers didn't honor this. One or two still may not through lack of an internal write() wrapper that does logging; there will need to be some followup changes. Level 0 messages are always displayed, but to make the semantics clearer there are two defines LOG_ERR and LOG_SHOUT. Level 5 is still super-raw I/O reporting. Level 6 and 7 messages are tagged RAW_LOG+1 and RAW_LOG+2; I was particularly careful about these because we have one report of a user who is getting good results from Garmin serial only at -D 7 or up, and perish forbid I should interfere with that bug being found.
* Rename config.h so it can be installed as gpsd_config.h...Chris Kuethe2006-10-261-0/+2
| | | | | | ...for those who want to build their own apps linked against libgps and want the headers to work. Works on OpenBSD, tested by Jeff Francis on OS X and Linux
* Add subversion ID tags near the beginning of every file.Chris Kuethe2006-09-211-0/+1
| | | | First line where possible, second line for scripts called with #!
* Design decision: Trie North data gets mapped into existing fields (track, etc)Eric S. Raymond2006-08-311-6/+0
| | | | | | | | ...rather than new ones like heading. This gets rid of the HEADING_FIX code contributed but not compiled in by default. Also, fix a place in the zodiac driver that sets a fix rather than newdata member.
* Properly clear out latitude and longitude.Eric S. Raymond2006-08-211-0/+1
|
* Fixed reversed sense on some tests (only used for debugging).Eric S. Raymond2006-08-201-14/+14
|
* splint cleanup after CK's strcat()/strlcopy() cleanup.Eric S. Raymond2006-08-201-16/+18
|
* Support code for querying validity of fix fields.Eric S. Raymond2006-08-201-0/+66
|
* String safety, courtesy of snprintf, strlcat and strlcpy.Chris Kuethe2006-08-191-1/+1
| | | | | | | GPSD is now free from the often-misused strcat, strcpy and sprintf. Future code should not use unbounded string functions. Glibc users, please verify that the integrated strlcat and strlcpy are correctly linked in.
* Enable 'j' command in cgps.Eric S. Raymond2006-08-181-0/+6
|
* Fixes by Mick Durkin...Eric S. Raymond2006-07-211-4/+8
| | | | ...including one that has been hosing DOP computatation from SiRF reports.
* splint and error-message cleanup.Eric S. Raymond2005-08-031-1/+1
|
* True North support integrated.Eric S. Raymond2005-08-011-1/+1
| | | | | | It's not compiled in by default, but it does require one architecture change -- device channels is now a driver- specific capability, since the Thales GPS our TrueNorth user is working with has 14 channels.
* Petr Slanky's latest Evermore patch and some splint cleanups.Eric S. Raymond2005-07-251-1/+1
|
* Add unix_to_gpstime.Eric S. Raymond2005-07-131-0/+7
|
* Correct tdop computation.Eric S. Raymond2005-07-131-6/+6
|
* Experimental code to hunt for a DGPSIP server.Eric S. Raymond2005-06-291-3/+1
|
* Prep work for 16-channel receivers; silence a warning about PPS initialization.Eric S. Raymond2005-06-221-3/+5
|
* This version passes the regression test.Eric S. Raymond2005-06-201-2/+2
|
* Back out a change that (harmlessly) broke the regression test...Eric S. Raymond2005-06-201-1/+1
| | | | ...until we grok why it did.
* First steps towards solving Rob Janssen's DOP problem.Eric S. Raymond2005-06-201-1/+1
|
* Let's confuse Andreas less.Eric S. Raymond2005-06-191-1/+1
|
* New data-lifetime code looks like it might be ready for prime time.Eric S. Raymond2005-06-171-7/+9
|
* New packet-return API using newdata and explicit merging.Eric S. Raymond2005-06-151-0/+50
|
* Various small cleanups.Eric S. Raymond2005-06-151-1/+0
| | | | | Fix a return type. Note start-of-cycle in some test loads. Consolidate -DGNU_SOURCE loads.
* 75 splint warnings with all -unrecog directives removed.Eric S. Raymond2005-06-071-9/+5
|
* 78 splint warnings.Eric S. Raymond2005-06-071-2/+0
|
* 104 split errors. Some iffy changes to the TSIP driver.Eric S. Raymond2005-06-021-1/+3
|
* 560 splint errors.Eric S. Raymond2005-05-291-8/+20
|
* Get rid of more sprintfs.Eric S. Raymond2005-05-271-2/+2
|
* 1485 splint warnings.Eric S. Raymond2005-05-261-7/+7
|
* More splint cleanup. Down to 1689 warnings.Eric S. Raymond2005-05-261-0/+2
|
* Preparation for the TSIP driver.Eric S. Raymond2005-05-241-5/+4
|
* Pass along, or compute, TDOP and GDOP.Eric S. Raymond2005-05-221-0/+2
|
* More about deweighting.Eric S. Raymond2005-04-291-0/+17
|
* DOP computation for SiRF binary is now available.Eric S. Raymond2005-04-291-5/+29
| | | | Thus we can give all components of a 3D error estimate.
* Matrix multiplication fixes from Jonathan Brandmeyer.Eric S. Raymond2005-04-281-8/+10
|