altoslib: Use sequence numbers to track GPS updates to AltosRecord
authorKeith Packard <keithp@keithp.com>
Tue, 14 May 2013 07:24:53 +0000 (00:24 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 14 May 2013 07:24:53 +0000 (00:24 -0700)
commit43f94e923a6a87520edcbb8fb4829e6ddf708908
tree418a5faf0b502845450f092961aa78235d5d22ea
parentc88aa32b979f379e3cf316dcb651e264c32a5283
altoslib: Use sequence numbers to track GPS updates to AltosRecord

State objects now record what GPS sequence ID they have to know when
the GPS data has been updated. Record objects bump the GPS sequence
each time new GPS data is recorded. This way, record objects aren't
modified as they're iterated over to generate the list of state
objects which makes it possible to iterate multiple times and get the
same resulting set of states.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosEepromIterable.java
altoslib/AltosEepromMegaIterable.java
altoslib/AltosIdleMonitor.java
altoslib/AltosRecord.java
altoslib/AltosState.java
altoslib/AltosTelemetryRecordLegacy.java
altoslib/AltosTelemetryRecordLocation.java