integrationtests: add wait time before arming to allow checks to pass

This commit is contained in:
Paul Riseborough 2017-03-25 09:54:16 +11:00 committed by Lorenz Meier
parent 519e903347
commit 40160c4488
1 changed files with 4 additions and 1 deletions

View File

@ -229,7 +229,10 @@ class MavrosMissionTest(unittest.TestCase):
(self.mission_name, lat, lon, alt, xy_radius, z_radius, timeout, index, self.last_pos_d, self.last_alt_d, vtol_state_string)))
def run_mission(self):
"""switch mode: auto and arm"""
# Hack to wait until vehicle is ready
# TODO better integration with pre-flight status reporting
time.sleep(5)
"""switch mode: auto and arm"""
self._srv_cmd_long(False, 176, False,
# custom, auto, mission
1, 4, 4, 0, 0, 0, 0)