From 40160c44881b850aaf8ee6030836869982350eed Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Sat, 25 Mar 2017 09:54:16 +1100 Subject: [PATCH] integrationtests: add wait time before arming to allow checks to pass --- integrationtests/python_src/px4_it/mavros/mission_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/integrationtests/python_src/px4_it/mavros/mission_test.py b/integrationtests/python_src/px4_it/mavros/mission_test.py index 3de574f6341..bf228e671ac 100755 --- a/integrationtests/python_src/px4_it/mavros/mission_test.py +++ b/integrationtests/python_src/px4_it/mavros/mission_test.py @@ -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)