Skip to content

Commit

Permalink
removing sleep between publishments again, issue should be fixed in m…
Browse files Browse the repository at this point in the history
…avlink node
  • Loading branch information
AndreasAntener committed Mar 15, 2015
1 parent 7018ff2 commit 4b65e62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions integrationtests/demo_tests/mavros_offboard_attctl_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 4b65e62

Please sign in to comment.