From 43419b86d6a4a2d879454938fb7db7cc84d8c011 Mon Sep 17 00:00:00 2001
From: LAPTOP-T815PCOQ\25526 <mr.liuyang@126.com>
Date: 星期三, 11 十二月 2024 14:51:38 +0800
Subject: [PATCH] 1. 添加自定义限制编辑框 2. 在axis设定界面实现输入限制功能
---
SourceCode/Bond/BondEq/FileManager/RecipeManager.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/SourceCode/Bond/BondEq/FileManager/RecipeManager.h b/SourceCode/Bond/BondEq/FileManager/RecipeManager.h
index aabc1b5..f0c873c 100644
--- a/SourceCode/Bond/BondEq/FileManager/RecipeManager.h
+++ b/SourceCode/Bond/BondEq/FileManager/RecipeManager.h
@@ -17,17 +17,21 @@
};
struct PositionRange {
+ BOOL isEnable; // 是否启用
std::string description; // 定位点描述
ValueRange range; // 位置的最小值、最大值和当前值
// 构造函数初始化
- PositionRange(const std::string& desc = "", const ValueRange& r = ValueRange())
- : description(desc), range(r) {}
+ PositionRange(BOOL b = TRUE, const std::string& desc = "", const ValueRange& r = ValueRange())
+ :isEnable(b), description(desc), range(r) {}
};
// 轴信息结构体
struct AxisInfo {
int id; // 轴ID
+ int positioningPointCount; // 定位点数
+ //double maxPositioningSpeed; // 定位速度上限
+ //double maxManualSpeed; // 手动速度上限
std::string number; // 轴编号
std::string description; // 轴描述
std::string startAddress; // 起始地址
--
Gitblit v1.9.3