فهرست منبع

1、运行信息增加力矩Reg;
2、速度百分比向下调到2%。

Dail 2 سال پیش
والد
کامیت
1027d49ef9

BIN
.vs/Welling_Motor_Debug_Tool/v17/.suo


+ 176 - 150
Welling_Motor_Debug_Tool/Form1.Designer.cs

@@ -42,6 +42,9 @@ namespace Welling_Motor_Debug_Tool
             this.连接ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.配置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.写入存储ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.带载类型ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.空载ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.带载ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.工具箱ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.记录数据ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
             this.计算器ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -207,6 +210,13 @@ namespace Welling_Motor_Debug_Tool
             this.label31 = new System.Windows.Forms.Label();
             this.label30 = new System.Windows.Forms.Label();
             this.tabPage_OBC = new System.Windows.Forms.TabPage();
+            this.groupBox26 = new System.Windows.Forms.GroupBox();
+            this.button_OBC_ButtonSet = new System.Windows.Forms.Button();
+            this.button_OBC_ButtonLight = new System.Windows.Forms.Button();
+            this.button_OBC_ButtonWalk = new System.Windows.Forms.Button();
+            this.button_OBC_ButtonDec = new System.Windows.Forms.Button();
+            this.button_OBC_ButtonAcc = new System.Windows.Forms.Button();
+            this.button_OBC_ButtonPower = new System.Windows.Forms.Button();
             this.groupBox15 = new System.Windows.Forms.GroupBox();
             this.textBox_OBC_ODO_TIME = new System.Windows.Forms.TextBox();
             this.button_OBC_ReadRideInfo = new System.Windows.Forms.Button();
@@ -260,6 +270,7 @@ namespace Welling_Motor_Debug_Tool
             this.button_ReadRamFlash = new System.Windows.Forms.Button();
             this.richTextBox_RamFlasgData = new System.Windows.Forms.RichTextBox();
             this.tabPage_FactoryMode = new System.Windows.Forms.TabPage();
+            this.Button_FacModePowerOff = new System.Windows.Forms.Button();
             this.Button_FacModeSaveResult = new System.Windows.Forms.Button();
             this.Button_FacModeSetMacDate = new System.Windows.Forms.Button();
             this.groupBox25 = new System.Windows.Forms.GroupBox();
@@ -350,17 +361,8 @@ namespace Welling_Motor_Debug_Tool
             this.label45 = new System.Windows.Forms.Label();
             this.label46 = new System.Windows.Forms.Label();
             this.pictureBox2 = new System.Windows.Forms.PictureBox();
-            this.Button_FacModePowerOff = new System.Windows.Forms.Button();
-            this.groupBox26 = new System.Windows.Forms.GroupBox();
-            this.button_OBC_ButtonPower = new System.Windows.Forms.Button();
-            this.button_OBC_ButtonAcc = new System.Windows.Forms.Button();
-            this.button_OBC_ButtonDec = new System.Windows.Forms.Button();
-            this.button_OBC_ButtonWalk = new System.Windows.Forms.Button();
-            this.button_OBC_ButtonLight = new System.Windows.Forms.Button();
-            this.button_OBC_ButtonSet = new System.Windows.Forms.Button();
-            this.带载类型ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-            this.空载ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-            this.带载ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.textBox_TorqueReg = new System.Windows.Forms.TextBox();
+            this.label55 = new System.Windows.Forms.Label();
             this.menuStrip_Set.SuspendLayout();
             this.statusStrip1.SuspendLayout();
             this.groupBox1.SuspendLayout();
@@ -386,6 +388,7 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox5.SuspendLayout();
             this.groupBox4.SuspendLayout();
             this.tabPage_OBC.SuspendLayout();
+            this.groupBox26.SuspendLayout();
             this.groupBox15.SuspendLayout();
             this.groupBox14.SuspendLayout();
             this.groupBox13.SuspendLayout();
@@ -405,7 +408,6 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox20.SuspendLayout();
             this.groupBox19.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
-            this.groupBox26.SuspendLayout();
             this.SuspendLayout();
             // 
             // menuStrip_Set
@@ -438,7 +440,7 @@ namespace Welling_Motor_Debug_Tool
             // 刷新ToolStripMenuItem
             // 
             this.刷新ToolStripMenuItem.Name = "刷新ToolStripMenuItem";
-            this.刷新ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.刷新ToolStripMenuItem.Size = new System.Drawing.Size(128, 26);
             this.刷新ToolStripMenuItem.Text = "刷新";
             this.刷新ToolStripMenuItem.Click += new System.EventHandler(this.刷新ToolStripMenuItem_Click);
             // 
@@ -447,7 +449,7 @@ namespace Welling_Motor_Debug_Tool
             this.端口号ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripComboBox_ComNum});
             this.端口号ToolStripMenuItem.Name = "端口号ToolStripMenuItem";
