添加了5个电磁阀+修改了传送带传感器的逻辑

This commit is contained in:
2026-01-29 18:30:22 +08:00
parent 070895f3dd
commit 17df13c08e
10 changed files with 670 additions and 512 deletions

View File

@ -116,7 +116,7 @@ class ServoController:
def cleanup(self):
"""清理资源"""
self.disable_all_servos()
if self.port_handler.is_open():
if self.port_handler.is_open:
self.port_handler.closePort()
logging.info("串口已关闭")