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 /altosui/AltosAscent.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 'altosui/AltosAscent.java')
-rw-r--r-- | altosui/AltosAscent.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/altosui/AltosAscent.java b/altosui/AltosAscent.java index 1d9af546..ba4fc614 100644 --- a/altosui/AltosAscent.java +++ b/altosui/AltosAscent.java @@ -285,7 +285,7 @@ public class AltosAscent extends JComponent implements AltosFlightDisplay { class Apogee extends AscentStatus { void show (AltosState state, AltosListenerState listener_state) { show("%4.2f V", state.apogee_voltage); - lights.set(state.apogee_voltage > 3.7); + lights.set(state.apogee_voltage >= AltosLib.ao_igniter_good); } public Apogee (GridBagLayout layout, int y) { super(layout, y, "Apogee Igniter Voltage"); @@ -297,7 +297,7 @@ public class AltosAscent extends JComponent implements AltosFlightDisplay { class Main extends AscentStatus { void show (AltosState state, AltosListenerState listener_state) { show("%4.2f V", state.main_voltage); - lights.set(state.main_voltage > 3.7); + lights.set(state.main_voltage >= AltosLib.ao_igniter_good); } public Main (GridBagLayout layout, int y) { super(layout, y, "Main Igniter Voltage"); |