altoslib: Deal with new Mega log format that has 32-bit gyro cal
[fw/altos] / altoslib / AltosLib.java
index c3c1226ed4ec7a4ec8a8412e71ac763232140c01..92a22ec77e8a4944856e90313336dac743ad9c1f 100644 (file)
@@ -112,6 +112,7 @@ public class AltosLib {
        public final static int product_telegps = 0x0025;
        public final static int product_easymini = 0x0026;
        public final static int product_telemini = 0x0027;
+       public final static int product_easymega = 0x0028;
        public final static int product_altusmetrum_min = 0x000a;
        public final static int product_altusmetrum_max = 0x002c;
 
@@ -143,7 +144,8 @@ public class AltosLib {
                new Product("megadongle", product_megadongle),
                new Product("telegps", product_telegps),
                new Product("easymini", product_easymini),
-               new Product("telemini", product_telemini)
+               new Product("telemini", product_telemini),
+               new Product("easymega", product_easymega)
        };
 
        public static int name_to_product(String name) {
@@ -313,11 +315,12 @@ public class AltosLib {
        public static final int AO_LOG_FORMAT_TINY = 2;
        public static final int AO_LOG_FORMAT_TELEMETRY = 3;
        public static final int AO_LOG_FORMAT_TELESCIENCE = 4;
-       public static final int AO_LOG_FORMAT_TELEMEGA = 5;
+       public static final int AO_LOG_FORMAT_TELEMEGA_OLD = 5;
        public static final int AO_LOG_FORMAT_EASYMINI = 6;
        public static final int AO_LOG_FORMAT_TELEMETRUM = 7;
        public static final int AO_LOG_FORMAT_TELEMINI = 8;
        public static final int AO_LOG_FORMAT_TELEGPS = 9;
+       public static final int AO_LOG_FORMAT_TELEMEGA = 10;
        public static final int AO_LOG_FORMAT_NONE = 127;
 
        public static boolean isspace(int c) {