summaryrefslogtreecommitdiff
path: root/pseudonmea.c
Commit message (Collapse)AuthorAgeFilesLines
* pseudonmea: Fix potential rounding errors. Combine code.Gary E. Miller2019-04-221-54/+43
| | | | | | | Time could be ouput as: $GPGGA,205660.00. Changes no regressions, but I have seen the error. Combine 5 cases of time code into one function.
* VERR_SET: Removed flag from daemon. No regressions changed.Gary E. Miller2019-03-251-1/+1
| | | | Obviously redundant.
* pseudonmea: remove bad sats from $GPGSV output.Gary E. Miller2019-03-201-20/+34
|
* pseudonmea: Tweak when $GPGBS is output.Gary E. Miller2019-03-141-20/+15
| | | | Require time, epx and epy. Optional epv.
* pseudonmea: Don't report unknown lat/lon/spd/trk as zeros.Gary E. Miller2019-03-141-14/+40
| | | | Report as empty.
* pseudonmea: In $GPGSV, ouput missing PRN as blanks, not zeros.Gary E. Miller2019-03-131-2/+3
|
* pseudonmea: DO not ouput $GPZDA with no valid date.Gary E. Miller2019-03-131-1/+4
| | | | No regressions change.d
* pseudonmea: Renable no-time $GPGBS. This time w/o zeros.Gary E. Miller2019-03-131-10/+18
| | | | Ouput time as blank.
* pseudonmea: Fix $GPGGA to not output zero times.Gary E. Miller2019-03-131-10/+19
| | | | No regtression tests changed. Only called from net_ntrip...
* pseudonmea: Add frac seconds to $GPRMC, no zero times.Gary E. Miller2019-03-131-11/+22
| | | | Replace zero times with blanks.
* pseudonmea: Add fractional seconds to $GPGGAGary E. Miller2019-03-131-5/+8
|
* pseudonmea: Remove lone lines in $GPALM code.Gary E. Miller2019-03-131-14/+15
| | | | No functional change.
* psuedonmea: Make $GPGBS match NMEA 3.0 specGary E. Miller2019-03-131-17/+22
|
* LICENSE: Update licenses for consistency. No functional changes.Gary E. Miller2018-11-191-1/+1
|
* Fix pseudo GSA generationGregory Fong2018-07-141-1/+1
| | | | | | | | | | | | At one point, the check for MODE_SET made sense in gpsd_binary_quality_dump(). But since then, the calling code was refactored to only invoke nmea_tpv_dump() when REPORT_IS is set, eliminating the dupes. Remove the MODE_SET check and update the affected binary regression check files to contain the expected GSA sentences. Signed-off-by: Gary E. Miller <gem@rellim.com>
* psuedonmea.c: isnan() -> isfinite(). Fix a buffer size.Gary E. Miller2018-07-141-17/+23
| | | | Thanks to Virgin Orbit for their support on this patch.
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* Puedo GPGSA outputs 12 SATs and NaNs as empty.Gary E. Miller2016-07-181-12/+30
| | | | | | | | GPGSA is commonly taken to be 12 sats. Prevent ublox and TSIP drivers from outputting more. No regressions had more than 12 anyway. DOPs that were NaNs were output as 0.0. Now output as blanks. Too easy for a user to take 0.0 as a real number.
* More trailing whitespace fixups.Gary E. Miller2015-04-301-3/+3
|
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-13/+5
| | | | | | | | | | | | | | | | | | | The proximate cause was that we've been seing emission of error messages that were randomly and disturbingly variable across different environments - notably Raspbian and Gentoo splint gave nontrivially different results than Ubuntu 14.10 splint. And this was *not* due to Ubuntu patches! A pristine splint built from the 3.1.2 tarball on Ubuntu didn't match the Raspbian and Gentoo results either. But this has been coming for a while. Easy access to more modern static analyzers such as coverity, scan-build and cppcheck has been decreasing the utility of splint, which is unmaintained and somewhat buggy and not easy to use. Only file not cleaned is ppsthread.c, because Gary has been working on it during this cleanup. All regression tests pass. PPS observed live on GR601-W.
* Fix bug in type24 msg in pseudoais.c .Reinhard Arlt2015-02-161-12/+14
|
* Fix incorrect uses of snprintf in pseudo-NMEA code.Zbigniew Chyla2015-01-211-25/+20
|
* Add str_{,v}appendf, use it everywhere.Zbigniew Chyla2015-01-211-9/+5
| | | | This change doesn't affect generated binary code.
* Rename some variables for clarity. All regression tests pass.Zbigniew Chyla2015-01-201-7/+7
|
* Almost entirely eliminate use of sats_used array.Eric S. Raymond2015-01-101-10/+0
| | | | | | | Instead, set the used member in the satellites array directly where possible. The NMEA0183 and TSIP drivers still need a local equivalent. This changes pseudo-NMEA GSA output in several binary-protocol tests.
* Attempt to make scons minimal=true check to passJon Schlueter2015-01-071-1/+1
| | | | Change if 1 to ifdef NEMA_ENABLED for which variant of sats used
* Fix pseudonmea again.Reinhard Arlt2014-12-151-1/+1
|
* Fix GPGSA message in pseudonmea.c .Reinhard Arlt2014-11-031-0/+10
|
* Refactor representation of satellite data into an array of structs...Eric S. Raymond2014-09-221-6/+6
| | | | | | | | | | | | | | | | | | ...from a set of parallel arrays. This change flushed out a longstanding bug in the computation of DOPs for estimated error bars. Some test-load rebuilds were required: geostar-geos1m-binary.log.chk: With this change error estimates are computed and reported. trimble-lassen_iq-3dfix.log, trimble-lassen_iq-3dfix.log: the change revealed a bug in the computation of satellite-seen bits. Error estimates did not change. navcom.log: Error estimates changed. With these rebuilds, all regression tests pass.
* Fix an odd little bug in pseudo-NMEA reporting.Eric S. Raymond2014-09-221-4/+3
| | | | | | | | | | | | | | | | | | | | | | Um. What was I thinking when I wrote that guard? It zeroed out reports of satellites used. Required a rebuild of the following (binary-orotocol) test logs. test/daemon/bu303-climbing.log.chk test/daemon/bu303-moving.log.chk test/daemon/bu303-stillfix.log.chk test/daemon/italk-binary.log.chk test/daemon/navcom.log.chk test/daemon/superstar2.log.chk test/daemon/trimble-lassen_iq-3dfix.log.chk test/daemon/trimble-lassen_iq.log.chk test/daemon/ublox-aek-4t.log.chk test/daemon/ublox-lea-4t.log.chk test/daemon/ublox-sirf1.log.chk test/daemon/zodiac.log.chk After that, all regressiion tests pass.
* Structure member name change: packet -> lexer. No logic changes.Eric S. Raymond2014-08-271-1/+1
| | | | All regression tests pass.
* Move the AIVDM context into the main driver structure scratch area.Eric S. Raymond2013-10-111-1/+1
| | | | | | This allows us to get ride of the AIVDM event hook, because it all tthat was doing was zeroing a queue index that will now be zeroed at the time of the device structure initialization.
* cppcheck ckeanup. All regression tests pass.Eric S. Raymond2013-09-171-1/+1
|
* Pacify splint.Reinhard Arlt2013-08-041-16/+21
|
* More work on AIVDM messages in nmea mode.Reinhard Arlt2013-07-231-19/+84
|
* Groundbreaking for AIVDM messages in nmea mode.Reinhard Arlt2013-07-211-0/+50
|
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-4/+4
|
* Clean up from cppcheck warnings. All regression tests pass.Eric S. Raymond2012-05-171-3/+4
|
* Re-identify most *_IS flags with corresponding *_SET flags.Eric S. Raymond2011-03-271-6/+6
| | | | | | | | | | | 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.
* Splint cleanup. All regression tests pass.Eric S. Raymond2011-02-161-13/+13
|
* Generate NMEA GPALM in pseudo-NMEA when almanic information is available.Michael Tatarinov2011-02-161-0/+32
|
* Explain why we emit ZDA in pseudo-nmea without timezone.Eric S. Raymond2011-02-021-0/+9
|
* Make generated ZDAs report a UTC timezome, since UTC is what they emit.Eric S. Raymond2011-02-011-8/+2
|
* In pseudo-NMEA generation, emit ZDA at top of cycle.Eric S. Raymond2011-02-011-2/+36
|
* More header portability auditing by deheader.Eric S. Raymond2010-12-221-4/+2
|
* Header cleanup.Eric S. Raymond2010-12-141-14/+2
|
* More partial splint cleanup.Eric S. Raymond2010-12-081-4/+4
|
* Use isfinite() rather than obsoilete finite().Eric S. Raymond2010-12-021-4/+4
| | | | Enables gpsd to link with uClibc. Addresses Berlios tracker bug #17368.
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-5/+0
|
* More indent pragmas.Eric S. Raymond2010-04-141-2/+4
|