summaryrefslogtreecommitdiff
path: root/altosui/AltosLanded.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-05-12 00:01:14 -0700
committerKeith Packard <keithp@keithp.com>2017-05-19 21:41:40 -0700
commitbbe0c2e0a3216f40f49af34b756330ba28d7c7e1 (patch)
tree96e903b50e3c6eaba03d89ad8b89b43e03143c01 /altosui/AltosLanded.java
parent96de483d745ea0ef95326de2847a2534f7057846 (diff)
altosui: Hacks to plug into the new graph stuff
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosLanded.java')
-rw-r--r--altosui/AltosLanded.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/altosui/AltosLanded.java b/altosui/AltosLanded.java
index 25d4fcc8..95cab605 100644
--- a/altosui/AltosLanded.java
+++ b/altosui/AltosLanded.java
@@ -124,9 +124,11 @@ public class AltosLanded extends AltosUIFlightTab implements ActionListener {
String filename = file.getName();
try {
AltosStateIterable states = null;
+ AltosRecordSet record_set = null;
if (filename.endsWith("eeprom")) {
FileReader in = new FileReader(file);
states = new AltosEepromFile(in);
+ record_set = new AltosEepromRecordSet(new FileReader(file));
} else if (filename.endsWith("telem")) {
FileInputStream in = new FileInputStream(file);
states = new AltosTelemetryFile(in);
@@ -134,7 +136,7 @@ public class AltosLanded extends AltosUIFlightTab implements ActionListener {
throw new FileNotFoundException(filename);
}
try {
- new AltosGraphUI(states, file);
+ new AltosGraphUI(states, record_set, file);
} catch (InterruptedException ie) {
} catch (IOException ie) {
}