This commit is contained in:
2025-11-17 00:05:40 +08:00
parent f860c5a216
commit e3ecd0550f
55 changed files with 3204 additions and 528 deletions

22
main.py
View File

@ -10,16 +10,34 @@ def main():
# 初始化系统
system = FeedingControlSystem(settings)
# system.camera_controller.start_cameras()
# time.sleep(2)
# system._alignment_check_loop()
# system.relay_controller.control(system.relay_controller.DOOR_LOWER_OPEN, 'open')
# time.sleep(2)
# system.relay_controller.control(system.relay_controller.DOOR_UPPER_OPEN, 'close')
# time.sleep(2)
# system.relay_controller.control(system.relay_controller.DOOR_LOWER_CLOSE, 'open')
# time.sleep(2)
# system.relay_controller.control(system.relay_controller.DOOR_UPPER_CLOSE, 'close')
# system.relay_controller.control(system.relay_controller.DOOR_LOWER_CLOSE, 'open')
# time.sleep(5)
# system.relay_controller.control(system.relay_controller.DOOR_LOWER_CLOSE, 'close')
# system._visual_control_loop()
try:
# 系统初始化
system.initialize()
# system.initialize()
print("系统准备就绪5秒后开始下料...")
time.sleep(5)
# 启动下料流程
system.start_lower_feeding()
# system.start_lower_feeding()
# 保持运行
while True: