projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/stm: Use #define'd constants for GPIO register addresses
[fw/altos]
/
altoslib
/
AltosLib.java
diff --git
a/altoslib/AltosLib.java
b/altoslib/AltosLib.java
index 36a2ab3289598ba7e23d877b670a47895dcfed2b..3f25bc3199d8ec1d11ba0a9f2e27bf8eaae0dfcb 100644
(file)
--- a/
altoslib/AltosLib.java
+++ b/
altoslib/AltosLib.java
@@
-15,7
+15,7
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-package org.altusmetrum.altoslib_
2
;
+package org.altusmetrum.altoslib_
3
;
import java.util.*;
import java.io.*;
import java.util.*;
import java.io.*;
@@
-143,6
+143,11
@@
public class AltosLib {
/* Bluetooth "identifier" (bluetooth sucks) */
public final static String bt_product_telebt = "TeleBT";
/* Bluetooth "identifier" (bluetooth sucks) */
public final static String bt_product_telebt = "TeleBT";
+ /* "good" voltages */
+
+ public final static double ao_battery_good = 3.8;
+ public final static double ao_igniter_good = 3.5;
+
/* Telemetry modes */
public static final int ao_telemetry_off = 0;
public static final int ao_telemetry_min = 1;
/* Telemetry modes */
public static final int ao_telemetry_off = 0;
public static final int ao_telemetry_min = 1;
@@
-198,7
+203,7
@@
public class AltosLib {
throw new IllegalArgumentException(String.format("Invalid telemetry %d",
telemetry));
}
throw new IllegalArgumentException(String.format("Invalid telemetry %d",
telemetry));
}
-
+
private static String[] state_to_string = {
"startup",
"idle",
private static String[] state_to_string = {
"startup",
"idle",