diff options
author | Keith Packard <keithp@keithp.com> | 2013-12-18 13:22:45 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-12-18 13:22:45 -0800 |
commit | dbcf3264f950c4e1d450828c9f161b4c418bee97 (patch) | |
tree | 71f211fcd777ea6c4f32cb29482e5a6d8cb7e1d9 /altoslib/AltosLib.java | |
parent | b19a648b667c298d2d9d5ed4ee9db661be058d1a (diff) |
altoslib: Define 3.8 as a good battery and 3.5 as a good igniter
Use defined values everywhere instead of copying. Adjust battery up to
3.8 to ensure there's enough voltage to not trip the comparators
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosLib.java')
-rw-r--r-- | altoslib/AltosLib.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/altoslib/AltosLib.java b/altoslib/AltosLib.java index 36a2ab32..efbc3ddb 100644 --- a/altoslib/AltosLib.java +++ b/altoslib/AltosLib.java @@ -143,6 +143,11 @@ public class AltosLib { /* 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; |