X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosui%2FAltosUI.java;h=b47df0d9cc4844e45d94c40e94775cc24bc85fe8;hp=6d5ce18512954c66a3aceee7c4c994760786e773;hb=017ed54ff69ef2f7740ea2578e22bf72e88deafb;hpb=de8d9c5630ae46378c50faf97f7d2e97fe139e30 diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index 6d5ce185..b47df0d9 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -353,7 +353,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); } catch (FileNotFoundException fe) { System.out.printf("%s\n", fe.getMessage()); return null; @@ -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",