| | |
| | | #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 对话框 |
| | | |
| | |
| | | void UpdateRobotPosition(float percentage); |
| | | void RotateRobot(float angleInDegrees); |
| | | void BindEquipmentToGraph(); |
| | | void MoveRobotToPosition(SERVO::ROBOT_POSITION position); |
| | | |
| | | private: |
| | | IObserver* m_pObserver; |
| | |
| | | BOOL m_bIsRobotMoving; |
| | | COLORREF m_crBkgnd; |
| | | HBRUSH m_hbrBkgnd; |
| | | SERVO::ROBOT_POSITION m_lastRobotPosition; |
| | | |
| | | // 对话框数据 |
| | | #ifdef AFX_DESIGN_TIME |