altoslib: Don't crash if there's no GPS coord to write KML
[fw/altos] / altoslib / AltosCalData.java
index 49b90ce7d5ff9a58f13f7949e2a2f8dd94d0cccb..7415d5ad6584e54c4594fe44c21ef5588529c537 100644 (file)
@@ -12,7 +12,7 @@
  * General Public License for more details.
  */
 
-package org.altusmetrum.altoslib_11;
+package org.altusmetrum.altoslib_12;
 
 /*
  * Calibration and other data needed to construct 'real' values from various data
@@ -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;
        }