summaryrefslogtreecommitdiff
path: root/altosui/AltosRecordIterable.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-30 11:48:03 -0700
committerKeith Packard <keithp@keithp.com>2011-03-30 11:48:03 -0700
commitf558cfa1df77c36a459168c1953d0945ee5a7f9f (patch)
tree4fbc53c7ab676252acde905c6d85518a9d341da7 /altosui/AltosRecordIterable.java
parenta9df9fc257eb2d7038d66ac7c2539aae4474bf12 (diff)
altosui: Only plot acceleration when present in data file
Eliminates a bogus axis and data line for devices which do not have an accelerometer. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosRecordIterable.java')
-rw-r--r--altosui/AltosRecordIterable.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/altosui/AltosRecordIterable.java b/altosui/AltosRecordIterable.java
index a7df92d1..45843b92 100644
--- a/altosui/AltosRecordIterable.java
+++ b/altosui/AltosRecordIterable.java
@@ -31,4 +31,7 @@ import java.util.concurrent.LinkedBlockingQueue;
public abstract class AltosRecordIterable implements Iterable<AltosRecord> {
public abstract Iterator<AltosRecord> iterator();
public void write_comments(PrintStream out) { }
+ public boolean has_accel() { return false; }
+ public boolean has_gps() { return false; }
+ public boolean has_ignite() { return false; };
}