altosui: Hook up the launch controller UI from the main button box
[fw/altos] / altosui / AltosUI.java
index 27c41838e12ea15189d50bf65d4501f2619d9ddb..8399b7c8440e101a1d271c5c00ed4542fe0b6786 100644 (file)
@@ -210,6 +210,13 @@ public class AltosUI extends JFrame {
                        });
                b.setToolTipText("Check flight readiness of altimeter in idle mode");
 
+               b = addButton(2, 2, "Launch Controller");
+               b.addActionListener(new ActionListener() {
+                               public void actionPerformed(ActionEvent e) {
+                                       LaunchController();
+                               }
+                       });
+
                setTitle("AltOS");
 
                pane.doLayout();
@@ -272,6 +279,10 @@ public class AltosUI extends JFrame {
                new AltosSiteMapPreload(AltosUI.this);
        }
 
+       void LaunchController() {
+               new AltosLaunchUI(AltosUI.this);
+       }
+
        /*
         * Replay a flight from telemetry data
         */