From 4b65e6259595f1f6dfb70fe8b44e229b49896f28 Mon Sep 17 00:00:00 2001 From: Andreas Antener Date: Sun, 15 Mar 2015 12:08:36 +0100 Subject: [PATCH] removing sleep between publishments again, issue should be fixed in mavlink node --- integrationtests/demo_tests/mavros_offboard_attctl_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/integrationtests/demo_tests/mavros_offboard_attctl_test.py b/integrationtests/demo_tests/mavros_offboard_attctl_test.py index ecad9df4ddba..30e9fe9bafdb 100755 --- a/integrationtests/demo_tests/mavros_offboard_attctl_test.py +++ b/integrationtests/demo_tests/mavros_offboard_attctl_test.py @@ -61,7 +61,7 @@ def setUp(self): rospy.Subscriber("iris/mavros/position/local", PoseStamped, self.position_callback) self.pub_att = rospy.Publisher('iris/mavros/setpoint/attitude', PoseStamped, queue_size=10) self.pub_thr = rospy.Publisher('iris/mavros/setpoint/att_throttle', Float64, queue_size=10) - self.rate = rospy.Rate(20) # 10hz + self.rate = rospy.Rate(10) # 10hz self.has_pos = False self.control_mode = vehicle_control_mode() self.local_position = PoseStamped() @@ -99,7 +99,6 @@ def test_attctl(self): att.header.stamp = rospy.Time.now() self.pub_att.publish(att) - self.rate.sleep() # I'm guessing this is necessary to prevent timing issues self.pub_thr.publish(throttle) self.rate.sleep()