diff --git a/integrationtests/python_src/px4_it/mavros/mission_test.py b/integrationtests/python_src/px4_it/mavros/mission_test.py index 8d69b99b359ce04497014760e422dffa84268be6..e2362c3b277e65111aae7b5a8468befdb107c406 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):