diff options
author | Keith Packard <keithp@keithp.com> | 2013-08-31 01:48:02 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-08-31 01:48:58 -0500 |
commit | f07f6d55edf5b97020680b3ce1d9e00bb3df64a6 (patch) | |
tree | d701ad9e7a598d2436eb66d3cd958409c364a374 /altosui/AltosUI.java | |
parent | de8d9c5630ae46378c50faf97f7d2e97fe139e30 (diff) |
altoslib/altosui: Get legacy telem working with new AltosState structure
Make AltosTelemetry work without AltosRecord
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
-rw-r--r-- | altosui/AltosUI.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index 6d5ce185..72b2c0d9 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -437,7 +437,7 @@ public class AltosUI extends AltosUIFrame { if (file.getName().endsWith("eeprom")) { return new AltosEepromFile(in); } else { - return null; // new AltosTelemetryIterable(in); + return new AltosTelemetryFile(in); } } @@ -517,9 +517,9 @@ public class AltosUI extends AltosUIFrame { static boolean process_cat(File file) { try { - FileInputStream input = new FileInputStream(file); - AltosEepromFile eef = new AltosEepromFile(input); + AltosStateIterable eef = record_iterable(file); + System.out.printf ("process cat\n"); for (AltosState state : eef) { if ((state.set & AltosState.set_gps) != 0) System.out.printf ("time %g lat %g lon %g alt %g\n", |