-            this.端口号ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.端口号ToolStripMenuItem.Size = new System.Drawing.Size(128, 26);
             this.端口号ToolStripMenuItem.Text = "端口号";
             // 
             // toolStripComboBox_ComNum
@@ -463,7 +465,7 @@ namespace Welling_Motor_Debug_Tool
             this.波特率ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.toolStripComboBox_Baudrate});
             this.波特率ToolStripMenuItem.Name = "波特率ToolStripMenuItem";
-            this.波特率ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.波特率ToolStripMenuItem.Size = new System.Drawing.Size(128, 26);
             this.波特率ToolStripMenuItem.Text = "波特率";
             // 
             // toolStripComboBox_Baudrate
@@ -481,7 +483,7 @@ namespace Welling_Motor_Debug_Tool
             // 连接ToolStripMenuItem
             // 
             this.连接ToolStripMenuItem.Name = "连接ToolStripMenuItem";
-            this.连接ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.连接ToolStripMenuItem.Size = new System.Drawing.Size(128, 26);
             this.连接ToolStripMenuItem.Text = "连接";
             this.连接ToolStripMenuItem.Click += new System.EventHandler(this.连接ToolStripMenuItem_Click);
             // 
@@ -504,6 +506,31 @@ namespace Welling_Motor_Debug_Tool
             this.写入存储ToolStripMenuItem.Text = "执行保存";
             this.写入存储ToolStripMenuItem.Click += new System.EventHandler(this.写入存储ToolStripMenuItem_Click);
             // 
+            // 带载类型ToolStripMenuItem
+            // 
+            this.带载类型ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+            this.空载ToolStripMenuItem,
+            this.带载ToolStripMenuItem});
+            this.带载类型ToolStripMenuItem.Name = "带载类型ToolStripMenuItem";
+            this.带载类型ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.带载类型ToolStripMenuItem.Text = "带载类型";
+            // 
+            // 空载ToolStripMenuItem
+            // 
+            this.空载ToolStripMenuItem.Name = "空载ToolStripMenuItem";
+            this.空载ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.空载ToolStripMenuItem.Text = "空载";
+            this.空载ToolStripMenuItem.Click += new System.EventHandler(this.空载ToolStripMenuItem_Click);
+            // 
+            // 带载ToolStripMenuItem
+            // 
+            this.带载ToolStripMenuItem.Checked = true;
+            this.带载ToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
+            this.带载ToolStripMenuItem.Name = "带载ToolStripMenuItem";
+            this.带载ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.带载ToolStripMenuItem.Text = "带载";
+            this.带载ToolStripMenuItem.Click += new System.EventHandler(this.带载ToolStripMenuItem_Click);
+            // 
             // 工具箱ToolStripMenuItem
             // 
             this.工具箱ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -518,21 +545,21 @@ namespace Welling_Motor_Debug_Tool
             // 记录数据ToolStripMenuItem
             // 
             this.记录数据ToolStripMenuItem.Name = "记录数据ToolStripMenuItem";
-            this.记录数据ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.记录数据ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
             this.记录数据ToolStripMenuItem.Text = "记录数据";
             this.记录数据ToolStripMenuItem.Click += new System.EventHandler(this.记录数据ToolStripMenuItem_Click);
             // 
             // 计算器ToolStripMenuItem
             // 
             this.计算器ToolStripMenuItem.Name = "计算器ToolStripMenuItem";
-            this.计算器ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.计算器ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
             this.计算器ToolStripMenuItem.Text = "计算器";
             this.计算器ToolStripMenuItem.Click += new System.EventHandler(this.计算器ToolStripMenuItem_Click);
             // 
             // 页面保存ToolStripMenuItem
             // 
             this.页面保存ToolStripMenuItem.Name = "页面保存ToolStripMenuItem";
-            this.页面保存ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.页面保存ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
             this.页面保存ToolStripMenuItem.Text = "页面保存";
             this.页面保存ToolStripMenuItem.Click += new System.EventHandler(this.页面保存ToolStripMenuItem_Click);
             // 
@@ -549,13 +576,13 @@ namespace Welling_Motor_Debug_Tool
             // 帮助ToolStripMenuItem
             // 
             this.帮助ToolStripMenuItem.Name = "帮助ToolStripMenuItem";
-            this.帮助ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.帮助ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
             this.帮助ToolStripMenuItem.Text = "查看帮助";
             // 
             // 版本ToolStripMenuItem
             // 
             this.版本ToolStripMenuItem.Name = "版本ToolStripMenuItem";
-            this.版本ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
+            this.版本ToolStripMenuItem.Size = new System.Drawing.Size(144, 26);
             this.版本ToolStripMenuItem.Text = "版本信息";
             // 
             // statusStrip1
@@ -608,7 +635,7 @@ namespace Welling_Motor_Debug_Tool
             this.numericUpDown_SpeedAdj.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
             this.numericUpDown_SpeedAdj.Location = new System.Drawing.Point(85, 148);
             this.numericUpDown_SpeedAdj.Minimum = new decimal(new int[] {
-            5,
+            2,
             0,
             0,
             0});
