mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-02-06 18:23:30 +08:00
ROS mission_test.py send mission before starting
- update to latest sitl_gazebo
This commit is contained in:
committed by
Lorenz Meier
parent
63deb40a76
commit
3f67ddbdba
@@ -460,9 +460,6 @@ class MavrosMissionTest(unittest.TestCase):
|
||||
else:
|
||||
raise IOError('unknown mission file extension', mission_ext)
|
||||
|
||||
# delay starting the mission
|
||||
self.wait_for_topics(30)
|
||||
|
||||
rospy.loginfo("send mission")
|
||||
result = False
|
||||
try:
|
||||
@@ -474,6 +471,9 @@ class MavrosMissionTest(unittest.TestCase):
|
||||
result,
|
||||
"({0}) mission could not be transfered".format(self.mission_name))
|
||||
|
||||
# delay starting the mission
|
||||
self.wait_for_topics(30)
|
||||
|
||||
# make sure the simulation is ready to start the mission
|
||||
self.wait_on_landed_state(ExtendedState.LANDED_STATE_ON_GROUND, 10, -1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user