altoslib: Do data analysis on raw values rather than AltosState
[fw/altos] / altoslib / AltosLib.java
index a3f164d48827ecee6d5278c86863d063582edf07..2137d1d7188469ed059bed9269375f85e0aa68ee 100644 (file)
@@ -162,6 +162,16 @@ public class AltosLib {
                return product_any;
        }
 
+       public static boolean has_9dof(int device_type) {
+               return device_type == product_telemega || device_type == product_easymega;
+       }
+
+       public static boolean has_gps(int device_type) {
+               return device_type == product_telemetrum ||
+                       device_type == product_telemega ||
+                       device_type == product_telegps;
+       }
+
        /* Bluetooth "identifier" (bluetooth sucks) */
        public final static String bt_product_telebt = "TeleBT";