summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-01-15 12:02:43 -0800
committerKeith Packard <keithp@keithp.com>2011-01-16 14:32:27 -0800
commitd0a841b285fb398f0be72183ec3c9d1e358419a9 (patch)
tree606f9af1212d8b6ee969c87314aac8e870c4f70d
parent1bfdce6fc3367fdf03e0dc7ddd94da18723b8ba3 (diff)
altosui: Require 4 sats to light up the 'GPS locked' light.
This tracks the same GPS signal requirement needed for 'GPS ready' and ensures that we have a 3d fix. Signed-off-by: Keith Packard <keithp@keithp.com>
-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");