dd
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
# config/settings.py
|
||||
import os
|
||||
|
||||
|
||||
class Settings:
|
||||
def __init__(self):
|
||||
# 项目根目录
|
||||
self.project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
|
||||
# 网络继电器配置
|
||||
self.relay_host = '192.168.0.18'
|
||||
self.relay_port = 50000
|
||||
@ -49,7 +48,13 @@ class Settings:
|
||||
self.visual_check_interval = 1.0 # 视觉检查间隔(秒)
|
||||
self.alignment_check_interval = 0.5 # 对齐检查间隔(秒)
|
||||
self.max_error_count = 3 # 最大错误计数
|
||||
self.lower_feeding_interval = 1.0 # 下料轮询间隔(秒)
|
||||
|
||||
# RFID配置
|
||||
self.rfid_host = '192.168.1.190'
|
||||
self.rfid_port = 6000
|
||||
|
||||
#是否在线生产
|
||||
self.is_online_control = True # 是否API在线
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user