diff options
author | Keith Packard <keithp@keithp.com> | 2013-05-19 23:07:54 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-05-19 23:07:54 -0700 |
commit | 57b4d82dee10b142b820aa306028a288a85214f6 (patch) | |
tree | 9150c9a89e622e63aa9164d11c3127652bd553a4 /altosui/AltosDataChooser.java | |
parent | 27e9b93f3d35890a49575b2ead1983ce3c2fc213 (diff) |
Add Mini logging format. Use in EasyMinilpc
This is a 16-byte record that includes all of the sensor data in each
sensor record, along with records for flight state changes.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosDataChooser.java')
-rw-r--r-- | altosui/AltosDataChooser.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/altosui/AltosDataChooser.java b/altosui/AltosDataChooser.java index f914f138..c7b561d5 100644 --- a/altosui/AltosDataChooser.java +++ b/altosui/AltosDataChooser.java @@ -55,6 +55,9 @@ public class AltosDataChooser extends JFileChooser { } else if (filename.endsWith("mega")) { FileInputStream in = new FileInputStream(file); return new AltosEepromMegaIterable(in); + } else if (filename.endsWith("mini")) { + FileInputStream in = new FileInputStream(file); + return new AltosEepromMiniIterable(in); } else { throw new FileNotFoundException(); } @@ -77,8 +80,10 @@ public class AltosDataChooser extends JFileChooser { "telem")); setFileFilter(new FileNameExtensionFilter("TeleMega eeprom file", "mega")); + setFileFilter(new FileNameExtensionFilter("EasyMini eeprom file", + "mini")); setFileFilter(new FileNameExtensionFilter("Flight data file", - "telem", "eeprom", "mega")); + "telem", "eeprom", "mega", "mini")); setCurrentDirectory(AltosUIPreferences.logdir()); } } |