projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ff13cf1
)
altoslib: Check for time going backwards when replaying from file
author
Keith Packard
<keithp@keithp.com>
Tue, 10 Jun 2014 17:19:43 +0000
(10:19 -0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 10 Jun 2014 17:19:43 +0000
(10:19 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosReplayReader.java
patch
|
blob
|
history
diff --git
a/altoslib/AltosReplayReader.java
b/altoslib/AltosReplayReader.java
index ac7df4141d537725659c7554651711f02662b28d..bf7e0e5b0b36dce0a52ce526b84ec042e66aa466 100644
(file)
--- a/
altoslib/AltosReplayReader.java
+++ b/
altoslib/AltosReplayReader.java
@@
-39,7
+39,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)
+ if (state.state > AltosLib.ao_flight_pad
&& state.time_change > 0
)
Thread.sleep((int) (Math.min(state.time_change,10) * 1000));
state.set_received_time(System.currentTimeMillis());
}