Skip to content

Commit 8ea5d5a

Browse files
committed
typo修正 PConrtol -> PControl
1 parent 960d53f commit 8ea5d5a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

uiflow2/libs/DynamixelDriver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def setProfileVelocity(self, val):
179179

180180
##############
181181
# Position Control
182-
class PConrtol:
182+
class PControl:
183183
#
184184
#
185185
def __init__(self, servo, gain, saturation,
@@ -266,8 +266,8 @@ def __init__(self, pan_off=None, tilt_off=None):
266266
print(f"Offset: {pan_offset}, {tilt_offset}")
267267
if pan_offset and tilt_offset:
268268
self._controls = [
269-
PConrtol(self._pan, 0.15, 80, 'pan', pan_offset, -180, 180),
270-
PConrtol(self._tilt, 4, 800, 'tilt', tilt_offset, -20, 7)
269+
PControl(self._pan, 0.15, 80, 'pan', pan_offset, -180, 180),
270+
PControl(self._tilt, 4, 800, 'tilt', tilt_offset, -20, 7)
271271
]
272272
self.control_timer=machine.Timer(2)
273273
else:

0 commit comments

Comments
 (0)