diff --git a/Nasal/Autopush/autopush.nas b/Nasal/Autopush/autopush.nas index 02b7f13f1..66e20b18a 100644 --- a/Nasal/Autopush/autopush.nas +++ b/Nasal/Autopush/autopush.nas @@ -85,12 +85,13 @@ var _loop = func() { } var _timer = maketimer(0.0167, func{_loop()}); +_timer.simulatedTime = 1; var _start = func() { # Else overwritten by dialog. settimer(func() { setprop("/sim/model/autopush/target-speed-km_h", 0.0) - }, 0.1); + }, 0.1, 1); _K_p = getprop("/sim/model/autopush/K_p"); _F_p = getprop("/sim/model/autopush/F_p"); _K_i = getprop("/sim/model/autopush/K_i"); diff --git a/Nasal/Autopush/driver.nas b/Nasal/Autopush/driver.nas index a8c1cbb1d..3b34debba 100644 --- a/Nasal/Autopush/driver.nas +++ b/Nasal/Autopush/driver.nas @@ -88,6 +88,7 @@ var _loop = func() { } var _timer = maketimer(0.051, func{_loop()}); +_timer.simulatedTime = 1; var _done = func() { stop(); diff --git a/Nasal/Autopush/route.nas b/Nasal/Autopush/route.nas index b67c60723..1dfd07817 100644 --- a/Nasal/Autopush/route.nas +++ b/Nasal/Autopush/route.nas @@ -89,7 +89,7 @@ var _stop = func(fail = 0) { settimer(func() { _finalize_top_view(); gui.popupTip("Done"); - }, 1.0); + }, 1.0, 1); } else { _finalize_top_view(); }