Skip to content

Commit 16d706c

Browse files
committed
release v3.2.0
1 parent 46e3eb5 commit 16d706c

File tree

9 files changed

+27
-13
lines changed

9 files changed

+27
-13
lines changed

CHANGELOG.md

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

3+
## v3.2.0 (2023-10-09)
4+
5+
- release v3.2.0
6+
- Fix bug
7+
38
## v3.1.9 (2023-09-19)
49

510
- release v3.1.9
@@ -24,7 +29,7 @@
2429
## v3.1.5 (2023-07-06)
2530

2631
- release v3.1.5
27-
- Add mycobot interface:get_basic_version(),set_communicate_mode()
32+
- Add mycobot interface:get_basic_version(),set_transponder_mode()
2833

2934
## v3.1.4 (2023-07-05)
3035

docs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ We support Python2, Python3.5 or later.
9797
- [set\_plan\_acceleration](#set_plan_acceleration)
9898
- [set\_gservo\_round](#move_round)
9999
- [get\_basic\_version](#get_basic_version)
100-
- [set\_communicate\_mode](#set_communicate_mode)
100+
- [set\_communicate\_mode](#set_transponder_mode)
101101
- [get\_servo\_speeds](#get_servo_speeds)
102102
- [get\_servo\_currents](#get_servo_currents)
103103
- [get\_servo\_voltages](#get_servo_voltages)
@@ -1172,9 +1172,9 @@ Set the terminal atom io status
11721172

11731173
- `version` (`float`)
11741174

1175-
### set_communicate_mode
1175+
### set_transponder_mode
11761176

1177-
- **Prototype**: `set_communicate_mode(mode)`
1177+
- **Prototype**: `set_transponder_mode(mode)`
11781178

11791179
- **Description**: Set basic communication mode.
11801180

pymycobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
5353
__all__.append("MyBuddyEmoticon")
5454

55-
__version__ = "3.2.0b2"
55+
__version__ = "3.2.0"
5656
__author__ = "Elephantrobotics"
5757
__email__ = "weiquan.xu@elephantrobotics.com"
5858
__git_url__ = "https://github.com/elephantrobotics/pymycobot"

pymycobot/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ def _process_received(self, data, genre, arm=6):
405405
data1 = self._decode_int8(valid_data[i : i + 1])
406406
res.append(0xFF & data1 if data1 < 0 else data1)
407407
return res
408+
print(valid_data)
408409
res.append(self._decode_int8(valid_data))
409410
if genre == ProtocolCode.GET_ACCEI_DATA:
410411
for i in range(len(res)):

pymycobot/generate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,17 +1092,17 @@ def get_basic_version(self):
10921092
"""Get basic firmware version"""
10931093
return self._mesg(ProtocolCode.GET_BASIC_VERSION, has_reply = True)
10941094

1095-
def set_communicate_mode(self, mode):
1095+
def set_transponder_mode(self, mode):
10961096
"""Set basic communication mode
10971097
10981098
Args:
10991099
mode: 0 - Turn off transparent transmission,1 - Open transparent transmission
11001100
"""
11011101
self.calibration_parameters(class_name = self.__class__.__name__, mode=mode)
1102-
return self._mesg(ProtocolCode.SET_COMMUNICATE_MODE, mode)
1102+
return self._mesg(ProtocolCode.SET_COMMUNICATE_MODE, mode, has_reply = True)
11031103

1104-
def get_communicate_mode(self):
1105-
self._mesg(ProtocolCode.GET_COMMUNICATE_MODE, has_reply = True)
1104+
def get_transponder_mode(self):
1105+
return self._mesg(ProtocolCode.GET_COMMUNICATE_MODE, has_reply = True)
11061106

11071107
def get_angles_coords(self):
11081108
"""Get basic communication mode"""

pymycobot/mycobot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ def _res(self, real_command, has_reply, genre):
122122
ProtocolCode.GET_REFERENCE_FRAME,
123123
ProtocolCode.GET_FRESH_MODE,
124124
ProtocolCode.GET_GRIPPER_MODE,
125-
ProtocolCode.GET_ERROR_INFO
125+
ProtocolCode.GET_ERROR_INFO,
126+
ProtocolCode.GET_COMMUNICATE_MODE,
127+
ProtocolCode.SET_COMMUNICATE_MODE
126128
]:
127129
return self._process_single(res)
128130
elif genre in [ProtocolCode.GET_ANGLES]:

pymycobot/mycobotsocket.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def _mesg(self, genre, *args, **kwargs):
111111
ProtocolCode.GET_FRESH_MODE,
112112
ProtocolCode.GET_GRIPPER_MODE,
113113
ProtocolCode.GET_ERROR_INFO,
114-
ProtocolCode.GET_GPIO_IN
114+
ProtocolCode.GET_GPIO_IN,
115+
ProtocolCode.GET_COMMUNICATE_MODE,
116+
ProtocolCode.SET_COMMUNICATE_MODE
115117
]:
116118
return self._process_single(res)
117119
elif genre in [ProtocolCode.GET_ANGLES]:

pymycobot/mypalletizer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ def _mesg(self, genre, *args, **kwargs):
143143
ProtocolCode.GET_SPEED,
144144
ProtocolCode.GET_ENCODER,
145145
ProtocolCode.GET_BASIC_INPUT,
146-
ProtocolCode.GET_TOF_DISTANCE
146+
ProtocolCode.GET_TOF_DISTANCE,
147+
ProtocolCode.GET_COMMUNICATE_MODE,
148+
ProtocolCode.SET_COMMUNICATE_MODE
147149
]:
148150
return self._process_single(res)
149151
elif genre in [ProtocolCode.GET_ANGLES]:

pymycobot/mypalletizersocket.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ def _mesg(self, genre, *args, **kwargs):
104104
ProtocolCode.GET_ENCODER,
105105
ProtocolCode.GET_BASIC_INPUT,
106106
ProtocolCode.GET_TOF_DISTANCE,
107-
ProtocolCode.GET_GPIO_IN
107+
ProtocolCode.GET_GPIO_IN,
108+
ProtocolCode.GET_COMMUNICATE_MODE,
109+
ProtocolCode.SET_COMMUNICATE_MODE
108110
]:
109111
return self._process_single(res)
110112
elif genre in [ProtocolCode.GET_ANGLES]:

0 commit comments

Comments
 (0)