projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1e71264
)
AltosSiteMap: better gps check, lower zoom
author
Anthony Towns
<aj@erisian.com.au>
Sun, 21 Nov 2010 00:34:39 +0000
(10:34 +1000)
committer
Anthony Towns
<aj@erisian.com.au>
Sun, 21 Nov 2010 00:34:39 +0000
(10:34 +1000)
ao-tools/altosui/AltosSiteMap.java
patch
|
blob
|
history
diff --git
a/ao-tools/altosui/AltosSiteMap.java
b/ao-tools/altosui/AltosSiteMap.java
index 5f5e30f0c0e33d6c1359646431d9181f0e727b4b..72a65b1529721d57f389c01b70914bcfb73319a1 100644
(file)
--- a/
ao-tools/altosui/AltosSiteMap.java
+++ b/
ao-tools/altosui/AltosSiteMap.java
@@
-34,7
+34,7
@@
import java.awt.geom.Line2D;
public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay {
// max vertical step in a tile in naut. miles
public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay {
// max vertical step in a tile in naut. miles
- static final double tile_size_nmi =
1
.0;
+ static final double tile_size_nmi =
2
.0;
static final int px_size = 512;
static final int px_size = 512;
@@
-211,10
+211,10
@@
public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay {
boolean initialised = false;
public void show(AltosState state, int crc_errors) {
// if insufficient gps data, nothing to update
boolean initialised = false;
public void show(AltosState state, int crc_errors) {
// if insufficient gps data, nothing to update
- if (!state.gps
_ready
) {
+ if (!state.gps
.locked
) {
if (state.pad_lat == 0 && state.pad_lon == 0)
return;
if (state.pad_lat == 0 && state.pad_lon == 0)
return;
- if (state.
ngps < 3
)
+ if (state.
gps.nsat < 4
)
return;
}
return;
}