We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b18ee3 commit e0eaf2fCopy full SHA for e0eaf2f
1 file changed
examples/autopilot.jl
@@ -157,7 +157,7 @@ function simulate(integrator, stopped=true)
157
GC.enable(true)
158
GC.gc()
159
mem_start=Sys.total_memory()/1e9
160
- if Sys.total_memory()/1e9 > 24 && app.max_time < 500
+ if Sys.total_memory()/1e9 > 24 && app.max_time < 1002
161
GC.enable(false)
162
end
163
max_time = 0
@@ -259,9 +259,9 @@ function simulate(integrator, stopped=true)
259
wait_until(start_time_ns + 1e9*app.dt/ratio, always_sleep=true)
260
mtime = 0
261
if i > 10/app.dt
262
- # if we missed the deadline by more than 5 ms
+ # if we missed the deadline by more than 1 ms
263
mtime = time_ns() - start_time_ns
264
- if mtime > app.dt*1e9/ratio + 5e6
+ if mtime > app.dt*1e9/ratio + 1e6
265
print(".")
266
j += 1
267
0 commit comments