projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
telegps: Add scan UI
[fw/altos]
/
telegps
/
TeleGPS.java
diff --git
a/telegps/TeleGPS.java
b/telegps/TeleGPS.java
index cceb79b9b6633546f4cc2ba3941053cd499fc8ee..34509e4ec92ca95817bc9dc77c5ea3dce0b91ded 100644
(file)
--- a/
telegps/TeleGPS.java
+++ b/
telegps/TeleGPS.java
@@
-158,11
+158,13
@@
public class TeleGPS extends AltosUIFrame implements AltosFlightDisplay, AltosFo
new AltosSiteMapPreload(this);
}
new AltosSiteMapPreload(this);
}
- void monitor() {
- AltosDevice device = AltosDeviceUIDialog.show(this,
- AltosLib.product_basestation);
- if (device == null)
- return;
+ void disconnect() {
+ setTitle("TeleGPS");
+ stop_display();
+ remove_frequency_menu();
+ }
+
+ void connect(AltosDevice device) {
if (reader != null)
disconnect();
try {
if (reader != null)
disconnect();
try {
@@
-198,13
+200,20
@@
public class TeleGPS extends AltosUIFrame implements AltosFlightDisplay, AltosFo
}
}
}
}
- void disconnect() {
- setTitle("TeleGPS");
- stop_display();
- remove_frequency_menu();
+ void monitor() {
+ AltosDevice device = AltosDeviceUIDialog.show(this,
+ AltosLib.product_basestation);
+ if (device == null)
+ return;
+ connect(device);
+ }
+
+ public void scan_device_selected(AltosDevice device) {
+ connect(device);
}
void scan() {
}
void scan() {
+ new AltosScanUI(this, false);
}
void download(){
}
void download(){