From: Keith Packard Date: Fri, 6 Sep 2013 05:53:14 +0000 (-0700) Subject: altoslib: Update received time when replaying flights X-Git-Tag: 1.2.9.4~88 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=b9ee58a7af839462680a0bdf1c1721017269986f;hp=e17e3691d93636eebbd7381f2df1303dc46ea96c 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 --- 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; }