From 3628a707a38e1c590216c5983c9b97b9c742f86c Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期一, 24 三月 2025 09:01:42 +0800
Subject: [PATCH] Merge branch 'clh' into liuyang
---
SourceCode/Bond/Servo/CAligner.cpp | 61 ++++++++++++++++++++++++++++++
1 files changed, 61 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/CAligner.cpp b/SourceCode/Bond/Servo/CAligner.cpp
new file mode 100644
index 0000000..6b76fd9
--- /dev/null
+++ b/SourceCode/Bond/Servo/CAligner.cpp
@@ -0,0 +1,61 @@
+#include "stdafx.h"
+#include "CAligner.h"
+
+namespace SERVO {
+ CAligner::CAligner() : CEquipment()
+ {
+
+ }
+
+ CAligner::~CAligner()
+ {
+
+ }
+
+ const char* CAligner::getClassName()
+ {
+ static char* pszName = "CAligner";
+ return pszName;
+ }
+
+ void CAligner::init()
+ {
+ CEquipment::init();
+ }
+
+ void CAligner::term()
+ {
+ CEquipment::term();
+ }
+
+ // 必须要实现的虚函数,在此初始化Pin列表
+ void CAligner::initPins()
+ {
+ // 加入Pin初始化代码
+ LOGI("<CAligner>initPins");
+ addPin(SERVO::PinType::INPUT, _T("In1"));
+ addPin(SERVO::PinType::INPUT, _T("In2"));
+ addPin(SERVO::PinType::OUTPUT, _T("Out1"));
+ addPin(SERVO::PinType::OUTPUT, _T("Out2"));
+ }
+
+ void CAligner::onTimer(UINT nTimerid)
+ {
+ CEquipment::onTimer(nTimerid);
+ }
+
+ void CAligner::serialize(CArchive& ar)
+ {
+ CEquipment::serialize(ar);
+ }
+
+ void CAligner::getAttributeVector(CAttributeVector& attrubutes)
+ {
+ __super::getAttributeVector(attrubutes);
+ }
+
+ int CAligner::recvIntent(CPin* pPin, CIntent* pIntent)
+ {
+ return __super::recvIntent(pPin, pIntent);
+ }
+}
--
Gitblit v1.9.3