diff options
author | Keith Packard <keithp@keithp.com> | 2014-08-29 15:22:43 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-08-29 15:22:43 -0500 |
commit | 810f9a4f79b0480973d84595140d3f8948ce26d9 (patch) | |
tree | f0449f475eb57d23a669e0191f8195a3de569afd /altoslib/AltosFlightReader.java | |
parent | 5872bd10df14b47de0e541bff16d9220af0558aa (diff) |
altosdroid: start restoring from log data on startup
Remember which flight was last being received and reload that file
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosFlightReader.java')
-rw-r--r-- | altoslib/AltosFlightReader.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/altoslib/AltosFlightReader.java b/altoslib/AltosFlightReader.java index c0565e88..be103838 100644 --- a/altoslib/AltosFlightReader.java +++ b/altoslib/AltosFlightReader.java @@ -21,16 +21,16 @@ import java.text.*; import java.io.*; import java.util.concurrent.*; -public class AltosFlightReader { +public abstract class AltosFlightReader { public String name; public int serial; - public void init() { } + public void init() {} - public AltosState read() throws InterruptedException, ParseException, AltosCRCException, IOException { return null; } + public abstract AltosState read() throws InterruptedException, ParseException, AltosCRCException, IOException; - public void close(boolean interrupted) { } + public abstract void close(boolean interrupted); public void set_frequency(double frequency) throws InterruptedException, TimeoutException { } |