mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-05 20:14:07 +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
|
# Where to we want the servo positioned
|
||||||
self.desired = self.neutral + radians(rospy.get_param(n + "init_position", 0))
|
self.desired = self.neutral + radians(rospy.get_param(n + "init_position", 0))
|
||||||
|
|
||||||
# Where is the servo positioned now
|
# Where is the servo positioned now
|
||||||
self.position = 0.0
|
self.position = 0.0
|
||||||
|
|
||||||
@ -125,9 +125,6 @@ class Servo(Joint):
|
|||||||
def get_current_position(self):
|
def get_current_position(self):
|
||||||
return self.device.servo_read(self.pin) - self.neutral
|
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):
|
def relax_cb(self, req):
|
||||||
self.device.detach_servo(self.pin)
|
self.device.detach_servo(self.pin)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user