Browse Source

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

sbg
Anthony Lamping 7 years ago committed by Lorenz Meier
parent
commit
f46db40b10
  1. 3
      integrationtests/python_src/px4_it/mavros/mission_test.py

3
integrationtests/python_src/px4_it/mavros/mission_test.py

@ -213,7 +213,8 @@ class MavrosMissionTest(unittest.TestCase):
self.state = data 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 self.sub_topics_ready['state'] = True
def altitude_callback(self, data): def altitude_callback(self, data):

Loading…
Cancel
Save