projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Simple timeouts don't work with query data
[fw/altos]
/
altosui
/
AltosLanded.java
diff --git
a/altosui/AltosLanded.java
b/altosui/AltosLanded.java
index 63a2daf602ff091ec46857e4a76090b39f3b40ae..d5c8e4341cc33ad965f0fab3254383ff2075ac5a 100644
(file)
--- a/
altosui/AltosLanded.java
+++ b/
altosui/AltosLanded.java
@@
-99,7
+99,7
@@
public class AltosLanded extends JComponent implements AltosFlightDisplay {
class Lat extends LandedValue {
void show (AltosState state, int crc_errors) {
show();
class Lat extends LandedValue {
void show (AltosState state, int crc_errors) {
show();
- if (state.gps != null)
+ if (state.gps != null
&& state.gps.connected
)
value.setText(pos(state.gps.lat,"N", "S"));
else
value.setText("???");
value.setText(pos(state.gps.lat,"N", "S"));
else
value.setText("???");
@@
-114,7
+114,7
@@
public class AltosLanded extends JComponent implements AltosFlightDisplay {
class Lon extends LandedValue {
void show (AltosState state, int crc_errors) {
show();
class Lon extends LandedValue {
void show (AltosState state, int crc_errors) {
show();
- if (state.gps != null)
+ if (state.gps != null
&& state.gps.connected
)
value.setText(pos(state.gps.lon,"E", "W"));
else
value.setText("???");
value.setText(pos(state.gps.lon,"E", "W"));
else
value.setText("???");
@@
-200,7
+200,7
@@
public class AltosLanded extends JComponent implements AltosFlightDisplay {
}
public void show(AltosState state, int crc_errors) {
}
public void show(AltosState state, int crc_errors) {
- if (state.gps != null) {
+ if (state.gps != null
&& state.gps.connected
) {
bearing.show(state, crc_errors);
distance.show(state, crc_errors);
lat.show(state, crc_errors);
bearing.show(state, crc_errors);
distance.show(state, crc_errors);
lat.show(state, crc_errors);