From e2ec31cc0062b3c1af621437554aa9a3505d2a56 Mon Sep 17 00:00:00 2001 From: kazelee <1847801760@qq.com> Date: 星期五, 23 五月 2025 17:26:55 +0800 Subject: [PATCH] 优化产线安全交互的部分,优化AGV调试接口 --- util/Settings.cs | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/util/Settings.cs b/util/Settings.cs index aee5018..70de35d 100644 --- a/util/Settings.cs +++ b/util/Settings.cs @@ -13,9 +13,9 @@ public static string SqlServer { get; set; } public static string TcpServerIp { get; set; } public static int TcpServerPort { get; set; } - public static List<Config.Area> Areas { get; set; } - public static List<Config.Task> Tasks { get; set; } - public static List<Config.ProductionLine> ProductionLines { get; set; } + public static List<Config.Area> Areas { get; set; } = new List<Config.Area>(); + public static List<Config.Task> Tasks { get; set; } = new List<Config.Task>(); + public static List<Config.ProductionLine> ProductionLines { get; set; } = new List<Config.ProductionLine>(); /// <summary> /// 搴撳尯瀛楀吀锛堝姞杞藉悗灏变笉鍙橈級 @@ -26,6 +26,8 @@ /// 浠诲姟瀛楀吀锛堝姞杞藉悗灏变笉鍙橈級 /// </summary> public static Dictionary<string, Config.Task> TaskMap { get; set; } = new Dictionary<string, Config.Task>(); + + public static Dictionary<string, int> AgvSite_ProdLineCodeMap { get; set; } = new Dictionary<string, int>(); public static void Init() { // 鍔犺浇閰嶇疆鏂囦欢 @@ -83,6 +85,13 @@ TaskMap.Add(task.Name, task); } } + + private static void LoadProdLines() { + foreach (var prod in ProductionLines) { + + } + } + } public class Config { -- Gitblit v1.9.1