altosui: Add idle monitor dialog
[fw/altos] / altosui / AltosState.java
index 4e165f8093550ea4ea0fe74fb552d3d3073084a4..d374aed8e5d410e32fb34c30c3f291f8ea8e81f9 100644 (file)
@@ -80,7 +80,6 @@ public class AltosState {
 
                ground_altitude = data.ground_altitude();
                height = data.filtered_height();
-               System.out.printf("height %g\n", height);
 
                report_time = System.currentTimeMillis();
 
@@ -131,7 +130,7 @@ public class AltosState {
                        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)