mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
autotest: fix race condition in Rover gcs mission test
This commit is contained in:
parent
ee5df978af
commit
56dda4c07f
@ -3467,13 +3467,7 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
|
||||
self.load_mission_using_mavproxy(mavproxy, "rover-gripper-mission.txt")
|
||||
set_wp = 1
|
||||
mavproxy.send('wp set %u\n' % set_wp)
|
||||
self.drain_mav()
|
||||
m = self.mav.recv_match(type='MISSION_CURRENT', blocking=True, timeout=5)
|
||||
if m is None:
|
||||
raise NotAchievedException("Did not get expected MISSION_CURRENT")
|
||||
if m.seq != set_wp:
|
||||
raise NotAchievedException("Bad mission current. want=%u got=%u" %
|
||||
(set_wp, m.seq))
|
||||
self.wait_current_waypoint(set_wp)
|
||||
|
||||
self.start_subsubtest("wp changealt")
|
||||
downloaded_items = self.download_using_mission_protocol(mavutil.mavlink.MAV_MISSION_TYPE_MISSION)
|
||||
|
Loading…
Reference in New Issue
Block a user