altoslib: Fix replay to run in realtime again
authorKeith Packard <keithp@keithp.com>
Wed, 24 Jun 2015 05:40:11 +0000 (22:40 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 24 Jun 2015 05:40:11 +0000 (22:40 -0700)
At some point, this got sped up to 10x normal speedx

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosReplayReader.java

index bcc07587145804905b6bb4f8157ab1458b4abd9d..9007275432132b041a766dfe5b91d9dc2f583152 100644 (file)
@@ -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());
        }