diff options
author | Keith Packard <keithp@keithp.com> | 2013-09-02 23:10:23 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-09-02 23:11:52 -0600 |
commit | 528e2e41112cad8a81bccbb89c3bd202b818a506 (patch) | |
tree | 2c2076a5d1972681ba3300e9a44636b526efaa82 /altoslib/AltosTelemetryFile.java | |
parent | 224a1e01bacb7db0076129906ed58e1c785e1b14 (diff) |
altoslib: More AltosState hacking
EasyMini graphs are looking good now.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosTelemetryFile.java')
-rw-r--r-- | altoslib/AltosTelemetryFile.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/altoslib/AltosTelemetryFile.java b/altoslib/AltosTelemetryFile.java index 9e992576..33872688 100644 --- a/altoslib/AltosTelemetryFile.java +++ b/altoslib/AltosTelemetryFile.java @@ -72,13 +72,16 @@ public class AltosTelemetryFile extends AltosStateIterable { /* Find boost tick */ AltosState state = start.clone(); + System.out.printf ("Searching for boost\n"); for (AltosTelemetry telem : telems) { telem.update_state(state); - if (state.state >= AltosLib.ao_flight_boost) { + if (state.state != AltosLib.ao_flight_invalid && state.state >= AltosLib.ao_flight_boost) { + System.out.printf ("boost tick %d\n", state.tick); start.set_boost_tick(state.tick); break; } } + System.out.printf ("Found boost %d\n", start.boost_tick); } public Iterator<AltosState> iterator() { |