From 7bcd5c461d0980e52c74bb865c93b65aaec4b713 Mon Sep 17 00:00:00 2001 From: Patrick Goebel Date: Thu, 17 Dec 2015 16:18:16 -0800 Subject: [PATCH] Changed min_angle to min_position and max_angle to max_position in sweep_servo.py example --- ros_arduino_python/nodes/sweep_servo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ros_arduino_python/nodes/sweep_servo.py b/ros_arduino_python/nodes/sweep_servo.py index 64992f6..72424f4 100755 --- a/ros_arduino_python/nodes/sweep_servo.py +++ b/ros_arduino_python/nodes/sweep_servo.py @@ -48,11 +48,11 @@ class SweepServo(): os._exit(1) servo_pin = rospy.get_param('/arduino/joints/' + str(joint_name) + '/pin') - max_angle = radians(rospy.get_param('/arduino/joints/' + str(joint_name) + '/max_angle')) - min_angle = radians(rospy.get_param('/arduino/joints/' + str(joint_name) + '/min_angle')) + max_position = radians(rospy.get_param('/arduino/joints/' + str(joint_name) + '/max_position')) + min_position = radians(rospy.get_param('/arduino/joints/' + str(joint_name) + '/min_position')) - target_max = max_angle - target_min = min_angle + target_max = max_position + target_min = min_position # How fast should we sweep the servo speed = rospy.get_param('~speed', 1.0) # rad/s