summaryrefslogtreecommitdiff
path: root/pseudonmea.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Once again, GNU indent is easily confused...Eric S. Raymond2010-04-141-2/+0
|
* Scatter GNU indent pragmas to tell it not to do stupid things.Eric S. Raymond2010-04-141-2/+4
| | | | All regression tests pass.
* Reindented core library. All regressiopn tests pass.Eric S. Raymond2010-04-141-77/+82
|
* Make the client library and daemon use different sets of state-flag masks.Eric S. Raymond2010-04-091-5/+5
| | | | | | | | | | | | | | | | | 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.
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-2/+1
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-0/+5
|
* David Ludlow's housekeeping and type-cleanup patch.Eric S. Raymond2010-01-021-4/+11
| | | | All regression tests pass,
* Arrgh. I confused ERR_SET with ERROR_SET in a couple of places.Eric S. Raymond2009-12-181-1/+1
| | | | | | | | | ERR_SET is now gone entirely, so in the extremely unlikely even that an app developer got caught by this (could never happen unless they shipped a bad command via the deprecated gps_send() entry point) the code will break noisily. All regression tests pass.
* gpspipe exposed an orthogonality failure.Eric S. Raymond2009-12-031-3/+8
| | | | | | | | | | | | Fix it by adding a json switch separate from watch enable. This involved moving where fake NMEA is generated to a different place, treating it as just another form of report generation rather than a side effect of receiving a sentence. Also, some client-side code had to be changed to use the json flag. A side effect is that some binary-protocol devicers generate fake $GPGSA sentences somewhat more often than they used to, and this meant rebuilding four more regression tests.
* 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.
* In the gpsdata structure, satellites -> satellites_visibleEric S. Raymond2009-10-011-5/+5
| | | | All regression tests pass, code splints clean.
* Zero some NaNs in reports, prevent duplicative reports...Eric S. Raymond2009-09-211-2/+2
| | | | | ...when multiple channels are active. Codebase splints clean, all regression tests pass
* Splint cleanup. All regression tests pass.Eric S. Raymond2009-09-171-1/+4
|
* Disentangle the packet raw hook used on the client side...Eric S. Raymond2009-09-171-2/+2
| | | | | | ...from the internals of gpsd. Besides being better factoring, this will give us better control of the daemon's report-generation policy in the future. All regression tests pass. Codebase splints clean.