Skip to content

Commit 181f271

Browse files
committed
update DynamixelDriver
1 parent 4cf3177 commit 181f271

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

uiflow2/libs/DynamixelDriver.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,11 @@ def __init__(self):
240240
self._tilt = Dynamixel(2)
241241
#print("get current_pos")
242242
pan_offset = self._pan.readPresentPosition()
243-
if pan_offset:
244-
tilt_offset = self._tilt.readPresentPosition()
245-
else:
246-
tilt_offset = None
243+
tilt_offset = self._tilt.readPresentPosition()
244+
#if pan_offset:
245+
# tilt_offset = self._tilt.readPresentPosition()
246+
#else:
247+
# tilt_offset = None
247248
#print("check")
248249
if pan_offset and tilt_offset:
249250
self._controls = [

0 commit comments

Comments
 (0)