projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Add primitive bluetooth device manager UI.
[fw/altos]
/
altosui
/
AltosUI.java
diff --git
a/altosui/AltosUI.java
b/altosui/AltosUI.java
index 94c4dd2aa4b10bb2ae6424268344f0c9ace981f6..73ddf979c254a8f2343c57bc8cebdf31687fc688 100644
(file)
--- a/
altosui/AltosUI.java
+++ b/
altosui/AltosUI.java
@@
-198,6
+198,10
@@
public class AltosUI extends JFrame {
}
private void ConnectToDevice() {
}
private void ConnectToDevice() {
+ AltosBTManage bt_manage;
+
+ bt_manage = new AltosBTManage(AltosBTDevice.bt_product_any, this);
+ bt_manage.list();
AltosDevice device = AltosDeviceDialog.show(AltosUI.this,
AltosDevice.product_basestation);
AltosDevice device = AltosDeviceDialog.show(AltosUI.this,
AltosDevice.product_basestation);
@@
-245,7
+249,7
@@
public class AltosUI extends JFrame {
* a TeleDongle over the packet link
*/
private void SaveFlightData() {
* a TeleDongle over the packet link
*/
private void SaveFlightData() {
- new AltosEeprom
Download
(AltosUI.this);
+ new AltosEeprom
Manage
(AltosUI.this);
}
/* Load a flight log file and write out a CSV file containing
}
/* Load a flight log file and write out a CSV file containing
@@
-328,7
+332,7
@@
public class AltosUI extends JFrame {
if (input.equals(output)) {
System.out.printf("Not processing '%s'\n", input);
} else {
if (input.equals(output)) {
System.out.printf("Not processing '%s'\n", input);
} else {
- AltosWriter writer = open_csv(
output
);
+ AltosWriter writer = open_csv(
"/dev/stdout"
);
if (writer != null) {
writer.write(iterable);
writer.close();
if (writer != null) {
writer.write(iterable);
writer.close();