Skip to content

Commit dd084a5

Browse files
committed
release v3.1.3
1 parent 6d2b56d commit dd084a5

File tree

10 files changed

+32
-5
lines changed

10 files changed

+32
-5
lines changed

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@
1717
"zhang"
1818
],
1919
"restructuredtext.confPath": "",
20-
"python.formatting.provider": "black"
20+
"python.formatting.provider": "black",
21+
"files.associations": {
22+
"ccomplex": "cpp",
23+
"iosfwd": "cpp"
24+
}
2125
}

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.1.3 (2023-06-29)
4+
5+
- release v3.1.3
6+
- Add open/close serial function
7+
38
## v3.1.2 (2023-06-15)
49

510
- release v3.1.2

demo/Server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
1818
`pip install pymycobot --upgrade`
1919
20-
Please change the parameters passed in MycobotServer in line 141 according to your model.
20+
Please change the parameters passed in the last line of the Server.py file, MycobotServer, based on your model.
2121
2222
2323
The default model is the 280PI.

pymycobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
4343
__all__.append("MyBuddyEmoticon")
4444

45-
__version__ = "3.1.2"
45+
__version__ = "3.1.3"
4646
__author__ = "Elephantrobotics"
4747
__email__ = "[email protected]"
4848
__git_url__ = "https://github.com/elephantrobotics/pymycobot"

pymycobot/generate.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,13 @@ def release_all_servos(self):
179179
return self._mesg(ProtocolCode.RELEASE_ALL_SERVOS)
180180

181181
def is_controller_connected(self):
182-
"""Wether connected with Atom."""
182+
"""Wether connected with Atom.
183+
184+
Return:
185+
1 - succeed
186+
0 - failed
187+
-1 - error data
188+
"""
183189
return self._mesg(ProtocolCode.IS_CONTROLLER_CONNECTED, has_reply=True)
184190

185191
def read_next_error(self):

pymycobot/myarm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,7 @@ def set_transpoendr_mode(self, mode):
255255

256256
def close(self):
257257
self._serial_port.close()
258+
259+
def open(self):
260+
self._serial_port.open()
258261

pymycobot/mybuddy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,4 +395,4 @@ def open(self):
395395
self._serial_port.open()
396396

397397
def is_open(self):
398-
return self._serial_port.isOpen()
398+
return self._serial_port.is_open

pymycobot/mycobot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,6 @@ def wait(self, t):
213213

214214
def close(self):
215215
self._serial_port.close()
216+
217+
def open(self):
218+
self._serial_port.open()

pymycobot/mypalletizer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,6 @@ def get_accie_data(self, value):
245245

246246
def close(self):
247247
self._serial_port.close()
248+
249+
def open(self):
250+
self._serial_port.open()

pymycobot/ultraArm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,3 +581,6 @@ def play_gcode_file(self, filename=None):
581581

582582
def close(self):
583583
self._serial_port.close()
584+
585+
def open(self):
586+
self._serial_port.open()

0 commit comments

Comments
 (0)