mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-03 19:24:09 +05:30
Removed extraneous set_target_position function
This commit is contained in:
parent
dfebe5af8b
commit
dc0a18b8b0
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user