summaryrefslogtreecommitdiff
path: root/ao-tools/altosui/AltosLogfileChooser.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-08-24 00:29:11 -0700
committerKeith Packard <keithp@keithp.com>2010-08-24 00:29:11 -0700
commit7bd220dfd9b3fb0e42eb90c3b37eb7b4169eb21b (patch)
tree3645b536797c02c8eee0b6b71d8259a56eda38d0 /ao-tools/altosui/AltosLogfileChooser.java
parent634a550149e7c344a22a637ba484f115592b1018 (diff)
altosui: Add ability to create CSV file from telem or eeprom files
This creates a comma separated value file to export data for external programs. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosLogfileChooser.java')
-rw-r--r--ao-tools/altosui/AltosLogfileChooser.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/ao-tools/altosui/AltosLogfileChooser.java b/ao-tools/altosui/AltosLogfileChooser.java
index 3e9e4892..36b51de6 100644
--- a/ao-tools/altosui/AltosLogfileChooser.java
+++ b/ao-tools/altosui/AltosLogfileChooser.java
@@ -35,17 +35,22 @@ import altosui.AltosTelemetryReader;
public class AltosLogfileChooser extends JFileChooser {
JFrame frame;
String filename;
+ File file;
public String filename() {
return filename;
}
+ public File file() {
+ return file;
+ }
+
public AltosReader runDialog() {
int ret;
ret = showOpenDialog(frame);
if (ret == APPROVE_OPTION) {
- File file = getSelectedFile();
+ file = getSelectedFile();
if (file == null)
return null;
filename = file.getName();
@@ -68,7 +73,7 @@ public class AltosLogfileChooser extends JFileChooser {
}
public AltosLogfileChooser(JFrame in_frame) {
- in_frame = frame;
+ frame = in_frame;
setDialogTitle("Select Flight Record File");
setFileFilter(new FileNameExtensionFilter("Flight data file",
"eeprom",