diff options
author | Andreas Antener <antener_a@gmx.ch> | 2015-03-15 12:08:36 +0100 |
---|---|---|
committer | Andreas Antener <antener_a@gmx.ch> | 2015-03-15 12:48:52 +0100 |
commit | 4b65e6259595f1f6dfb70fe8b44e229b49896f28 (patch) | |
tree | 84087a7eacc500683eb087e13d3aab848d046d7f /integrationtests | |
parent | 7018ff298ea3174d6764a1e35196521ee31f4dd3 (diff) | |
download | px4-firmware-4b65e6259595f1f6dfb70fe8b44e229b49896f28.tar.gz px4-firmware-4b65e6259595f1f6dfb70fe8b44e229b49896f28.tar.bz2 px4-firmware-4b65e6259595f1f6dfb70fe8b44e229b49896f28.zip |
removing sleep between publishments again, issue should be fixed in mavlink node
Diffstat (limited to 'integrationtests')
-rwxr-xr-x | integrationtests/demo_tests/mavros_offboard_attctl_test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/integrationtests/demo_tests/mavros_offboard_attctl_test.py b/integrationtests/demo_tests/mavros_offboard_attctl_test.py index ecad9df4d..30e9fe9ba 100755 --- a/integrationtests/demo_tests/mavros_offboard_attctl_test.py +++ b/integrationtests/demo_tests/mavros_offboard_attctl_test.py @@ -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() |