diff options
author | Keith Packard <keithp@keithp.com> | 2013-09-05 22:53:14 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-09-05 22:53:14 -0700 |
commit | b9ee58a7af839462680a0bdf1c1721017269986f (patch) | |
tree | 7921300078af0a9d4e2dfa5109419503c08c603e | |
parent | e17e3691d93636eebbd7381f2df1303dc46ea96c (diff) |
altoslib: Update received time when replaying flights
Received time is otherwise recorded as the time when the packets were
read from the file, which doesn't work in real-time playback
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | altoslib/AltosReplayReader.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/altoslib/AltosReplayReader.java b/altoslib/AltosReplayReader.java index f65caaa0..19091d3d 100644 --- a/altoslib/AltosReplayReader.java +++ b/altoslib/AltosReplayReader.java @@ -41,6 +41,7 @@ public class AltosReplayReader extends AltosFlightReader { /* Make it run in realtime after the rocket leaves the pad */ if (state.state > AltosLib.ao_flight_pad) Thread.sleep((int) (Math.min(state.time_change,10) * 1000)); + state.set_received_time(System.currentTimeMillis()); } public File backing_file() { return file; } |