Browse Source

autotest: support sims that do their own time control

mission-4.1.18
Andrew Tridgell 10 years ago
parent
commit
f82f0da2b3
  1. 4
      Tools/autotest/pysim/sim_multicopter.py

4
Tools/autotest/pysim/sim_multicopter.py

@ -197,4 +197,6 @@ while True: @@ -197,4 +197,6 @@ while True:
time.sleep(last_wall_time+scaled_frame_time - now)
last_wall_time = time.time()
a.time_advance(frame_time)
if frame_start == a.time_now:
# time has not been advanced by a.update()
a.time_advance(frame_time)

Loading…
Cancel
Save