Browse Source

autotest: wait a long time for RC to restart after restarting SITL binary

May help fix the "no RC" failures we're seeing in CI
zr-v5.1
Peter Barker 5 years ago committed by Peter Barker
parent
commit
96b9c8f59a
  1. 7
      Tools/autotest/common.py

7
Tools/autotest/common.py

@ -453,10 +453,17 @@ class AutoTest(ABC): @@ -453,10 +453,17 @@ class AutoTest(ABC):
self.stop_SITL()
self.start_SITL(customisations=customisations, wipe=False)
self.wait_heartbeat()
# we also need to wait for MAVProxy to requests streams again
# - in particular, RC_CHANNELS.
m = self.mav.recv_match(type='RC_CHANNELS', blocking=True, timeout=15)
if m is None:
raise NotAchievedException("No RC_CHANNELS message after restarting SITL")
def reset_SITL_commandline(self):
self.progress("Resetting SITL commandline to default")
self.stop_SITL()
self.start_SITL(wipe=False)
self.progress("Reset SITL commandline to default")
def stop_SITL(self):
self.progress("Stopping SITL")

Loading…
Cancel
Save