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

This commit is contained in:
Anthony Lamping 2017-12-31 10:50:37 -05:00 committed by Lorenz Meier
parent ab5a268ca5
commit f46db40b10
1 changed files with 2 additions and 1 deletions

View File

@ -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):