diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-10 14:08:21 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-10 14:08:21 -0700 |
commit | 9e1487b1a5db0afd1d23c86d82c60b1c1a62aab0 (patch) | |
tree | ab00e263739cacb14a09a63b650639a28fe4fe3f /altosui/AltosLog.java | |
parent | 6ac604d11de44cd824f09e4b467264a2b74be7bd (diff) |
altosui: Add a 'Graph Flight' button to the 'landed' tab
This lets you see the results of a flight as soon as the rocket lands
using the telemetry data.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosLog.java')
-rw-r--r-- | altosui/AltosLog.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/altosui/AltosLog.java b/altosui/AltosLog.java index 6157a656..a5f1830d 100644 --- a/altosui/AltosLog.java +++ b/altosui/AltosLog.java @@ -35,6 +35,7 @@ class AltosLog implements Runnable { int flight; FileWriter log_file; Thread log_thread; + AltosFile file; private void close_log_file() { if (log_file != null) { @@ -54,6 +55,10 @@ class AltosLog implements Runnable { } } + File file() { + return file; + } + boolean open (AltosRecord telem) throws IOException { AltosFile a = new AltosFile(telem); @@ -69,6 +74,7 @@ class AltosLog implements Runnable { } } log_file.flush(); + file = a; } return log_file != null; } |