update pro600/630 code

This commit is contained in:
wangWking 2024-11-21 13:40:44 +08:00
parent 02e2544007
commit 41a9ebf1db
5 changed files with 9 additions and 5 deletions

View file

@ -35,7 +35,8 @@ def listener():
mc = ElephantRobot(ip, int(port))
# START CLIENT,启动客户端
res = mc.start_client()
if res != "":
if not res:
print('res:', res)
sys.exit(1)
mc.set_speed(90)

View file

@ -37,7 +37,8 @@ def listener():
mc = ElephantRobot(ip, int(port))
# START CLIENT,启动客户端
res = mc.start_client()
if res != "":
if not res:
print('res:', res)
sys.exit(1)
mc.set_speed(90)

View file

@ -35,7 +35,8 @@ def listener():
mc = ElephantRobot(ip, int(port))
# START CLIENT,启动客户端
res = mc.start_client()
if res != "":
if not res:
print('res:', res)
sys.exit(1)
mc.set_speed(90)

View file

@ -5,7 +5,7 @@ from pymycobot.elephantrobot import ElephantRobot
mc = ElephantRobot('192.168.1.159', 5001, debug=True)
res = mc.start_client()
if res != "":
if not res :
print('quit')
sys.exit(1)

View file

@ -37,7 +37,8 @@ def listener():
mc = ElephantRobot(ip, int(port))
# START CLIENT,启动客户端
res = mc.start_client()
if res != "":
if not res:
print('res:', res)
sys.exit(1)
mc.set_speed(90)