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>
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");