diff options
author | Bdale Garbee <bdale@gag.com> | 2013-05-16 00:36:23 -0600 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2013-05-16 00:36:23 -0600 |
commit | 02d111b1b53ef01fc6e9ab6c4bc60b8af1be0067 (patch) | |
tree | 8356f4a019969ee99a45e264c87d38555cf316cc /altoslib/AltosLog.java | |
parent | 7a2e1f05adad990a6b161865267abf07ffec7a7e (diff) | |
parent | 7699a55aed3a9a7daeb4c6a5a9a280f43edf455f (diff) |
Merge branch 'branch-1.2' into debian
Diffstat (limited to 'altoslib/AltosLog.java')
-rw-r--r-- | altoslib/AltosLog.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/altoslib/AltosLog.java b/altoslib/AltosLog.java index 3c124700..974c9f0f 100644 --- a/altoslib/AltosLog.java +++ b/altoslib/AltosLog.java @@ -15,7 +15,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -package org.altusmetrum.AltosLib; +package org.altusmetrum.altoslib_1; import java.io.*; import java.text.ParseException; @@ -25,7 +25,7 @@ import java.util.concurrent.LinkedBlockingQueue; * This creates a thread to capture telemetry data and write it to * a log file */ -class AltosLog implements Runnable { +public class AltosLog implements Runnable { LinkedBlockingQueue<AltosLine> input_queue; LinkedBlockingQueue<String> pending_queue; @@ -45,7 +45,7 @@ class AltosLog implements Runnable { } } - void close() { + public void close() { close_log_file(); if (log_thread != null) { log_thread.interrupt(); @@ -53,7 +53,7 @@ class AltosLog implements Runnable { } } - File file() { + public File file() { return file; } @@ -85,7 +85,7 @@ class AltosLog implements Runnable { continue; try { AltosRecord telem = AltosTelemetry.parse(line.line, previous); - if (telem.serial != 0 && telem.flight != 0 && + if ((telem.seen & AltosRecord.seen_flight) != 0 && (telem.serial != serial || telem.flight != flight || log_file == null)) { close_log_file(); |