0313界面对接

This commit is contained in:
2026-03-13 21:04:19 +08:00
parent 6e74eaf206
commit 8aeaffa885
33 changed files with 1541 additions and 419 deletions

View File

@ -145,18 +145,6 @@ class RelayController:
time.sleep(duration)
self.control(self.DOOR_UPPER_OPEN, 'close')
def control_upper_close_sync(self,duration):
thread_name = threading.current_thread().name
print(f"[{thread_name}] 尝试执行上料斗同步关闭,实际操作下料斗")
with self.door_control_lock:
print(f"[{thread_name}] 获得下料斗控制锁,执行同步关闭操作")
self.control(self.DOOR_UPPER_OPEN, 'close')
self.control(self.DOOR_UPPER_CLOSE, 'open')
time.sleep(duration)
self.control(self.DOOR_UPPER_CLOSE, 'close')
print(f"[{thread_name}] 同步关闭操作完成,释放控制锁")
def control_upper_open(self):
#关闭信号才能生效
self.control(self.DOOR_UPPER_CLOSE, 'close')
@ -314,7 +302,16 @@ class RelayController:
print(f"下料斗振动关闭完成,延迟{delay_seconds}")
self.control(self.BREAK_ARCH_LOWER, 'close')
def control_upper_to_jbl(self):
"""控制上料斗到搅拌楼"""
# self.control(self.UPPER_TO_ZD, 'close')
# self.control(self.UPPER_TO_JBL, 'open')
def control_upper_to_zd(self):
"""控制上料斗到料斗"""
# self.control(self.UPPER_TO_JBL, 'close')
# self.control(self.UPPER_TO_ZD, 'open')
def close_all(self):
"""关闭所有继电器"""