mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +08:00
removing sleep between publishments again, issue should be fixed in mavlink node
This commit is contained in:
@@ -61,7 +61,7 @@ class MavrosOffboardAttctlTest(unittest.TestCase):
|
||||
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 @@ class MavrosOffboardAttctlTest(unittest.TestCase):
|
||||
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user