diff --git a/Tools/autotest/jsbsim/runsim.py b/Tools/autotest/jsbsim/runsim.py index 40ada9805c..5728ee223f 100755 --- a/Tools/autotest/jsbsim/runsim.py +++ b/Tools/autotest/jsbsim/runsim.py @@ -257,7 +257,9 @@ def main_loop(): paused = False jsb_console.send('resume\n') - if tnow - last_wind_update > 0.1: + # only simulate wind above 5 meters, to prevent crashes while + # waiting for takeoff + if tnow - last_wind_update > 0.1 and fdm.get('agl', units='meters') > 2: update_wind(wind) last_wind_update = tnow