Răsfoiți Sursa

解决参数检验时力矩传感器参数报错问题。

dd 5 luni în urmă
părinte
comite
56be144973

BIN
.vs/Welling_Motor_Debug_Tool/v17/.suo


+ 3 - 0
Welling_Motor_Debug_Tool/Version.cs

@@ -18,6 +18,9 @@ namespace Welling_Motor_Debug_Tool
         //修改记录
         string ChangeLog = "修改记录:\r\n" +
             "V" + mainForm.Version + "\r\n" +
+            "1,解决参数检验时力矩传感器参数判断错误的问题。\r\n" +
+            "\r\n" +
+            "V2.5.0\r\n" +
             "1,增加力矩传感器手动标定实时检验,超范围时弹出提示;\r\n" +
             "2,增加拓展功能配置,支持读取和写入;\r\n" +
             "3,解决部分情况500ms定时器停止的问题;\r\n" +

+ 3 - 1
Welling_Motor_Debug_Tool/mainForm.cs

@@ -25,7 +25,7 @@ namespace Welling_Motor_Debug_Tool
     {
         #region 变量定义
         //版本号
-        public static string Version = "2.5.0";
+        public static string Version = "2.5.1";
         //串口实例
         Serial_Process mySerialProcess = new Serial_Process();
         string PortNumSave = "";
@@ -9043,6 +9043,8 @@ namespace Welling_Motor_Debug_Tool
                         }
                         if (string.Compare(key, "[其它传感器参数]") == 0)
                             ParamRead = CmdRevStrTemp.Substring(90, CmdRevStrTemp.Length - 90).Trim(); //去掉命令字、力矩传感器标定参数
+                        else if (string.Compare(key, "[力矩传感器参数]") == 0)
+                            ParamRead = CmdRevStrTemp.Substring(6, CmdRevStrTemp.Length - 6 - 36).Trim(); //去掉命令字、其它传感器参数
                         else if (string.Compare(key, "[控制参数]") == 0)
                             ParamRead = CmdRevStrTemp.Substring(18, CmdRevStrTemp.Length - 18).Trim(); //去掉命令字、位置零点
                         else

BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.exe


BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.pdb