diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-02 17:41:53 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-02 18:03:37 -0700 |
commit | 11a2bb8e28df7ed87542f2ee726f877971f5d52a (patch) | |
tree | 96be4771790576383c143213649b3eebc10e9697 /altosui/AltosUI.java | |
parent | 3cc2eed6cdafe788a8617ab45c6664077e76411e (diff) |
altosui: Add idle monitor dialog
This monitors a telemetrum device in idle mode, either directly or through a
teledongle, allowing the GPS status and batteries to be monitored
without resorting to placing the device in pad mode.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
-rw-r--r-- | altosui/AltosUI.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index d8c8d61c..9b724fd7 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -187,6 +187,13 @@ public class AltosUI extends JFrame { } }); + b = addButton(2, 2, "Monitor Idle"); + b.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + IdleMonitor(); + } + }); + setTitle("AltOS"); pane.doLayout(); @@ -300,6 +307,13 @@ public class AltosUI extends JFrame { new AltosConfigureUI(AltosUI.this, voice); } + private void IdleMonitor() { + try { + new AltosIdleMonitorUI(this); + } catch (Exception e) { + } + } + static AltosRecordIterable open_logfile(String filename) { File file = new File (filename); try { |