public class AltosFlightStats {
double max_height;
+ double max_gps_height;
double max_speed;
double max_acceleration;
double[] state_speed = new double[Altos.ao_flight_invalid + 1];
boolean has_imu;
boolean has_mag;
boolean has_orient;
+ int num_ignitor;
double landed_time(AltosStateIterable states) {
AltosState state = null;
max_height = state.max_height();
max_speed = state.max_speed();
max_acceleration = state.max_acceleration();
+ max_gps_height = state.max_gps_height();
}
if (state.gps != null && state.gps.locked && state.gps.nsat >= 4) {
if (state_id <= Altos.ao_flight_pad) {
has_mag = true;
if (state.orient() != AltosLib.MISSING)
has_orient = true;
+ if (state.ignitor_voltage != null && state.ignitor_voltage.length > num_ignitor)
+ num_ignitor = state.ignitor_voltage.length;
}
for (int s = Altos.ao_flight_startup; s <= Altos.ao_flight_landed; s++) {
if (state_count[s] > 0) {