From f46db40b10b9e1ce7032c5af8acf0512a824770d Mon Sep 17 00:00:00 2001 From: Anthony Lamping Date: Sun, 31 Dec 2017 10:50:37 -0500 Subject: [PATCH] make sure FCU is connected to mavros before state topic is marked ready --- integrationtests/python_src/px4_it/mavros/mission_test.py | 3 ++- 1 file changed, 2 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 8d69b99b35..e2362c3b27 100755 --- a/integrationtests/python_src/px4_it/mavros/mission_test.py +++ b/integrationtests/python_src/px4_it/mavros/mission_test.py @@ -213,7 +213,8 @@ class MavrosMissionTest(unittest.TestCase): self.state = data - if not self.sub_topics_ready['state']: + # mavros publishes a disconnected state message on init + if not self.sub_topics_ready['state'] and data.connected: self.sub_topics_ready['state'] = True def altitude_callback(self, data):