From: Keith Packard Date: Sun, 5 Sep 2010 08:55:56 +0000 (-0700) Subject: altosui: eeprom files place 'boost' time in the flight number record. X-Git-Tag: debian/0.7+79+g3d49d5f~2 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b61fec225ada6a9e252e4c7920101ee18c77cbdc;hp=-c;p=fw%2Faltos 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 --- b61fec225ada6a9e252e4c7920101ee18c77cbdc 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; }