diff options
| author | Keith Packard <keithp@keithp.com> | 2011-10-27 00:49:23 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-10-27 00:49:23 -0700 |
| commit | 0669f0d74fc24c4f1925a45a9975b7a49a65b692 (patch) | |
| tree | 5b2bef044755a081f1edce5fd27f31edb2f8ab88 /altosui/AltosEepromIterable.java | |
| parent | c7e14a2750d437e8b77d68a944a0711e7a0c882b (diff) | |
altosui: Only update GPS data when new GPS information arrives
Track which telemetry packets are actually producing new GPS
information and only update the GPS average position and count of
stable GPS reports with new GPS info, instead of on every telemetry packet.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosEepromIterable.java')
| -rw-r--r-- | altosui/AltosEepromIterable.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/altosui/AltosEepromIterable.java b/altosui/AltosEepromIterable.java index 812e5fc6..d8205816 100644 --- a/altosui/AltosEepromIterable.java +++ b/altosui/AltosEepromIterable.java @@ -177,6 +177,7 @@ public class AltosEepromIterable extends AltosRecordIterable { state.gps.locked = (flags & Altos.AO_GPS_VALID) != 0; state.gps.nsat = (flags & Altos.AO_GPS_NUM_SAT_MASK) >> Altos.AO_GPS_NUM_SAT_SHIFT; + state.new_gps = true; has_gps = true; break; case Altos.AO_LOG_GPS_LAT: |
