From 5ee30b85c394e60b5ac4169a8093a8089345189a Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期五, 20 六月 2025 14:02:29 +0800
Subject: [PATCH] 1.任务的回撤实现,在任务详情上增加"回撤"按钮

---
 SourceCode/Bond/Servo/CRobotTask.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/CRobotTask.h b/SourceCode/Bond/Servo/CRobotTask.h
index 7e83046..5b417a0 100644
--- a/SourceCode/Bond/Servo/CRobotTask.h
+++ b/SourceCode/Bond/Servo/CRobotTask.h
@@ -38,6 +38,7 @@
 		void pick();
 		void place();
 		void restore();
+		void restored();
 		void completed();
 		void error();
 		void abort();
@@ -55,6 +56,7 @@
 
 	private:
 		static std::string& generateId(std::string& out);
+		void transformPosAndSlot(int srcPos, int srcSlot, int& tarPos, int& tarSlot);
 
 	private:
 		ROBOT_TASK_STATE m_state;					/* 任务状态 */

--
Gitblit v1.9.3