Autotest: raise set_rc timeout to prevent mavproxy to miss msg on speedup

This commit is contained in:
Pierre Kancir 2018-03-12 17:26:17 +01:00 committed by Randy Mackay
parent 4558ef5b1e
commit b3c2e134f9

View File

@ -148,7 +148,7 @@ def set_rc_default(mavproxy):
mavproxy.send('rc %u 1500\n' % chan)
def set_rc(mavproxy, mav, chan, pwm, timeout=2):
def set_rc(mavproxy, mav, chan, pwm, timeout=5):
"""Setup a simulated RC control to a PWM value"""
tstart = get_sim_time(mav)
while get_sim_time(mav) < tstart + timeout: