projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Move AltosState.java to altoslib
[fw/altos]
/
altosui
/
AltosLog.java
diff --git
a/altosui/AltosLog.java
b/altosui/AltosLog.java
index 6157a6567da03231d011e131da59a1690da04e5d..740f0be600ecd1301a2b20be9c1a31ff4265395d 100644
(file)
--- a/
altosui/AltosLog.java
+++ b/
altosui/AltosLog.java
@@
-22,6
+22,7
@@
import java.lang.*;
import java.util.*;
import java.text.ParseException;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.*;
import java.text.ParseException;
import java.util.concurrent.LinkedBlockingQueue;
+import org.altusmetrum.AltosLib.*;
/*
* This creates a thread to capture telemetry data and write it to
/*
* This creates a thread to capture telemetry data and write it to
@@
-35,6
+36,7
@@
class AltosLog implements Runnable {
int flight;
FileWriter log_file;
Thread log_thread;
int flight;
FileWriter log_file;
Thread log_thread;
+ AltosFile file;
private void close_log_file() {
if (log_file != null) {
private void close_log_file() {
if (log_file != null) {
@@
-54,6
+56,10
@@
class AltosLog implements Runnable {
}
}
}
}
+ File file() {
+ return file;
+ }
+
boolean open (AltosRecord telem) throws IOException {
AltosFile a = new AltosFile(telem);
boolean open (AltosRecord telem) throws IOException {
AltosFile a = new AltosFile(telem);
@@
-69,6
+75,7
@@
class AltosLog implements Runnable {
}
}
log_file.flush();
}
}
log_file.flush();
+ file = a;
}
return log_file != null;
}
}
return log_file != null;
}