From: Keith Packard Date: Tue, 2 Aug 2011 05:45:43 +0000 (-0700) Subject: altosui: Hook up the launch controller UI from the main button box X-Git-Tag: 1.0.9.1~36 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=02df2141e5a67afc16acd01a6c60f3cc61052b93 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 --- 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 */