@@ -618,7 +645,7 @@ namespace Welling_Motor_Debug_Tool
             this.numericUpDown_SpeedAdj.TabIndex = 5;
             this.numericUpDown_SpeedAdj.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             this.numericUpDown_SpeedAdj.Value = new decimal(new int[] {
-            5,
+            2,
             0,
             0,
             0});
@@ -709,6 +736,8 @@ namespace Welling_Motor_Debug_Tool
             // 
             // groupBox2
             // 
+            this.groupBox2.Controls.Add(this.textBox_TorqueReg);
+            this.groupBox2.Controls.Add(this.label55);
             this.groupBox2.Controls.Add(this.textBox_ErrorCode);
             this.groupBox2.Controls.Add(this.textBox_RunInfo_Trip_Time);
             this.groupBox2.Controls.Add(this.textBox_RunInfo_Range);
@@ -757,7 +786,7 @@ namespace Welling_Motor_Debug_Tool
             // textBox_ErrorCode
             // 
             this.textBox_ErrorCode.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.textBox_ErrorCode.Location = new System.Drawing.Point(721, 107);
+            this.textBox_ErrorCode.Location = new System.Drawing.Point(721, 147);
             this.textBox_ErrorCode.Name = "textBox_ErrorCode";
             this.textBox_ErrorCode.ReadOnly = true;
             this.textBox_ErrorCode.Size = new System.Drawing.Size(90, 28);
@@ -929,7 +958,7 @@ namespace Welling_Motor_Debug_Tool
             // label28
             // 
             this.label28.AutoSize = true;
-            this.label28.Location = new System.Drawing.Point(641, 111);
+            this.label28.Location = new System.Drawing.Point(641, 151);
             this.label28.Name = "label28";
             this.label28.Size = new System.Drawing.Size(58, 21);
             this.label28.TabIndex = 0;
@@ -2282,6 +2311,87 @@ namespace Welling_Motor_Debug_Tool
             this.tabPage_OBC.TabIndex = 8;
             this.tabPage_OBC.Text = "模拟仪表";
             // 
