From: Keith Packard Date: Wed, 24 Jun 2015 05:40:11 +0000 (-0700) Subject: altoslib: Fix replay to run in realtime again X-Git-Tag: 1.6.0.4~24 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=c7067f14359d25a8275f2b09e7b30c06c0424dbb;hp=3e7588e382c70e467b1f328fcfb6bc38a6b79ac7 altoslib: Fix replay to run in realtime again At some point, this got sped up to 10x normal speedx Signed-off-by: Keith Packard --- diff --git a/altoslib/AltosReplayReader.java b/altoslib/AltosReplayReader.java index bcc07587..90072754 100644 --- a/altoslib/AltosReplayReader.java +++ b/altoslib/AltosReplayReader.java @@ -40,7 +40,7 @@ public class AltosReplayReader extends AltosFlightReader { public void update(AltosState state) throws InterruptedException { /* Make it run in realtime after the rocket leaves the pad */ if (state.state > AltosLib.ao_flight_pad && state.time_change > 0) - Thread.sleep((int) (Math.min(state.time_change,10) * 100)); + Thread.sleep((int) (Math.min(state.time_change,10) * 1000)); state.set_received_time(System.currentTimeMillis()); }