mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
make sure FCU is connected to mavros before state topic is marked ready
This commit is contained in:
committed by
Lorenz Meier
parent
ab5a268ca5
commit
f46db40b10
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user