projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
34b5144
)
altoslib: fix computation of TeleGPS battery voltage
author
Bdale Garbee
<bdale@gag.com>
Sat, 20 Oct 2018 07:17:39 +0000
(
01:17
-0600)
committer
Bdale Garbee
<bdale@gag.com>
Sat, 20 Oct 2018 07:17:39 +0000
(
01:17
-0600)
altoslib/AltosConvert.java
patch
|
blob
|
history
diff --git
a/altoslib/AltosConvert.java
b/altoslib/AltosConvert.java
index d246018700bfd1d0746330f6724e27ab86f208c9..e1930430add0de07f49812808e053edfa5b0e38e 100644
(file)
--- a/
altoslib/AltosConvert.java
+++ b/
altoslib/AltosConvert.java
@@
-261,7
+261,7
@@
public class AltosConvert {
static double tele_gps_voltage(int sensor) {
double supply = 3.3;
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) {
}
static double tele_bt_3_battery(int raw) {