altoslib: Don't crash if there's no GPS coord to write KML
[fw/altos] / altoslib / AltosCalData.java
index b49e3792fad00074316191d91a51a9346db5ab3c..7415d5ad6584e54c4594fe44c21ef5588529c537 100644 (file)
@@ -72,6 +72,13 @@ public class AltosCalData {
                }
        }
 
+       public int              log_format = AltosLib.MISSING;
+
+       public void set_log_format(int log_format) {
+               if (log_format != AltosLib.MISSING)
+                       this.log_format = log_format;
+       }
+
        public int              config_major = AltosLib.MISSING;
        public int              config_minor = AltosLib.MISSING;
        public int              flight_log_max = AltosLib.MISSING;
@@ -342,8 +349,8 @@ public class AltosCalData {
                        v = Math.ceil(v);
                else
                        v = Math.floor(v);
-               if (v != 0)
-                       System.out.printf("Adjusting gyro axis by %g steps\n", v);
+//             if (v != 0)
+//                     System.out.printf("Adjusting gyro axis by %g steps\n", v);
                return v * 128.0;
        }