+            // groupBox26
+            // 
+            this.groupBox26.Controls.Add(this.button_OBC_ButtonSet);
+            this.groupBox26.Controls.Add(this.button_OBC_ButtonLight);
+            this.groupBox26.Controls.Add(this.button_OBC_ButtonWalk);
+            this.groupBox26.Controls.Add(this.button_OBC_ButtonDec);
+            this.groupBox26.Controls.Add(this.button_OBC_ButtonAcc);
+            this.groupBox26.Controls.Add(this.button_OBC_ButtonPower);
+            this.groupBox26.Location = new System.Drawing.Point(212, 4);
+            this.groupBox26.Name = "groupBox26";
+            this.groupBox26.Size = new System.Drawing.Size(97, 305);
+            this.groupBox26.TabIndex = 14;
+            this.groupBox26.TabStop = false;
+            this.groupBox26.Text = "按键状态";
+            // 
+            // button_OBC_ButtonSet
+            // 
+            this.button_OBC_ButtonSet.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
+            this.button_OBC_ButtonSet.Location = new System.Drawing.Point(14, 225);
+            this.button_OBC_ButtonSet.Name = "button_OBC_ButtonSet";
+            this.button_OBC_ButtonSet.Size = new System.Drawing.Size(70, 35);
+            this.button_OBC_ButtonSet.TabIndex = 20;
+            this.button_OBC_ButtonSet.Text = "Set";
+            this.button_OBC_ButtonSet.UseVisualStyleBackColor = false;
+            this.button_OBC_ButtonSet.Click += new System.EventHandler(this.button_OBC_ButtonSet_Click);
+            // 
+            // button_OBC_ButtonLight
+            // 
+            this.button_OBC_ButtonLight.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
+            this.button_OBC_ButtonLight.Location = new System.Drawing.Point(14, 185);
+            this.button_OBC_ButtonLight.Name = "button_OBC_ButtonLight";
+            this.button_OBC_ButtonLight.Size = new System.Drawing.Size(70, 35);
+            this.button_OBC_ButtonLight.TabIndex = 19;
+            this.button_OBC_ButtonLight.Text = "Light";
+            this.button_OBC_ButtonLight.UseVisualStyleBackColor = false;
+            this.button_OBC_ButtonLight.Click += new System.EventHandler(this.button_OBC_ButtonLight_Click);
+            // 
+            // button_OBC_ButtonWalk
+            // 
+            this.button_OBC_ButtonWalk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
+            this.button_OBC_ButtonWalk.Location = new System.Drawing.Point(14, 145);
+            this.button_OBC_ButtonWalk.Name = "button_OBC_ButtonWalk";
+            this.button_OBC_ButtonWalk.Size = new System.Drawing.Size(70, 35);
+            this.button_OBC_ButtonWalk.TabIndex = 18;
+            this.button_OBC_ButtonWalk.Text = "Walk";
+            this.button_OBC_ButtonWalk.UseVisualStyleBackColor = false;
+            this.button_OBC_ButtonWalk.Click += new System.EventHandler(this.button_OBC_ButtonWalk_Click);
+            // 
+            // button_OBC_ButtonDec
+            // 
+            this.button_OBC_ButtonDec.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
+            this.button_OBC_ButtonDec.Location = new System.Drawing.Point(14, 105);
+            this.button_OBC_ButtonDec.Name = "button_OBC_ButtonDec";
+            this.button_OBC_ButtonDec.Size = new System.Drawing.Size(70, 35);
+            this.button_OBC_ButtonDec.TabIndex = 17;
+            this.button_OBC_ButtonDec.Text = "-";
+            this.button_OBC_ButtonDec.UseVisualStyleBackColor = false;
+            this.button_OBC_ButtonDec.Click += new System.EventHandler(this.button_OBC_ButtonDec_Click);
+            // 
+            // button_OBC_ButtonAcc
+            // 
+            this.button_OBC_ButtonAcc.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
+            this.button_OBC_ButtonAcc.Location = new System.Drawing.Point(14, 65);
+            this.button_OBC_ButtonAcc.Name = "button_OBC_ButtonAcc";
+            this.button_OBC_ButtonAcc.Size = new System.Drawing.Size(70, 35);
+            this.button_OBC_ButtonAcc.TabIndex = 16;
+            this.button_OBC_ButtonAcc.Text = "+";
+            this.button_OBC_ButtonAcc.UseVisualStyleBackColor = false;
+            this.button_OBC_ButtonAcc.Click += new System.EventHandler(this.button_OBC_ButtonAcc_Click);
+            // 
+            // button_OBC_ButtonPower
+            // 
+            this.button_OBC_ButtonPower.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
+            this.button_OBC_ButtonPower.Location = new System.Drawing.Point(14, 25);
+            this.button_OBC_ButtonPower.Name = "button_OBC_ButtonPower";
+            this.button_OBC_ButtonPower.Size = new System.Drawing.Size(70, 35);
+            this.button_OBC_ButtonPower.TabIndex = 15;
+            this.button_OBC_ButtonPower.Text = "Power";
+            this.button_OBC_ButtonPower.UseVisualStyleBackColor = false;
+            this.button_OBC_ButtonPower.Click += new System.EventHandler(this.button_OBC_ButtonPower_Click);
+            // 
             // groupBox15
             // 
             this.groupBox15.Controls.Add(this.textBox_OBC_ODO_TIME);
@@ -2796,7 +2906,7 @@ namespace Welling_Motor_Debug_Tool
             this.tabPage_RAMorFLASH.Controls.Add(this.richTextBox_RamFlasgData);
             this.tabPage_RAMorFLASH.Location = new System.Drawing.Point(4, 30);
             this.tabPage_RAMorFLASH.Name = "tabPage_RAMorFLASH";
-            this.tabPage_RAMorFLASH.Size = new System.Drawing.Size(937, 315);
+            this.tabPage_RAMorFLASH.Size = new System.Drawing.Size(990, 315);
             this.tabPage_RAMorFLASH.TabIndex = 9;
             this.tabPage_RAMorFLASH.Text = "存储器读取";
             // 
@@ -2875,14 +2985,25 @@ namespace Welling_Motor_Debug_Tool
             this.tabPage_FactoryMode.TabIndex = 10;
             this.tabPage_FactoryMode.Text = "生产模式";
             // 
+            // Button_FacModePowerOff
+            // 
+            this.Button_FacModePowerOff.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
+            this.Button_FacModePowerOff.Location = new System.Drawing.Point(812, 249);
+            this.Button_FacModePowerOff.Name = "Button_FacModePowerOff";
+            this.Button_FacModePowerOff.Size = new System.Drawing.Size(85, 60);
+            this.Button_FacModePowerOff.TabIndex = 33;
+            this.Button_FacModePowerOff.Text = "关机";
+            this.Button_FacModePowerOff.UseVisualStyleBackColor = false;
+            this.Button_FacModePowerOff.Click += new System.EventHandler(this.Button_FacModePowerOff_Click);
+            // 
             // Button_FacModeSaveResult
             // 
             this.Button_FacModeSaveResult.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
             this.Button_FacModeSaveResult.Location = new System.Drawing.Point(901, 249);
             this.Button_FacModeSaveResult.Name = "Button_FacModeSaveResult";
-            this.Button_FacModeSaveResult.Size = new System.Drawing.Size(80, 60);
+            this.Button_FacModeSaveResult.Size = new System.Drawing.Size(85, 60);
             this.Button_FacModeSaveResult.TabIndex = 1;
