summaryrefslogtreecommitdiff
path: root/altosui/AltosUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-01 22:45:43 -0700
committerKeith Packard <keithp@keithp.com>2011-08-27 12:45:36 -0700
commit02df2141e5a67afc16acd01a6c60f3cc61052b93 (patch)
tree2d4628b5c0be6e09ccd0ddf5807764ff91fc1523 /altosui/AltosUI.java
parent4568bc796a6c362ebf7f72ee9a5fa4a9a3c4ba6a (diff)
altosui: Hook up the launch controller UI from the main button box
Provide a button to start the launch controller UI. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
-rw-r--r--altosui/AltosUI.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java
index 27c41838..8399b7c8 100644
--- a/altosui/AltosUI.java
+++ b/altosui/AltosUI.java
@@ -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
*/