ground_altitude = data.ground_altitude();
height = data.filtered_height();
- System.out.printf("height %g\n", height);
report_time = System.currentTimeMillis();
time_change = 0;
}
- if (state == Altos.ao_flight_pad) {
+ if (state == Altos.ao_flight_pad || state == Altos.ao_flight_idle) {
/* Track consecutive 'good' gps reports, waiting for 10 of them */
if (data.gps != null && data.gps.locked && data.gps.nsat >= 4)