projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Correct tick wrapping in eeprom file reading
[fw/altos]
/
altoslib
/
AltosTelemetryFile.java
diff --git
a/altoslib/AltosTelemetryFile.java
b/altoslib/AltosTelemetryFile.java
index 9e992576272cd93df0b7ecc4db8b490fcf647a0e..338726887f76c06533d206ddd6c08008d6f83088 100644
(file)
--- a/
altoslib/AltosTelemetryFile.java
+++ b/
altoslib/AltosTelemetryFile.java
@@
-72,13
+72,16
@@
public class AltosTelemetryFile extends AltosStateIterable {
/* Find boost tick */
AltosState state = start.clone();
/* Find boost tick */
AltosState state = start.clone();
+ System.out.printf ("Searching for boost\n");
for (AltosTelemetry telem : telems) {
telem.update_state(state);
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;
}
}
start.set_boost_tick(state.tick);
break;
}
}
+ System.out.printf ("Found boost %d\n", start.boost_tick);
}
public Iterator<AltosState> iterator() {
}
public Iterator<AltosState> iterator() {