From 5cf5e464a5891c8eb62aafadfce0d204fdc79b02 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期四, 22 五月 2025 13:50:02 +0800
Subject: [PATCH] 1. 添加机械臂快速测试界面

---
 SourceCode/Bond/Servo/CPageGraph2.cpp |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/SourceCode/Bond/Servo/CPageGraph2.cpp b/SourceCode/Bond/Servo/CPageGraph2.cpp
index cbce17f..3e161a7 100644
--- a/SourceCode/Bond/Servo/CPageGraph2.cpp
+++ b/SourceCode/Bond/Servo/CPageGraph2.cpp
@@ -13,6 +13,7 @@
 #include "CPageCassetteCtrlCmd.h"
 #include "CJobDataB.h"
 #include "CRobotCmdContainerDlg.h"
+#include "CRobotCmdTestDlg.h"
 
 
 // CPageGraph2 瀵硅瘽妗�
@@ -271,13 +272,17 @@
 				//cmds[1].subCmd = 10;
 				//pEFEM->robotCmds(cmds, 2);
 
-				CRobotCmdContainerDlg dlg;
-				if (dlg.DoModal() == IDOK) {
-					std::vector<SERVO::ROBOT_CMD_PARAM>& cmds = dlg.GetResultCmds();
-					if (!cmds.empty()) {
-						pEFEM->robotCmds(cmds.data(), (int)cmds.size());
-					}
-				}
+				//CRobotCmdContainerDlg dlg;
+				//if (dlg.DoModal() == IDOK) {
+				//	std::vector<SERVO::ROBOT_CMD_PARAM>& cmds = dlg.GetResultCmds();
+				//	if (!cmds.empty()) {
+				//		pEFEM->robotCmds(cmds.data(), (int)cmds.size());
+				//	}
+				//}
+
+				CRobotCmdTestDlg dlg;
+				dlg.SetEFEM(pEFEM);
+				dlg.DoModal();
 			}
 
 

--
Gitblit v1.9.3