-            this.Button_FacModeSaveResult.Text = "存储\r\n页面";
+            this.Button_FacModeSaveResult.Text = "存\r\n页面";
             this.Button_FacModeSaveResult.UseVisualStyleBackColor = false;
             this.Button_FacModeSaveResult.Click += new System.EventHandler(this.Button_FacModeSaveResult_Click);
             // 
@@ -2891,9 +3012,9 @@ namespace Welling_Motor_Debug_Tool
             this.Button_FacModeSetMacDate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
             this.Button_FacModeSetMacDate.Location = new System.Drawing.Point(723, 248);
             this.Button_FacModeSetMacDate.Name = "Button_FacModeSetMacDate";
-            this.Button_FacModeSetMacDate.Size = new System.Drawing.Size(80, 60);
+            this.Button_FacModeSetMacDate.Size = new System.Drawing.Size(85, 60);
             this.Button_FacModeSetMacDate.TabIndex = 33;
-            this.Button_FacModeSetMacDate.Text = "生产\r\n日期";
+            this.Button_FacModeSetMacDate.Text = "写入\r\n生产日期";
             this.Button_FacModeSetMacDate.UseVisualStyleBackColor = false;
             this.Button_FacModeSetMacDate.Click += new System.EventHandler(this.Button_FacModeSetMacDate_Click);
             // 
@@ -3421,7 +3542,7 @@ namespace Welling_Motor_Debug_Tool
             this.label_FacModeMotorSpeedSet.Name = "label_FacModeMotorSpeedSet";
             this.label_FacModeMotorSpeedSet.Size = new System.Drawing.Size(26, 17);
             this.label_FacModeMotorSpeedSet.TabIndex = 19;
-            this.label_FacModeMotorSpeedSet.Text = "5%";
+            this.label_FacModeMotorSpeedSet.Text = "2%";
             this.label_FacModeMotorSpeedSet.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             // 
             // label67
@@ -3438,12 +3559,12 @@ namespace Welling_Motor_Debug_Tool
             // 
             this.trackBar_FacModeMotorSpeedAdj.Location = new System.Drawing.Point(6, 153);
             this.trackBar_FacModeMotorSpeedAdj.Maximum = 100;
-            this.trackBar_FacModeMotorSpeedAdj.Minimum = 5;
+            this.trackBar_FacModeMotorSpeedAdj.Minimum = 2;
             this.trackBar_FacModeMotorSpeedAdj.Name = "trackBar_FacModeMotorSpeedAdj";
             this.trackBar_FacModeMotorSpeedAdj.Size = new System.Drawing.Size(181, 45);
             this.trackBar_FacModeMotorSpeedAdj.TabIndex = 17;
             this.trackBar_FacModeMotorSpeedAdj.TickStyle = System.Windows.Forms.TickStyle.Both;
-            this.trackBar_FacModeMotorSpeedAdj.Value = 5;
+            this.trackBar_FacModeMotorSpeedAdj.Value = 2;
             this.trackBar_FacModeMotorSpeedAdj.ValueChanged += new System.EventHandler(this.trackBar_FacModeMotorSpeedAdj_ValueChanged);
             // 
             // button_FacModeMotorRun
@@ -3691,7 +3812,7 @@ namespace Welling_Motor_Debug_Tool
             this.textBox_FacModeSensorCal4.Name = "textBox_FacModeSensorCal4";
             this.textBox_FacModeSensorCal4.Size = new System.Drawing.Size(47, 28);
             this.textBox_FacModeSensorCal4.TabIndex = 5;
-            this.textBox_FacModeSensorCal4.Text = "96";
+            this.textBox_FacModeSensorCal4.Text = "100";
             this.textBox_FacModeSensorCal4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             // 
             // textBox_FacModeSensorCal3
@@ -3701,7 +3822,7 @@ namespace Welling_Motor_Debug_Tool
             this.textBox_FacModeSensorCal3.Name = "textBox_FacModeSensorCal3";
             this.textBox_FacModeSensorCal3.Size = new System.Drawing.Size(47, 28);
             this.textBox_FacModeSensorCal3.TabIndex = 4;
-            this.textBox_FacModeSensorCal3.Text = "72";
+            this.textBox_FacModeSensorCal3.Text = "75";
             this.textBox_FacModeSensorCal3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             // 
             // textBox_FacModeSensorCal1
@@ -3711,7 +3832,7 @@ namespace Welling_Motor_Debug_Tool
             this.textBox_FacModeSensorCal1.Name = "textBox_FacModeSensorCal1";
             this.textBox_FacModeSensorCal1.Size = new System.Drawing.Size(47, 28);
             this.textBox_FacModeSensorCal1.TabIndex = 3;
-            this.textBox_FacModeSensorCal1.Text = "24";
+            this.textBox_FacModeSensorCal1.Text = "25";
             this.textBox_FacModeSensorCal1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             // 
             // textBox_FacModeSensorCal2
