diff options
| author | Keith Packard <keithp@keithp.com> | 2013-08-29 19:24:51 -0500 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-08-29 19:24:51 -0500 | 
| commit | de8d9c5630ae46378c50faf97f7d2e97fe139e30 (patch) | |
| tree | e8e41e4186c5d27e1a5184d915bdb9f08926fa7a /altosui/AltosLanded.java | |
| parent | ce1378385ef273010498e81c205f42d8e32c7dc1 (diff) | |
altoslib, altosui: Restructured state management now does TM eeprom files
Removed uses of AltosRecord from AltosState, now just need to rewrite
the other AltosState changing code to match
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosLanded.java')
| -rw-r--r-- | altosui/AltosLanded.java | 14 | 
1 files changed, 4 insertions, 10 deletions
diff --git a/altosui/AltosLanded.java b/altosui/AltosLanded.java index 9dab52c4..38f273cf 100644 --- a/altosui/AltosLanded.java +++ b/altosui/AltosLanded.java @@ -243,24 +243,18 @@ public class AltosLanded extends JComponent implements AltosFlightDisplay, Actio  			if (file != null) {  				String	filename = file.getName();  				try { -					AltosRecordIterable records = null; +					AltosStateIterable states = null;  					if (filename.endsWith("eeprom")) {  						FileInputStream in = new FileInputStream(file); -						records = new AltosEepromIterable(in); +						states = new AltosEepromFile(in);  					} else if (filename.endsWith("telem")) {  						FileInputStream in = new FileInputStream(file); -						records = new AltosTelemetryIterable(in); -					} else if (filename.endsWith("mega")) { -						FileInputStream in = new FileInputStream(file); -						records = new AltosEepromMegaIterable(in); -					} else if (filename.endsWith("mini")) { -						FileInputStream in = new FileInputStream(file); -						records = new AltosEepromMiniIterable(in); +						states = null; // new AltosTelemetryIterable(in);  					} else {  						throw new FileNotFoundException(filename);  					}  					try { -						new AltosGraphUI(records, file); +						new AltosGraphUI(states, file);  					} catch (InterruptedException ie) {  					} catch (IOException ie) {  					}  | 
