altoslib: Use 'stateless' for Monitor Idle
authorKeith Packard <keithp@keithp.com>
Sat, 7 Feb 2015 05:50:47 +0000 (21:50 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Feb 2015 05:50:47 +0000 (21:50 -0800)
This reflects the lack of flight state progression during Monitor Idle
and ensures that the GPS 'ready' indicator will light after 10 solid
GPS fixes.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosIdleFetch.java

index 8958d80c7ae232e149d938ee7beab76368d84f55..ce837fed5710e709844c6b635abf5552cdce6f0d 100644 (file)
@@ -141,7 +141,7 @@ public class AltosIdleFetch implements AltosStateUpdate {
                try {
                        /* Fetch config data from remote */
                        AltosConfigData config_data = new AltosConfigData(link);
                try {
                        /* Fetch config data from remote */
                        AltosConfigData config_data = new AltosConfigData(link);
-                       state.set_state(AltosLib.ao_flight_startup);
+                       state.set_state(AltosLib.ao_flight_stateless);
                        state.set_serial(config_data.serial);
                        state.set_callsign(config_data.callsign);
                        state.set_ground_accel(config_data.accel_cal_plus);
                        state.set_serial(config_data.serial);
                        state.set_callsign(config_data.callsign);
                        state.set_ground_accel(config_data.accel_cal_plus);