Browse Source

Tools: autotest: remove racey mavproxy.expect

The autopilot could well have emitted the statustext before we
start to expect() it
master
Peter Barker 7 years ago committed by Andrew Tridgell
parent
commit
aeb99c675b
  1. 3
      Tools/autotest/arducopter.py

3
Tools/autotest/arducopter.py

@ -958,9 +958,6 @@ def fly_mission(mavproxy, mav, height_accuracy=-1.0, target_altitude=None): @@ -958,9 +958,6 @@ def fly_mission(mavproxy, mav, height_accuracy=-1.0, target_altitude=None):
mavproxy.send('switch 4\n') # auto mode
wait_mode(mav, 'AUTO')
ret = wait_waypoint(mav, 0, num_wp-1, timeout=500)
expect_msg = "Reached command #%u" % (num_wp-1)
if (ret):
mavproxy.expect(expect_msg)
progress("test: MISSION COMPLETE: passed=%s" % ret)
# wait here until ready
mavproxy.send('switch 5\n') # loiter mode

Loading…
Cancel
Save