if (state_end[state.state] < state.time)
state_end[state.state] = state.time;
max_height = state.max_height;
- max_speed = state.max_speed;
+ if (state.max_speed != 0)
+ max_speed = state.max_speed;
+ else
+ max_speed = state.max_baro_speed;
max_acceleration = state.max_acceleration;
}
} catch (ParseException pp) {
}
}
- public AltosFlightStats(AltosRecordIterable iterable, String filename) throws InterruptedException, IOException {
- this(new AltosReplayReader(iterable.iterator(), filename));
+ public AltosFlightStats(AltosRecordIterable iterable, File file) throws InterruptedException, IOException {
+ this(new AltosReplayReader(iterable.iterator(), file));
}
public AltosFlightStats(AltosRecordIterable iterable) throws InterruptedException, IOException {
- this(iterable, "");
+ this(iterable, new File(""));
}
}