/*
* Sensor data conversion functions
*/
-package org.altusmetrum.altoslib_4;
+package org.altusmetrum.altoslib_9;
public class AltosConvert {
/*
return sensor / 32767.0 * supply * (5.6 + 10.0) / 10.0;
}
+ static double tele_bt_3_battery(int raw) {
+ if (raw == AltosLib.MISSING)
+ return AltosLib.MISSING;
+ return 3.3 * mega_adc(raw) * (5.1 + 10.0) / 10.0;
+ }
+
static double easy_mini_voltage(int sensor, int serial) {
double supply = 3.3;
double diode_offset = 0.0;
public static AltosOrient orient = new AltosOrient();
+ public static AltosVoltage voltage = new AltosVoltage();
+
+ public static AltosLatitude latitude = new AltosLatitude();
+
+ public static AltosLongitude longitude = new AltosLongitude();
+
public static String show_gs(String format, double a) {
a = meters_to_g(a);
format = format.concat(" g");