summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
Commit message (Collapse)AuthorAgeFilesLines
* irf/gpsd_core: Fix two 32 bit compat nits.Gary E. Miller2019-04-241-1/+1
|
* libgpsd_core.c: Improve error message a tad.Gary E. Miller2019-04-231-2/+4
|
* gpsd_error_model(): Add note about ept from tdop.Gary E. Miller2019-03-261-0/+1
|
* Split epe into eph and sep.Gary E. Miller2019-03-221-2/+9
| | | | | | | | Try to do it with forward and backward compatibility, which is challenging with current miscojson. Sometimes epe was used to 2D estimated erro. Sometimes for 3D error. So make it explicit eph is 2D, and sep is 3D.
* Move epe from gps_data_t to be near its friends in gps_fix_t.Gary E. Miller2019-03-151-4/+2
| | | | No functional changes. Looks like epe never went anywhere...
* libgpsd_core: Simplify epc computation.Gary E. Miller2019-03-151-3/+2
| | | | The computed epc does not match epc from some GPS.
* libgpsd_core: Reorder error modeling simplifying if's.Gary E. Miller2019-03-141-46/+44
| | | | No functional changes.
* libgpsd_core: Step clobbering epe when error modeling.Gary E. Miller2019-03-131-2/+1
| | | | | This released a flood of GPGBS. But the GPGBS are wrong format according to NMEA 3.0...
* libgpsd_core: Reformat some error modeling code.Gary E. Miller2019-03-131-22/+28
| | | | No functional change. No regression changes.
* driver_nmea0183 and more: Decode $PSRFEPE add eps.Gary E. Miller2019-03-131-2/+2
| | | | | Turns out eps also came from other GPS, but never made it to TPV. Regressions changed to show new eps data.
* driver_nmea0183 and more: Decode $PSRFEPE, and epd.Gary E. Miller2019-03-131-1/+3
| | | | | Turns out epd also came from SiRF, but never made it to TPV. Regressions changed to show new epd data.
* Change NMEA mode setting, thus major changes in gpsd_error_model().Gary E. Miller2019-03-071-62/+98
| | | | | | | | | | | | | | | | The start of this overly large patch was to simply move the test for MODE_2D/3D flipping, which only affect NMEA 183, back into driver_nmea0813.c But that was intertwined with how gpsd_error_model() computes derived variables, which required major changes to how NMEA 183 mode_2D/3D are set. This ultimatly led to major regression test results. Almost all for the better. I tried to break it up, but moving from one paradigm to another needed one big jump...
* libgpsd_core: Be sure to init gps_devive_t->nmeaGary E. Miller2019-02-051-1/+4
| | | | Otherwise a few uninitialized memory issues...
* libgpsd_core: Short cicuit gpsd_log() on low log level.Gary E. Miller2019-01-101-0/+5
| | | | This saves a bunch of unneeded pushing and popping.
* Factor most uses of pselect(2) into a new utility function named 'nanowait'.Eric S. Raymond2018-12-271-1/+1
| | | | | Also, remove sime header inclusions discovered to be unnecessary during the change.
* POSIX_C_SOURCE: Not just a linux define. 200112L is a minimum.Gary E. Miller2018-12-261-1/+4
| | | | Don't force _POSIX_C_SOURCE 200112L, just make it a minimum.
* Eliminate effectively all uses of struct timeval.Eric S. Raymond2018-12-261-2/+2
| | | | | Outide of one Mac portability shim, anyway. Associated select(2) calls become pselect(2) calls.
* Removed variable length arrays, added -Wvla compiler option.vla-removalIan Bruene2018-11-261-3/+3
|
* LICENSE: Update licenses for consistency. No functional changes.Gary E. Miller2018-11-191-1/+1
|
* gps.h: remove wrong SBAS_PRN()Gary E. Miller2018-09-191-2/+2
| | | | | This macro was wrong, and causing valid sats to not be included in the COP calculations.
* ATT: centralize clearing of the attitude data.Gary E. Miller2018-09-111-1/+6
| | | | | This showed up a bug where rtcm3_unpack() was not clearing its rtcm3 data, which is a union with the attitude data.
* libgpsd_core.c: Better initial sanitization of skyview[]Gary E. Miller2018-07-141-16/+44
| | | | Thanks to Virgin Orbit for their support on this patch.
* libgpsd_core.c: isnan() -> isfinite()Gary E. Miller2018-07-141-24/+27
| | | | Thanks to Virgin Orbit for their support on this patch.
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* Add ECEF support to u-blocx driver, data comes out in json.Gary E. Miller2018-02-081-2/+3
| | | | More work to do so cgps, xgps, etc. see the new data.
* Clean up C and Python code-checker warnings.Eric S. Raymond2017-09-061-1/+1
|
* Removes obsolete flag tweak related to alloca().Fred Wright2016-09-221-4/+0
| | | | | | | | | | There's no longer any need for an alloca() prototype, now that alloca() is gone. TESTED: Ran "scons build-all check" on OSX 10.9, Ubuntu 14.04, and CentOS 7. Signed-off-by: Gary E. Miller <gem@rellim.com>
* Shield FreeBSD from standards compliance.Gary E. Miller2016-09-071-0/+4
| | | | | gpsd now compiles, and runs scons check, with no warnings on FreeBSD.
* Eliminate the one use of the portability-challenged alloca()Fred Wright2016-09-061-12/+13
| | | | | | | | | | | | | | | | In general, the use of alloca() is discouraged. Here, there was only one use, with a maximum size determinable at compile time, so the code has been reworked to use an ordinary array (without relying on the C99 variable-length array feature). This always allows for a GPS_PATH_MAX-sized device_name, but the amount of space needed for that is relatively modest, and the behavior is more reproducible with a fixed allocation. TESTED: Ran "scons build-all check" on OSX. This code shouldn't be OS-dependent. Signed-off-by: Gary E. Miller <gem@rellim.com>
* Fixups for NetBSDGary E. Miller2016-08-161-1/+4
|
* __DARWIN_C_LEVEL and _DARWIN_C_SOURCE to silence some warnings.Gary E. Miller2016-08-161-0/+3
| | | | vsnprintf() and strlcmp() are happier now.
* If you specify XOPEN version, you must specify POSIX version.Gary E. Miller2016-08-161-0/+2
| | | | | | This fixes 32-bit Gentoo on RasPi. All regression tests pass.
* In POSIX 2001, getsid() needs _XOPEN_SOURCE >= 500Gary E. Miller2016-08-151-0/+4
|
* alloca() needs alloca.hGary E. Miller2016-08-151-0/+1
| | | | Not in POSIX, so a little undefined.
* Replace a malloc() with an alloca()Gary E. Miller2016-05-251-22/+17
| | | | This is to confrm with gpsd hacking standards which discourage malloc().
* Fix log message to show real count of stas used.Gary E. Miller2016-04-081-1/+3
|
* Add another gross sanity check for climb/speedGary E. Miller2016-04-061-0/+13
| | | | I would rather find where the bad data is coming from...
* libgpsd-core: Fix issue with ACTIVATE hook not being called.Moritz Fischer2016-01-051-1/+1
| | | | | | | | | | In the current system session->mode seemed to ignore the O_OPTIMIZE flag, leading to the ACTIVATE hook being ignored. Another way to fix this would be to keep the session->mode condition pull up the check for O_CONTINUE. Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* Address bug #46495: gpsd_poll may crash due to unitialized pointer.Fred Wright2016-01-041-0/+3
|
* Address Savannah bug #46082 - Can't explicitly build with NMEA drivers.Eric S. Raymond2015-10-011-2/+2
|
* Copy structs using assignment, not memcpy().Zbigniew Chyla2015-05-311-2/+2
|
* Still more whitespace fixupsGary E. Miller2015-04-301-16/+16
|
* Revert "Copy structs using assignment, not memcpy()."Gary E. Miller2015-04-281-2/+2
| | | | | | | | | | | | | | | | | | | | This reverts commit d1965788249d7e22cdde4021d452cf0dc6c6b9bd. This breaks my build on Gentoo running gcc 4.9.2 libgps_shm.c: In function 'int gps_shm_read(gps_data_t*)': libgps_shm.c:122:12: error: no match for 'operator=' (operand types are 'gps_data_t' and 'volatile gps_data_t') noclobber = shared->gpsdata; ^ libgps_shm.c:122:12: note: candidate is: In file included from gpsd.h:350:0, from libgps_shm.c:30: gps.h:1918:8: note: gps_data_t& gps_data_t::operator=(const gps_data_t&) struct gps_data_t { ^ gps.h:1918:8: note: no known conversion for argument 1 from 'volatile gps_data_t' to 'const gps_data_t&'
* Copy structs using assignment, not memcpy().Zbigniew Chyla2015-04-281-2/+2
|
* Revert weirdness caused by d302a714f3b3735062ce9c9fc6cdd9d0e74f43f6Gary E. Miller2015-04-131-1/+1
| | | | netlib_connectsock() lost the underscore.
* Merge branch 'master' of git.sv.gnu.org:/srv/git/gpsdEric S. Raymond2015-04-131-1/+1
| | | | | Conflicts: gpscap.ini
* Remove an impossible FIXME and an ill-specified TODO. No code changes.Eric S. Raymond2015-04-011-3/+8
|
* Increase consistency of names. No code changes.Eric S. Raymond2015-04-011-1/+1
|
* Clean up PPS monitor interface with renames, and additional documentation.Eric S. Raymond2015-04-011-1/+1
|
* Thread monitor interface simplification.Eric S. Raymond2015-04-011-1/+0
| | | | | | With a bit of refactoring we can eliminate one of the hooks. PPS observed live, telnetting to localhost:2947 with gpsd running.