LAPTOP-SNT8I5JK\Boounion
2025-06-26 838262ab61d580d7dd5eb3b181c61d8b4d3f54fe
SourceCode/Bond/Servo/CPageGraph1.h
@@ -1,12 +1,19 @@
#pragma once
#include "ServoGraph.h"
#include "ServoCommo.h"
enum DeviceStatus {
   ONLINE,       // 在线
   OFFLINE,      // 离线
   OCCUPIED      // 有片(占用)
};
struct RobotPositionMapping {
   SERVO::ROBOT_POSITION position;
   float percentage;
   float angle;
   int arm; // 0 表示 ARM1,1 表示 ARM2
};
// CPageGraph1 对话框
@@ -25,6 +32,7 @@
   void UpdateRobotPosition(float percentage);
   void RotateRobot(float angleInDegrees);
   void BindEquipmentToGraph();
   void MoveRobotToPosition(SERVO::ROBOT_POSITION position);
private:
   IObserver* m_pObserver;
@@ -32,6 +40,7 @@
   BOOL m_bIsRobotMoving;
   COLORREF m_crBkgnd;
   HBRUSH m_hbrBkgnd;
   SERVO::ROBOT_POSITION m_lastRobotPosition;
// 对话框数据
#ifdef AFX_DESIGN_TIME