From dc0a18b8b0c5a1d6eeb26c5b9b6b32ce7b2b9c3c Mon Sep 17 00:00:00 2001 From: Patrick Goebel Date: Tue, 15 Dec 2015 06:48:07 -0800 Subject: [PATCH] Removed extraneous set_target_position function --- .../src/ros_arduino_python/servo_controller.py | 5 +---- 1 file changed, 1 insertion(+), 4 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 e77325a..3de3018 100755 --- a/ros_arduino_python/src/ros_arduino_python/servo_controller.py +++ b/ros_arduino_python/src/ros_arduino_python/servo_controller.py @@ -74,7 +74,7 @@ class Servo(Joint): # Where to we want the servo positioned self.desired = self.neutral + radians(rospy.get_param(n + "init_position", 0)) - + # Where is the servo positioned now self.position = 0.0 @@ -125,9 +125,6 @@ class Servo(Joint): def get_current_position(self): return self.device.servo_read(self.pin) - self.neutral - def set_target_position(self): - return self.device.servo_read(self.pin) - def relax_cb(self, req): self.device.detach_servo(self.pin)