Skip to content

Commit 5011cc9

Browse files
committed
Merge branch 'main' of github.com:elephantrobotics/pymycobot into mycobot_280_refactor
2 parents 40f7406 + 887c1f9 commit 5011cc9

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ChangeLog for pymycobot
22

3+
## v3.6.5 (2024-10-25)
4+
5+
- release v3.6.5
6+
- Added 280 set_encoders_drag interface
7+
38
## v3.6.4 (2024-10-22)
49

510
- release v3.6.4

pymycobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
8686
__all__.append("MyBuddyEmoticon")
8787

88-
__version__ = "3.6.4"
88+
__version__ = "3.6.5"
8989
__author__ = "Elephantrobotics"
9090
__email__ = "weiquan.xu@elephantrobotics.com"
9191
__git_url__ = "https://github.com/elephantrobotics/pymycobot"

pymycobot/generate.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,16 @@ def get_encoders(self):
343343
"""
344344
return self._mesg(ProtocolCode.GET_ENCODERS, has_reply=True)
345345

346+
def set_encoders_drag(self, encoders, speeds): # TODO 22-5-19 need test
347+
"""Send all encoders and speeds
348+
349+
Args:
350+
encoders: encoders list.
351+
speeds: Obtained by the get_servo_speeds() method
352+
"""
353+
self.calibration_parameters(class_name=self.__class__.__name__, encoders=encoders, speeds=speeds)
354+
return self._mesg(ProtocolCode.SET_ENCODERS_DRAG, encoders, speeds)
355+
346356
# Running status and Settings
347357

348358
def get_joint_min_angle(self, joint_id):

0 commit comments

Comments
 (0)