diff options
author | Keith Packard <keithp@keithp.com> | 2017-05-26 17:14:29 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-05-26 17:14:29 -0700 |
commit | fd738d47bbc46d36698350d5450abe1125d990a3 (patch) | |
tree | b44a51bf4cb53a406358a7223176a30a8840c16d /altoslib/AltosDataListener.java | |
parent | af3c7938f24dcf5ffbce024ed596655b26282cf1 (diff) |
altoslib: Make sure AltosFlightSeries is filled in before use
After all of the raw data is captured, the derived data needs to be
computed by calling the 'finish' function.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosDataListener.java')
-rw-r--r-- | altoslib/AltosDataListener.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/altoslib/AltosDataListener.java b/altoslib/AltosDataListener.java index 4a6fe04d..14c29d85 100644 --- a/altoslib/AltosDataListener.java +++ b/altoslib/AltosDataListener.java @@ -36,6 +36,10 @@ public abstract class AltosDataListener { this.state = state; } + /* Called after all records are captured */ + public void finish() { + } + public abstract void set_rssi(int rssi, int status); public abstract void set_received_time(long received_time); |