From 1efb832676e8ad27e7a495dba6ffc19479e0c76f Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期四, 04 九月 2025 15:51:33 +0800
Subject: [PATCH] 1.机器配方参数的获取;

---
 SourceCode/Bond/Servo/RecipeManager.h |   19 ++-----------------
 1 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/SourceCode/Bond/Servo/RecipeManager.h b/SourceCode/Bond/Servo/RecipeManager.h
index 41d8f02..c588bb3 100644
--- a/SourceCode/Bond/Servo/RecipeManager.h
+++ b/SourceCode/Bond/Servo/RecipeManager.h
@@ -15,6 +15,8 @@
     int nRecipeID;               // 子配方ID
 	std::string strRecipeName;   // 子配方名称
     std::string strDeviceName;   // 设备名称 
+    std::vector<uint8_t> paramsRawData;     // 配方原始数据
+    std::vector<CParam*> m_params;			// 出站时记录参数
 };
 
 // 配方信息
@@ -23,23 +25,6 @@
     std::string strDescription;  // 配方描述
     std::string strCreateTime;   // 创建时间
     std::vector<DeviceRecipe> vecDeviceList;  // 关联的设备信息列表
-    std::vector<CParam*> m_params;			// 出站时记录参数
-    void RecipeInfo::addIntParam(const char* pszName, const char* pszId, const char* pszUnit, int value)
-    {
-        CParam* pParam = new CParam(pszName, pszId, pszUnit, value);
-        m_params.push_back(pParam);
-    }
-
-    void RecipeInfo::addDoubleParam(const char* pszName, const char* pszId, const char* pszUnit, double value)
-    {
-        CParam* pParam = new CParam(pszName, pszId, pszUnit, value);
-        m_params.push_back(pParam);
-    }
-
-    std::vector<CParam*>& RecipeInfo::getParams()
-    {
-        return m_params;
-    }
 };
 
 using RecipeMap = std::unordered_map<std::string, RecipeInfo>; // 按 PPID 映射的配方表

--
Gitblit v1.9.3