From ffd3de44be70cfa45f2ad74b71daa55192296298 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期四, 12 六月 2025 14:07:17 +0800
Subject: [PATCH] 1.调整物流传输顺序,将Aligner往前调到Fliper前面

---
 SourceCode/Bond/Servo/CWriteStep.cpp |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/SourceCode/Bond/Servo/CWriteStep.cpp b/SourceCode/Bond/Servo/CWriteStep.cpp
index 6d79f55..0470421 100644
--- a/SourceCode/Bond/Servo/CWriteStep.cpp
+++ b/SourceCode/Bond/Servo/CWriteStep.cpp
@@ -89,9 +89,9 @@
 				// 1.写数据
 				nextStep();
 				ASSERT(m_pCclink);
-				int nRet = m_pCclink->WriteData(m_station, (short)DeviceType::W,
+				int nWriteRet = m_pCclink->WriteData(m_station, (short)DeviceType::W,
 					m_nWriteDevNo, m_nWriteDataSize, (short*)m_szBuffer);
-				if (0 != nRet) {
+				if (0 != nWriteRet) {
 					onTimeout();
 					goto RESET;
 				}
@@ -99,14 +99,14 @@
 
 				// 2.给对方写ON
 				nextStep();
-				m_pCclink->SetBitDevice(m_station, DeviceType::B, m_nWriteSignalDev);
+				m_pCclink->SetBitDeviceEx(m_station, (long)DeviceType::B, m_nWriteSignalDev);
 
 
 				// 3.等待对方ON
 				nextStep();
 				int nStep3Ret = ::WaitForSingleObject(m_hRecvSignalOn, TIMEOUT * 1000);
 				if (nStep3Ret == WAIT_TIMEOUT) {
-					m_pCclink->ResetBitDevice(m_station, DeviceType::B, m_nWriteSignalDev);
+					m_pCclink->ResetBitDeviceEx(m_station, (long)DeviceType::B, m_nWriteSignalDev);
 					onTimeout();
 					goto RESET;
 				}
@@ -115,7 +115,7 @@
 
 				// 4.写OFF
 				nextStep();
-				m_pCclink->ResetBitDevice(m_station, DeviceType::B, m_nWriteSignalDev);
+				m_pCclink->ResetBitDeviceEx(m_station, (long)DeviceType::B, m_nWriteSignalDev);
 
 
 				// 6.完成
@@ -141,10 +141,11 @@
 		CStep::getAttributeVector(attrubutes);
 		std::string temp;
 
+		unsigned int weight = 20;
 		attrubutes.addAttribute(new CAttribute("Current Step",
-			std::to_string(m_nCurStep).c_str(), ""));
+			std::to_string(m_nCurStep).c_str(), "", weight++));
 		attrubutes.addAttribute(new CAttribute("Signal Dev",
-			("W" + CToolUnits::toHexString(m_nWriteSignalDev, temp)).c_str(), ""));
+			("W" + CToolUnits::toHexString(m_nWriteSignalDev, temp)).c_str(), "", weight++));
 	}
 
 	void CWriteStep::init()

--
Gitblit v1.9.3