diff options
author | Keith Packard <keithp@keithp.com> | 2010-09-05 01:55:56 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-09-05 01:55:56 -0700 |
commit | b61fec225ada6a9e252e4c7920101ee18c77cbdc (patch) | |
tree | c028d0269051a9d3386e81831c1691b154b69f4c /ao-tools | |
parent | 6c653a4cba5fef8d49261cf1c024f3e86e9058c6 (diff) |
altosui: eeprom files place 'boost' time in the flight number record.
Instead of looking for the first state change record, use the Flight
record to get the boost tick.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools')
-rw-r--r-- | ao-tools/altosui/AltosEepromReader.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ao-tools/altosui/AltosEepromReader.java b/ao-tools/altosui/AltosEepromReader.java index 86bbaee0..cb82f9a9 100644 --- a/ao-tools/altosui/AltosEepromReader.java +++ b/ao-tools/altosui/AltosEepromReader.java @@ -101,8 +101,6 @@ public class AltosEepromReader extends AltosReader { int gps_tick; - boolean saw_boost; - int boost_tick; boolean saw_gps_date; @@ -343,15 +341,10 @@ public class AltosEepromReader extends AltosReader { if (record.cmd == Altos.AO_LOG_INVALID) continue; tick = record.tick; - if (!saw_boost && record.cmd == Altos.AO_LOG_STATE && - record.a >= Altos.ao_flight_boost) - { - saw_boost = true; - boost_tick = tick; - } if (record.cmd == Altos.AO_LOG_FLIGHT) { state.ground_accel = record.a; state.flight = record.b; + boost_tick = tick; seen |= seen_flight; } |