Bläddra i källkod

保存数据时新增MOS内阻参数。

Dail 1 år sedan
förälder
incheckning
b7d5b89153

BIN
.vs/Welling_Motor_Debug_Tool/v17/.suo


BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool.exe


BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool_202405141715.exe


+ 19 - 0
Welling_Motor_Debug_Tool/mainForm.cs

@@ -4167,6 +4167,15 @@ namespace Welling_Motor_Debug_Tool
                 if (!mySerialProcess.SendCmd((ushort)0x751, (byte)0x11, (ushort)0x4800, null)) break;
                 Delay_ms(100);
 
+                //读取一次MOS内阻校准参数
+                foreach (Control c in groupBox21.Controls)
+                {
+                    if (c is TextBox)
+                        c.Text = "";
+                }
+                mySerialProcess.SendCmd((ushort)0x751, (byte)0x11, (ushort)0x4B00, null);
+                Delay_ms(100);
+
                 //提示检查
 #if false
             timer_1s.Enabled = false;
@@ -4245,6 +4254,16 @@ namespace Welling_Motor_Debug_Tool
                 FileInfo += "[历史信息]\r\n";
                 FileInfo += richTextBox_Record.Text + "\r\n";
                 FileInfo += "\r\n";
+                FileInfo += "[MOS内阻校准参数]\r\n";
+                FileInfo += textBox_MOS_K1.Text + ", ";
+                FileInfo += textBox_MOS_K2.Text + ", ";
+                FileInfo += textBox_MOS_K3.Text + ", ";
+                FileInfo += textBox_MOS_K4.Text + ", ";
+                FileInfo += textBox_MOS_K5.Text + ", ";
+                FileInfo += textBox_MOS_R1.Text + ", ";
+                FileInfo += textBox_MOS_R2.Text + ", ";
+                FileInfo += textBox_MOS_R3.Text + "\r\n";
+                FileInfo += "\r\n";
                 FileInfo += "[生产信息]\r\n";
                 FileInfo += "生产商: " + textBox_MAC.Text + "\r\n";
                 FileInfo += "生产地: " + textBox_MACAdd.Text + "\r\n";

BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.exe


BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.pdb