From 1d723c3fe9787ae6f079f3e94cd9a53f20cac985 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 18 三月 2025 17:55:07 +0800
Subject: [PATCH] 1.开始编写流程控件模块,添加LoadPort, 烘烤等其它机器。 2.实现pin接口,准备加入到各个机器中;

---
 SourceCode/Bond/Servo/CEquipment.cpp |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/CEquipment.cpp b/SourceCode/Bond/Servo/CEquipment.cpp
index c66619b..deaee05 100644
--- a/SourceCode/Bond/Servo/CEquipment.cpp
+++ b/SourceCode/Bond/Servo/CEquipment.cpp
@@ -72,6 +72,17 @@
 		return iter->second;
 	}
 
+	CStep* CEquipment::getStepWithName(const char* pszName)
+	{
+		for (auto item : m_mapStep) {
+			if (item.second->getName().compare(pszName) == 0) {
+				return item.second;
+			}
+		}
+
+		return nullptr;
+	}
+
 	int CEquipment::addStep(unsigned int addr, CStep* pStep)
 	{
 		auto iter = m_mapStep.find(addr);
@@ -84,6 +95,7 @@
 
 	void CEquipment::init()
 	{
+		initPins();
 		for (auto item : m_mapStep) {
 			item.second->init();
 		}
@@ -361,4 +373,10 @@
 		if (index >= VCR_MAX) return FALSE;
 		return m_bVCREnable[index];
 	}
+
+	int CEquipment::recvSample(CPin* pPin, CSample* pSample)
+	{
+		LOGI("<CEquipment>recvSample, pin:%s", pPin->getName().c_str());
+		return 0;
+	}
 }

--
Gitblit v1.9.3