Skip to content

Commit b47a6db

Browse files
committed
chore
1 parent c01232c commit b47a6db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ from pymycobot import MyCobot
611611

612612
- **Parameters**
613613

614-
- `value` (int): 1400 ~ 2048
614+
- `value` (int): 0 ~ 100
615615
- `speed` (int): 0 ~ 100
616616

617617
### set_gripper_ini

pymycobot/generate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,11 +471,11 @@ def set_gripper_value(self, value, speed):
471471
"""Set gripper value
472472
473473
Args:
474-
value (int): 0 ~ 4096
474+
value (int): 0 ~ 100
475475
speed (int): 0 ~ 100
476476
"""
477477
check_datas(speed=speed)
478-
return self._mesg(Command.SET_GRIPPER_VALUE, [value], speed)
478+
return self._mesg(Command.SET_GRIPPER_VALUE, value, speed)
479479

480480
def set_gripper_ini(self):
481481
"""Set the current position to zero

0 commit comments

Comments
 (0)