diff options
| author | Keith Packard <keithp@keithp.com> | 2011-03-25 21:34:31 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-03-25 21:35:44 -0700 |
| commit | 011615d40b3cb1d1c0ab9fa41e139e263a6a51e7 (patch) | |
| tree | c9fe599e61a731579c3504ef2eb9fcd41f05ae3d /altosui/AltosEepromIterable.java | |
| parent | dea80af81b388cc3d7073444919f4e98b12fa730 (diff) | |
altosui: Add support for downloading TeleMini/TeleNano flight logs
Splits the eeprom downloading code into eeprom block downloading and
separate eeprom data parsing so that the new data logging format can
share the data downloading code.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosEepromIterable.java')
| -rw-r--r-- | altosui/AltosEepromIterable.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/altosui/AltosEepromIterable.java b/altosui/AltosEepromIterable.java index f8e6d7e5..bb7c7bef 100644 --- a/altosui/AltosEepromIterable.java +++ b/altosui/AltosEepromIterable.java @@ -124,6 +124,10 @@ public class AltosEepromIterable extends AltosRecordIterable { } eeprom.seen |= seen_sensor; break; + case Altos.AO_LOG_HEIGHT: + state.height = record.a; + eeprom.seen |= seen_sensor; + break; case Altos.AO_LOG_TEMP_VOLT: state.temp = record.a; state.batt = record.b; @@ -155,7 +159,6 @@ public class AltosEepromIterable extends AltosRecordIterable { int flags = (record.b >> 8); state.gps.connected = (flags & Altos.AO_GPS_RUNNING) != 0; state.gps.locked = (flags & Altos.AO_GPS_VALID) != 0; - state.gps.date_valid = (flags & Altos.AO_GPS_DATE_VALID) != 0; state.gps.nsat = (flags & Altos.AO_GPS_NUM_SAT_MASK) >> Altos.AO_GPS_NUM_SAT_SHIFT; break; |
