altoslib: fix computation of TeleGPS battery voltage
[fw/altos] / altoslib / AltosConvert.java
index d246018700bfd1d0746330f6724e27ab86f208c9..e1930430add0de07f49812808e053edfa5b0e38e 100644 (file)
@@ -261,7 +261,7 @@ public class AltosConvert {
        static double tele_gps_voltage(int sensor) {
                double  supply = 3.3;
 
-               return sensor / 32767.0 * supply * (5.6 + 10.0) / 10.0;
+               return sensor / 4095.0 * supply * (5.6 + 10.0) / 10.0;
        }
 
        static double tele_bt_3_battery(int raw) {