From 79046976f31fc24ad6787ee6ebacfa331424aa7b Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期四, 26 六月 2025 14:23:54 +0800
Subject: [PATCH] 1. 添加设备位置映射表,并且新增控件移动
---
SourceCode/Bond/Servo/CPageGraph1.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/SourceCode/Bond/Servo/CPageGraph1.h b/SourceCode/Bond/Servo/CPageGraph1.h
index edef11a..8a2b044 100644
--- a/SourceCode/Bond/Servo/CPageGraph1.h
+++ b/SourceCode/Bond/Servo/CPageGraph1.h
@@ -1,12 +1,18 @@
锘�#pragma once
#include "ServoGraph.h"
-
+#include "ServoCommo.h"
enum DeviceStatus {
ONLINE, // 鍦ㄧ嚎
OFFLINE, // 绂荤嚎
};
+struct RobotPositionMapping {
+ SERVO::ROBOT_POSITION position;
+ float percentage;
+ float angle;
+ int arm; // 0 琛ㄧず ARM1锛�1 琛ㄧず ARM2
+};
// CPageGraph1 瀵硅瘽妗�
@@ -25,6 +31,7 @@
void UpdateRobotPosition(float percentage);
void RotateRobot(float angleInDegrees);
void BindEquipmentToGraph();
+ void MoveRobotToPosition(SERVO::ROBOT_POSITION position);
private:
IObserver* m_pObserver;
--
Gitblit v1.9.3