summaryrefslogtreecommitdiff
path: root/driver_superstar2.c
Commit message (Collapse)AuthorAgeFilesLines
* Collapse various copies of gps_week into one in gps_contxt_t.Gary E. Miller2010-04-161-2/+2
|
* Re-reindent some drivers because we added another control option.Eric S. Raymond2010-04-141-182/+201
| | | | All regression tests pass.
* Move some indent pragmas.Eric S. Raymond2010-04-131-1/+1
|
* Protect more displayed structures from indent.Eric S. Raymond2010-04-131-0/+2
|
* Refactor serial ntpshm_put() calls.Eric S. Raymond2010-04-121-0/+3
| | | | | | | | | | | | | | | These calls move out of scattered places in the drivers into one spot in libgpsd_core.c where they can be guarded with consistent validity checks. Time offset is now computed by a new driver method, ntp_offset(), which has access through the session structure to the baud rate, the tag of the sentence last received, etc. If the ntp_offset() method returns NAN, no notification is shipped. The logic of these methods replicates the sentence and baud-rate specific computations that were embedded in individual sentence methods before. All regression tests pass.
* Signedness fixes indicated by splint.Eric S. Raymond2010-04-101-2/+2
|
* char sign warningsChris Kuethe2010-04-091-24/+24
|
* Make the client library and daemon use different sets of state-flag masks.Eric S. Raymond2010-04-091-14/+14
| | | | | | | | | | | | | | | | | 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.
* Drivers now put their per-packet new data into a session->newdata member.Eric S. Raymond2010-04-051-37/+37
| | | | | | | This is so they won't overwrite session->gpsdata.fix, which is going to move back to being where the current fix has been reported. All regression tests pass.
* Refactoring step. Change the signature of ecef_to_wgs84fix().Eric S. Raymond2010-04-051-1/+1
| | | | 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-1/+5
|
* 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.
* Mac OS X cleanup passes from mledford.Eric S. Raymond2009-11-191-1/+1
|
* Fix some whitespace glitches found while experimenting with indent(1).Eric S. Raymond2009-11-171-2/+2
| | | | All regression tests pass.
* In the wake of the change to use only C99 fixed-length types... Eric S. Raymond2009-10-261-5/+5
| | | | ...splint needs some pacifying. This is part 1. All regressions pass.
* The new instrumentation pays off. Eric S. Raymond2009-10-021-9/+1
| | | | | | | On NMEA devices, mode could sometimes be held across cycles when it shouldn't have been. Fix this, simplifying how cycles are tracked in the process. Some regression tests needed rebuilding. Code splints clean.
* Fix a paste-o that made its way into many LOG_DATA format strings.Eric S. Raymond2009-10-021-2/+2
|
* My bright idea to use timestamp() to set skyview times backfired... Eric S. Raymond2009-10-021-4/+4
| | | | | ...making the regression tests nondeterministic. Oh well. Fixed. All drivers now use the LOG_DATA convention.
* Clear up some driver-level confusion surrounding timestamp setting.Eric S. Raymond2009-10-011-2/+3
| | | | | | | | There was lots of duplicative setting of gpsdata.fix.time and gpsdata.sentence_time. The latter is now gone. The only case the sentence_time member was actually used for was timestamping skyviews; a new gpsdata.skyview_time now handles that, and all drivers set it properly.
* Two more drivers now use the LOG_DATA convention. All regression tests pass.Eric S. Raymond2009-10-011-25/+63
|
* In the gpsdata structure, satellites -> satellites_visibleEric S. Raymond2009-10-011-1/+1
| | | | All regression tests pass, code splints clean.
* Refactor the cycle-end tracking. The AIS machinery should use it.Eric S. Raymond2009-09-301-1/+1
| | | | All regression tests pass.
* Change the driver event set to be more orthogonal.Eric S. Raymond2009-09-161-5/+5
| | | | | | | | | | | This had the expected effect, the N command can now works on SiRFs again because the subdevice probe is not called after every driver switch. One of the Trimbles has minor regression breakage on this change (two fewer reports emitted just after packet lock) but I'm not worrying about that as the TSIP driver needs to be upgraded to do CYCLE_END, anyway.
* More simplification of DOP handling. All regression tests passEric S. Raymond2009-09-151-1/+1
|
* Using clear_dop() means we can get rid of instances of several different flags.Eric S. Raymond2009-09-151-1/+2
| | | | All regression tests pass.
* Begin using clear_dop to ensure that gpsd never reports stale DOP values.Eric S. Raymond2009-09-151-0/+1
| | | | All regression tests pass.
* Give DOPs their own structure...Eric S. Raymond2009-09-151-4/+4
| | | | | | ...mainly because there will shortly be code to clear it as a unit. Pure refactoring step; all regression tests pass, splint gives no warnings.
* Fold the probe_wakup method into the new generic lifetime-event hook. Eric S. Raymond2009-09-131-19/+14
| | | | | | | This finishes the bug refactoring; now we're ready to do actual behavior changes. Codebase splints clean. All regression tests pass.
* Fold the revert method into the generic event hook.Eric S. Raymond2009-09-131-4/+0
| | | | | Abolish the wrapup method; there were only two users, one was trivial, and the other belonged as a revert.
* The configurator member becomes event_hook. Eric S. Raymond2009-09-131-8/+5
| | | | | | | | | | | | | Code that referenced the sequence number argument now looks at session->packet_counter directly. This was almost a pure refactoring step. I added one obviously missing session->packet.counter == 0 test in the oncore driver. Despite temptation, I didn't try to fix when the packet.counter gets zeroed; I'm going to try to confine the behavior changes to one concise patch, which hasn't happened yet. Codebase splints clean. All regression tests pass.
* Merge the configurator and probe_subtype methods. Eric S. Raymond2009-09-131-31/+25
| | | | | | | They're now distinguished by an event argument passed to the common hook function. This is a refactoring step - later, we'll define more and different events for finer-grained control. All regression tests pass.
* Guard some inclusions that splint doesn't like. Eric S. Raymond2009-09-101-0/+2
| | | | No effect on compilation. All regression tests pass.
* pacify splintChris Kuethe2009-09-101-4/+4
|
* Son of the Splint Cleanup.Eric S. Raymond2009-09-101-2/+2
| | | | | Major change in this set is enforcong consistency about the data type of serial parity information.
* Bride of the Splint Cleanup. All regression tests pass.Eric S. Raymond2009-09-101-2/+2
|
* Continuing the splint cleanup.Eric S. Raymond2009-09-101-1/+1
|
* More splint cleanup. All regression tests pass.Eric S. Raymond2009-09-091-0/+5
|
* Partial splint cleanup. All regression tests pass.Eric S. Raymond2009-09-091-1/+1
|
* Reliable cycle-start indication for almost all drivers.Eric S. Raymond2009-09-091-2/+22
| | | | | Some regression tests needed to be rebuilt as a result. One new regression test, for iTalk binary.
* Now make it possible for a driver to signal cycle start, cycle end, ... Eric S. Raymond2009-09-031-2/+2
| | | | | and the fact that its cycle end indication is reliable. All regression tests pass.
* Break the cycle-start flag out of general status mask into its own field.Eric S. Raymond2009-09-031-4/+4
| | | | Refactoring step, no behavior changes. All regression tests pass.
* Major rearrangement of device members in struct gpsdata_t... Eric S. Raymond2009-08-231-4/+4
| | | | | ...documented in the protocol-transition white paper. All regression tests pass.
* Move some struct gpsdata_t members around to get better space economy.Eric S. Raymond2009-08-181-5/+5
| | | | | | Change the way device lists are represented so they can carry attributes from the new protocol. No more variable sizes by configure option, all that stuff gets swallowed up in the union member now.
* Abolish device classes. Eric S. Raymond2009-08-101-2/+0
| | | | | | That way of doing things coped poorly if, for example, NMEA and AIVDM packets were reported over the same wire. Instead, have ach device track the packet types it has actually seen and dispatch on that.
* Silence some compiler warnings.Eric S. Raymond2009-07-291-5/+5
|
* Add and document the device_class member, so we can do ?DEVICES properly.Eric S. Raymond2009-07-241-2/+4
|
* pull a couple of choice values out of the ephemeris and iono messages.Chris Kuethe2009-07-041-14/+52
|
* take a hint from the tsip driver... Chris Kuethe2009-07-041-4/+17
| | | | | | | ...and add a scheduler for certain types of packets. in this case, we don't need continuous output of ionospheric and utc parameters - requesting those every time a fresh ephemeris should be enough to keep consumers of this data happy.
* remove ugly hacks that are no longer needed now that i fixed the sniffer,Chris Kuethe2009-07-041-15/+4
| | | | and enable messages that are needed to generate RINEX files