@@ -3721,7 +3842,7 @@ namespace Welling_Motor_Debug_Tool
             this.textBox_FacModeSensorCal2.Name = "textBox_FacModeSensorCal2";
             this.textBox_FacModeSensorCal2.Size = new System.Drawing.Size(47, 28);
             this.textBox_FacModeSensorCal2.TabIndex = 2;
-            this.textBox_FacModeSensorCal2.Text = "48";
+            this.textBox_FacModeSensorCal2.Text = "50";
             this.textBox_FacModeSensorCal2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             // 
             // groupBox19
@@ -3854,120 +3975,23 @@ namespace Welling_Motor_Debug_Tool
             this.pictureBox2.TabIndex = 16;
             this.pictureBox2.TabStop = false;
             // 
-            // Button_FacModePowerOff
+            // textBox_TorqueReg
             // 
-            this.Button_FacModePowerOff.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.Button_FacModePowerOff.Location = new System.Drawing.Point(812, 249);
-            this.Button_FacModePowerOff.Name = "Button_FacModePowerOff";
-            this.Button_FacModePowerOff.Size = new System.Drawing.Size(80, 60);
-            this.Button_FacModePowerOff.TabIndex = 33;
-            this.Button_FacModePowerOff.Text = "关机";
-            this.Button_FacModePowerOff.UseVisualStyleBackColor = false;
-            this.Button_FacModePowerOff.Click += new System.EventHandler(this.Button_FacModePowerOff_Click);
+            this.textBox_TorqueReg.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.textBox_TorqueReg.Location = new System.Drawing.Point(721, 107);
+            this.textBox_TorqueReg.Name = "textBox_TorqueReg";
+            this.textBox_TorqueReg.ReadOnly = true;
+            this.textBox_TorqueReg.Size = new System.Drawing.Size(90, 28);
+            this.textBox_TorqueReg.TabIndex = 3;
             // 
-            // groupBox26
+            // label55
             // 
