Skip to content
Snippets Groups Projects
Commit f46db40b authored by Anthony Lamping's avatar Anthony Lamping Committed by Lorenz Meier
Browse files

make sure FCU is connected to mavros before state topic is marked ready

parent ab5a268c
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment