altosui: Start adding support for scanning radio for available devices
[fw/altos] / altosui / AltosUI.java
index 7bb4ba12bd94b8a172ce1e41fa45fd5f43690ce6..6a24d8a996899f915d98d8f9587834d0a892d5a3 100644 (file)
@@ -172,6 +172,14 @@ public class AltosUI extends JFrame {
                                }
                        });
 
+
+               b = addButton(0, 2, "Scan Channels");
+               b.addActionListener(new ActionListener() {
+                               public void actionPerformed(ActionEvent e) {
+                                       ScanChannels();
+                               }
+                       });
+
                setTitle("AltOS");
 
                pane.doLayout();
@@ -226,6 +234,10 @@ public class AltosUI extends JFrame {
                new AltosIgniteUI(AltosUI.this);
        }
 
+       void ScanChannels() {
+               new AltosScanUI(AltosUI.this);
+       }
+
        /*
         * Replay a flight from telemetry data
         */