-            this.groupBox26.Controls.Add(this.button_OBC_ButtonSet);
-            this.groupBox26.Controls.Add(this.button_OBC_ButtonLight);
-            this.groupBox26.Controls.Add(this.button_OBC_ButtonWalk);
-            this.groupBox26.Controls.Add(this.button_OBC_ButtonDec);
-            this.groupBox26.Controls.Add(this.button_OBC_ButtonAcc);
-            this.groupBox26.Controls.Add(this.button_OBC_ButtonPower);
-            this.groupBox26.Location = new System.Drawing.Point(212, 4);
-            this.groupBox26.Name = "groupBox26";
-            this.groupBox26.Size = new System.Drawing.Size(97, 305);
-            this.groupBox26.TabIndex = 14;
-            this.groupBox26.TabStop = false;
-            this.groupBox26.Text = "按键状态";
-            // 
-            // button_OBC_ButtonPower
-            // 
-            this.button_OBC_ButtonPower.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_OBC_ButtonPower.Location = new System.Drawing.Point(14, 25);
-            this.button_OBC_ButtonPower.Name = "button_OBC_ButtonPower";
-            this.button_OBC_ButtonPower.Size = new System.Drawing.Size(70, 35);
-            this.button_OBC_ButtonPower.TabIndex = 15;
-            this.button_OBC_ButtonPower.Text = "Power";
-            this.button_OBC_ButtonPower.UseVisualStyleBackColor = false;
-            this.button_OBC_ButtonPower.Click += new System.EventHandler(this.button_OBC_ButtonPower_Click);
-            // 
-            // button_OBC_ButtonAcc
-            // 
-            this.button_OBC_ButtonAcc.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_OBC_ButtonAcc.Location = new System.Drawing.Point(14, 65);
-            this.button_OBC_ButtonAcc.Name = "button_OBC_ButtonAcc";
-            this.button_OBC_ButtonAcc.Size = new System.Drawing.Size(70, 35);
-            this.button_OBC_ButtonAcc.TabIndex = 16;
-            this.button_OBC_ButtonAcc.Text = "+";
-            this.button_OBC_ButtonAcc.UseVisualStyleBackColor = false;
-            this.button_OBC_ButtonAcc.Click += new System.EventHandler(this.button_OBC_ButtonAcc_Click);
-            // 
-            // button_OBC_ButtonDec
-            // 
-            this.button_OBC_ButtonDec.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_OBC_ButtonDec.Location = new System.Drawing.Point(14, 105);
-            this.button_OBC_ButtonDec.Name = "button_OBC_ButtonDec";
-            this.button_OBC_ButtonDec.Size = new System.Drawing.Size(70, 35);
-            this.button_OBC_ButtonDec.TabIndex = 17;
-            this.button_OBC_ButtonDec.Text = "-";
-            this.button_OBC_ButtonDec.UseVisualStyleBackColor = false;
-            this.button_OBC_ButtonDec.Click += new System.EventHandler(this.button_OBC_ButtonDec_Click);
-            // 
-            // button_OBC_ButtonWalk
-            // 
-            this.button_OBC_ButtonWalk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_OBC_ButtonWalk.Location = new System.Drawing.Point(14, 145);
-            this.button_OBC_ButtonWalk.Name = "button_OBC_ButtonWalk";
-            this.button_OBC_ButtonWalk.Size = new System.Drawing.Size(70, 35);
-            this.button_OBC_ButtonWalk.TabIndex = 18;
-            this.button_OBC_ButtonWalk.Text = "Walk";
-            this.button_OBC_ButtonWalk.UseVisualStyleBackColor = false;
-            this.button_OBC_ButtonWalk.Click += new System.EventHandler(this.button_OBC_ButtonWalk_Click);
-            // 
-            // button_OBC_ButtonLight
-            // 
-            this.button_OBC_ButtonLight.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_OBC_ButtonLight.Location = new System.Drawing.Point(14, 185);
-            this.button_OBC_ButtonLight.Name = "button_OBC_ButtonLight";
-            this.button_OBC_ButtonLight.Size = new System.Drawing.Size(70, 35);
-            this.button_OBC_ButtonLight.TabIndex = 19;
-            this.button_OBC_ButtonLight.Text = "Light";
-            this.button_OBC_ButtonLight.UseVisualStyleBackColor = false;
-            this.button_OBC_ButtonLight.Click += new System.EventHandler(this.button_OBC_ButtonLight_Click);
-            // 
-            // button_OBC_ButtonSet
-            // 
-            this.button_OBC_ButtonSet.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
-            this.button_OBC_ButtonSet.Location = new System.Drawing.Point(14, 225);
-            this.button_OBC_ButtonSet.Name = "button_OBC_ButtonSet";
-            this.button_OBC_ButtonSet.Size = new System.Drawing.Size(70, 35);
-            this.button_OBC_ButtonSet.TabIndex = 20;
-            this.button_OBC_ButtonSet.Text = "Set";
-            this.button_OBC_ButtonSet.UseVisualStyleBackColor = false;
-            this.button_OBC_ButtonSet.Click += new System.EventHandler(this.button_OBC_ButtonSet_Click);
-            // 
-            // 带载类型ToolStripMenuItem
-            // 
-            this.带载类型ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
-            this.空载ToolStripMenuItem,
-            this.带载ToolStripMenuItem});
-            this.带载类型ToolStripMenuItem.Name = "带载类型ToolStripMenuItem";
-            this.带载类型ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
-            this.带载类型ToolStripMenuItem.Text = "带载类型";
-            // 
-            // 空载ToolStripMenuItem
-            // 
-            this.空载ToolStripMenuItem.Name = "空载ToolStripMenuItem";
-            this.空载ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
-            this.空载ToolStripMenuItem.Text = "空载";
-            this.空载ToolStripMenuItem.Click += new System.EventHandler(this.空载ToolStripMenuItem_Click);
-            // 
-            // 带载ToolStripMenuItem
-            // 
-            this.带载ToolStripMenuItem.Name = "带载ToolStripMenuItem";
-            this.带载ToolStripMenuItem.Size = new System.Drawing.Size(180, 26);
-            this.带载ToolStripMenuItem.Text = "带载";
-            this.带载ToolStripMenuItem.Click += new System.EventHandler(this.带载ToolStripMenuItem_Click);
+            this.label55.AutoSize = true;
+            this.label55.Location = new System.Drawing.Point(641, 111);
+            this.label55.Name = "label55";
+            this.label55.Size = new System.Drawing.Size(71, 21);
+            this.label55.TabIndex = 2;
+            this.label55.Text = "力矩Reg";
             // 
             // Form1
             // 
@@ -3997,7 +4021,7 @@ namespace Welling_Motor_Debug_Tool
             this.MaximizeBox = false;
             this.Name = "Form1";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.Text = "Welling中置电机调试工具V1.2.0";
+            this.Text = "Welling中置电机调试工具V1.2.1";
             this.Load += new System.EventHandler(this.Form1_Load);
             this.menuStrip_Set.ResumeLayout(false);
             this.menuStrip_Set.PerformLayout();
@@ -4038,6 +4062,7 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox4.ResumeLayout(false);
             this.groupBox4.PerformLayout();
             this.tabPage_OBC.ResumeLayout(false);
+            this.groupBox26.ResumeLayout(false);
             this.groupBox15.ResumeLayout(false);
             this.groupBox15.PerformLayout();
             this.groupBox14.ResumeLayout(false);
@@ -4069,7 +4094,6 @@ namespace Welling_Motor_Debug_Tool
             this.groupBox20.PerformLayout();
             this.groupBox19.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
