Skip to content

Commit

Permalink
release v3.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
anla-xu committed Oct 22, 2024
1 parent 4a6d9d9 commit 3fc5d95
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog for pymycobot

## v3.6.4 (2024-10-22)

- release v3.6.4
- Fix set_encoder function BUG

## v3.6.3 (2024-10-17)

- release v3.6.3
Expand Down
2 changes: 1 addition & 1 deletion pymycobot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
__all__.append("MyBuddyEmoticon")

__version__ = "3.6.3"
__version__ = "3.6.4"
__author__ = "Elephantrobotics"
__email__ = "[email protected]"
__git_url__ = "https://github.com/elephantrobotics/pymycobot"
Expand Down
24 changes: 12 additions & 12 deletions pymycobot/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ def public_check(parameter_list, kwargs, robot_limit, class_name, exception_clas
elif parameter in ['servo_id_pdi', 'encode_id']:
check_value_type(parameter, value_type, exception_class, int)
if "MyCobot" in class_name or "MechArm" in class_name:
if value < 1 or value > 6:
raise exception_class("The range of id is 1 ~ 6, but the received is {}".format(value))
if value < 1 or value > 7:
raise exception_class("The range of id is 1 ~ 6 or 7, but the received is {}".format(value))
if class_name in ["MyPalletizer", "MyPalletizer260"]:
if value < 1 or value > 4:
raise exception_class("The range of id is 1 ~ 4, but the received is {}".format(value))
Expand Down Expand Up @@ -619,8 +619,8 @@ def calibration_parameters(**kwargs):
"The range of speed is 0 ~ 3400, but the received value is {}".format(data))
elif parameter in ['servo_id_pdi', 'encode_id']:
check_value_type(parameter, value_type, MyCobot280DataException, int)
if value < 1 or value > 6:
raise MyCobot280DataException("The range of id is 1 ~ 6, but the received is {}".format(value))
if value < 1 or value > 7:
raise MyCobot280DataException("The range of id is 1 ~ 6 or 7, but the received is {}".format(value))
elif parameter == "torque":
torque_min = 150
torque_max = 980
Expand Down Expand Up @@ -737,8 +737,8 @@ def calibration_parameters(**kwargs):
"The range of speed is 0 ~ 3400, but the received value is {}".format(data))
elif parameter in ['servo_id_pdi', 'encode_id']:
check_value_type(parameter, value_type, MyCobot320DataException, int)
if value < 1 or value > 6:
raise MyCobot320DataException("The range of id is 1 ~ 6, but the received is {}".format(value))
if value < 1 or value > 7:
raise MyCobot320DataException("The range of id is 1 ~ 6 or 7, but the received is {}".format(value))
elif parameter == "torque":
torque_min = 150
torque_max = 980
Expand Down Expand Up @@ -971,8 +971,8 @@ def calibration_parameters(**kwargs):
"The range of speed is 0 ~ 3400, but the received value is {}".format(data))
elif parameter in ['servo_id_pdi', 'encode_id']:
check_value_type(parameter, value_type, MechArmDataException, int)
if value < 1 or value > 6:
raise MechArmDataException("The range of id is 1 ~ 6, but the received is {}".format(value))
if value < 1 or value > 7:
raise MechArmDataException("The range of id is 1 ~ 6 or 7, but the received is {}".format(value))
elif parameter == "torque":
torque_min = 150
torque_max = 980
Expand Down Expand Up @@ -1103,8 +1103,8 @@ def calibration_parameters(**kwargs):
"The range of speed is 0 ~ 3400, but the received value is {}".format(data))
elif parameter in ['servo_id_pdi', 'encode_id']:
check_value_type(parameter, value_type, MyArmDataException, int)
if value < 1 or value > 7:
raise MyArmDataException("The range of id is 1 ~ 7, but the received is {}".format(value))
if value < 1 or value > 8:
raise MyArmDataException("The range of id is 1 ~ 7 or 8, but the received is {}".format(value))
elif parameter == "torque":
torque_min = 150
torque_max = 980
Expand Down Expand Up @@ -1246,8 +1246,8 @@ def calibration_parameters(**kwargs):
"The range of speed is 0 ~ 3400, but the received value is {}".format(data))
elif parameter in ['servo_id_pdi', 'encode_id']:
check_value_type(parameter, value_type, MyPalletizer260DataException, int)
if value < 1 or value > 4:
raise MyPalletizer260DataException("The range of id is 1 ~ 4, but the received is {}".format(value))
if value < 1 or (value > 4 and value != 7):
raise MyPalletizer260DataException("The range of id is 1 ~ 4 or 7, but the received is {}".format(value))
elif parameter == "torque":
torque_min = 150
torque_max = 980
Expand Down

0 comments on commit 3fc5d95

Please sign in to comment.