From def086f87d823478cdada1a6732e9fe4a54bd21d Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期一, 09 六月 2025 11:07:21 +0800
Subject: [PATCH] 1.优化loadport到aligner/VacuumBakel逻辑,增加Port类型等条件判断。

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

diff --git a/SourceCode/Bond/Servo/CFliper.cpp b/SourceCode/Bond/Servo/CFliper.cpp
index 8858147..4065835 100644
--- a/SourceCode/Bond/Servo/CFliper.cpp
+++ b/SourceCode/Bond/Servo/CFliper.cpp
@@ -33,6 +33,19 @@
 	{
 		// 加入Pin初始化代码
 		LOGI("<CFliper>initPins");
+		addPin(SERVO::PinType::INPUT, _T("In1"));
+		addPin(SERVO::PinType::INPUT, _T("In2"));
+		addPin(SERVO::PinType::OUTPUT, _T("Out"));
+	}
+
+	// 必须要实现的虚函数,在此初始化Slot信息
+	void CFliper::initSlots()
+	{
+		m_slot[0].enable();
+		m_slot[0].setPosition(m_nID);
+		m_slot[0].setNo(1);
+		m_slot[0].setName("Slot 1(G2)");
+		m_slot[0].setType(MaterialsType::G2);
 	}
 
 	void CFliper::onTimer(UINT nTimerid)
@@ -44,4 +57,14 @@
 	{
 		CEquipment::serialize(ar);
 	}
+
+	void CFliper::getAttributeVector(CAttributeVector& attrubutes)
+	{
+		__super::getAttributeVector(attrubutes);
+	}
+
+	int CFliper::recvIntent(CPin* pPin, CIntent* pIntent)
+	{
+		return __super::recvIntent(pPin, pIntent);
+	}
 }

--
Gitblit v1.9.3