-            this.groupBox26.ResumeLayout(false);
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -4405,5 +4429,7 @@ namespace Welling_Motor_Debug_Tool
         private ToolStripMenuItem 带载类型ToolStripMenuItem;
         private ToolStripMenuItem 空载ToolStripMenuItem;
         private ToolStripMenuItem 带载ToolStripMenuItem;
+        private TextBox textBox_TorqueReg;
+        private Label label55;
     }
 }

+ 13 - 10
Welling_Motor_Debug_Tool/Form1.cs

@@ -296,7 +296,9 @@ namespace Welling_Motor_Debug_Tool
                                     {
                                         textBox_RunInfo_Range.Text = Convert.ToString(DataTemp) + " km";
                                     }
-                                    //预留,空2bytes                                    
+                                    //预留(显示力矩Reg),空2bytes
+                                    DataTemp = (ushort)(Data[19] * 256 + Data[18]);
+                                    textBox_TorqueReg.Text = Convert.ToString(DataTemp);
                                     //平均功耗
                                     DataTemp = (ushort)(Data[20]);
                                     textBox_RunInfo_AvgPower.Text = Convert.ToString(DataTemp * 10) + " mAh/km";
@@ -567,7 +569,7 @@ namespace Welling_Motor_Debug_Tool
                                         }
                                         textBox_Model.Text += ((char)Data[i]).ToString();
                                         textBox_OBC_ReadModel.Text += ((char)Data[i]).ToString();
-                                        textBox_FacModeName.Text += ((char)Data[i]).ToString(); ;
+                                        textBox_FacModeName.Text += ((char)Data[i]).ToString();
                                     }
                                     Class_Motor_Ver.Mode = textBox_Model.Text;
 
@@ -2725,16 +2727,16 @@ namespace Welling_Motor_Debug_Tool
 
             if (!MotorRunStatus) //停止状态
             { 
-                //设置电机调试参数
-                strDataTemp[0] = "整体运行模式=3";
                 //设置电机系列
                 if (radioButton_FacModeDriverCity.Checked == true)
                 {
+                    strDataTemp[0] = "整体运行模式=3";
                     strDataTemp[3] = "旋转方向=1";
                     strDataTemp[18] = "惯量=300";
                 }
                 else if (radioButton_FacModeDriverMtb.Checked == true)
                 {
+                    strDataTemp[0] = "整体运行模式=3";
                     strDataTemp[3] = "旋转方向=0";
                     strDataTemp[18] = "惯量=500";
                 }
@@ -2780,7 +2782,7 @@ namespace Welling_Motor_Debug_Tool
                     timer_1s.Enabled = true;
                 }
 
-                //设置转速百分比50%
+                //设置转速百分比100%
                 trackBar_FacModeMotorSpeedAdj.Value = 100;
                 MotorRunStatus = !MotorRunStatus;
                 button_FacModeMotorRun.BackColor = Color.Yellow;
@@ -2795,15 +2797,16 @@ namespace Welling_Motor_Debug_Tool
             else //运转状态
             {
                 //设置电机调试参数
-                strDataTemp[0] = "整体运行模式=5";
                 if (radioButton_FacModeDriverCity.Checked == true)
                 {
+                    strDataTemp[0] = "整体运行模式=4";
                     strDataTemp[3] = "旋转方向=1";
                     strDataTemp[10] = "转速环控制器带宽=15";
                     strDataTemp[18] = "惯量=300";
                 }
                 else if (radioButton_FacModeDriverMtb.Checked == true)
                 {
+                    strDataTemp[0] = "整体运行模式=5";
                     strDataTemp[3] = "旋转方向=0";
                     strDataTemp[10] = "转速环控制器带宽=15";
                     strDataTemp[18] = "惯量=500";
@@ -2834,8 +2837,8 @@ namespace Welling_Motor_Debug_Tool
                     timer_1s.Enabled = true;
                 }
 
-                //设置转速百分比50%
-                trackBar_FacModeMotorSpeedAdj.Value = 5;
+                //设置转速百分比2%
+                trackBar_FacModeMotorSpeedAdj.Value = 2;
                 MotorRunStatus = !MotorRunStatus;
                 button_FacModeMotorRun.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
 
@@ -3168,8 +3171,8 @@ namespace Welling_Motor_Debug_Tool
         private void Button_FacModeSetMacDate_Click(object sender, EventArgs e)
         {
             var MACArray = new byte[32];
-            string MacDefaultInfo = "Welling";
-            string MacAddDefaultInfo = "Shunde";
+            string MacDefaultInfo = "TTIUM";
+            string MacAddDefaultInfo = "WUHAN";
             string MacDateDefaultInfo = DateTime.Now.ToString("yyyyMMdd");
             string MacPPDefaultInfo = "MM_MC1";
 

BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool.exe


BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool.pdb


BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool_202303311000.exe


BIN
Welling_Motor_Debug_Tool/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.csproj.GenerateResource.cache


BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.exe


BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.pdb