Skip to content

Commit d46d0bf

Browse files
committed
320适配新版pymycobot库,版本>=3.6.3
1 parent 265b2c9 commit d46d0bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
from PyQt5.QtCore import pyqtSlot, Qt, QCoreApplication
1818
from PyQt5.QtGui import QEnterEvent, QPixmap
1919
from PyQt5.QtWidgets import QMainWindow, QApplication, QInputDialog, QWidget, QMessageBox, QPushButton, QComboBox
20-
from pymycobot.mycobot import MyCobot
20+
# from pymycobot.mycobot import MyCobot
21+
from pymycobot.mycobot320 import MyCobot320
2122
from PyQt5.QtCore import QTimer
2223
from libraries.log import logfile
2324
from libraries.pyqtFile.AiKit_auto import Ui_AiKit_UI as AiKit_window
@@ -508,7 +509,7 @@ def connect_mycobot(self):
508509
baud = self.comboBox_buad.currentText()
509510
baud = int(baud)
510511
try:
511-
self.myCobot = MyCobot(self.port, baud, timeout=0.2, thread_lock=True)
512+
self.myCobot = MyCobot320(self.port, baud, timeout=0.2)
512513
self.stop_wait(0.5)
513514
self.loger.info("connection succeeded !")
514515
self.myCobot.set_fresh_mode(0)

0 commit comments

Comments
 (0)