From 11105cf959843567a115898383a75c047afbde3f Mon Sep 17 00:00:00 2001 From: Patrick Goebel Date: Sun, 13 Dec 2015 08:20:18 -0800 Subject: [PATCH] Fixed init_position default in servo_controller.py --- ros_arduino_python/src/ros_arduino_python/servo_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ros_arduino_python/src/ros_arduino_python/servo_controller.py b/ros_arduino_python/src/ros_arduino_python/servo_controller.py index fd0d0a6..98f941d 100755 --- a/ros_arduino_python/src/ros_arduino_python/servo_controller.py +++ b/ros_arduino_python/src/ros_arduino_python/servo_controller.py @@ -63,14 +63,14 @@ class Servo(Joint): self.neutral = radians(rospy.get_param(n + "neutral", 90.0)) # degrees self.max_angle = radians(rospy.get_param(n + "max_angle", 90.0)) # degrees self.min_angle = radians(rospy.get_param(n + "min_angle", -90.0)) # degrees - self.range = radians(rospy.get_param(n + "range", 180)) # degrees + self.range = radians(rospy.get_param(n + "range", 180)) # degrees self.max_speed = radians(rospy.get_param(n + "max_speed", 250.0)) # deg/s # Do we want to reverse positive motion self.invert = rospy.get_param(n + "invert", False) # Where to we want the servo positioned - self.desired = self.neutral - radians(rospy.get_param(n + "init_position", 90)) + self.desired = self.neutral - radians(rospy.get_param(n + "init_position", 0)) # Where is the servo positioned now self.position = 0.0