summaryrefslogtreecommitdiff
path: root/altosui/AltosPad.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-01-15 00:50:39 -0800
committerKeith Packard <keithp@keithp.com>2011-01-15 00:50:39 -0800
commite13337cfb536ff65979b655f1763d62ec0126c67 (patch)
treebab19228119919a0ff234d4a3ce7af2f9ff75549 /altosui/AltosPad.java
parent35adb7c98fe02e84fff70c1bee22bfa019cfacc2 (diff)
altos: Add 5V reference computation for v1.1 boards.
This should compensate for changes in the 3.3V voltage. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosPad.java')
-rw-r--r--altosui/AltosPad.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/altosui/AltosPad.java b/altosui/AltosPad.java
index 66954347..e345e5da 100644
--- a/altosui/AltosPad.java
+++ b/altosui/AltosPad.java
@@ -152,7 +152,7 @@ public class AltosPad extends JComponent implements AltosFlightDisplay {
class GPSLocked extends LaunchStatus {
void show (AltosState state, int crc_errors) {
value.setText(String.format("%4d sats", state.gps.nsat));
- lights.set(state.gps.locked);
+ lights.set(state.gps.locked && state.gps.nsat >= 4);
}
public GPSLocked (GridBagLayout layout, int y) {
super (layout, y, "GPS Locked");