Browse Source

模拟仪表启动发送数据时,若串口未连接直接停止,避免重复提示。

hero 3 years ago
parent
commit
5db5917484

BIN
.vs/Welling_Motor_Debug_Tool/v17/.suo


+ 13 - 11
Welling_Motor_Debug_Tool/Form1.Designer.cs

@@ -125,6 +125,7 @@ namespace Welling_Motor_Debug_Tool
             this.button_ReadSensorParam = new System.Windows.Forms.Button();
             this.richTextBox_SensorParam = new System.Windows.Forms.RichTextBox();
             this.tabPage_AssistParam = new System.Windows.Forms.TabPage();
+            this.label62 = new System.Windows.Forms.Label();
             this.label47 = new System.Windows.Forms.Label();
             this.comboBox_AssistTorque = new System.Windows.Forms.ComboBox();
             this.comboBox_AssistCadence = new System.Windows.Forms.ComboBox();
@@ -246,7 +247,6 @@ namespace Welling_Motor_Debug_Tool
             this.label44 = new System.Windows.Forms.Label();
             this.label45 = new System.Windows.Forms.Label();
             this.label46 = new System.Windows.Forms.Label();
-            this.label62 = new System.Windows.Forms.Label();
             this.menuStrip_Set.SuspendLayout();
             this.statusStrip1.SuspendLayout();
             this.groupBox1.SuspendLayout();
@@ -483,8 +483,9 @@ namespace Welling_Motor_Debug_Tool
             this.numericUpDown_SpeedAdj.ReadOnly = true;
             this.numericUpDown_SpeedAdj.Size = new System.Drawing.Size(59, 28);
             this.numericUpDown_SpeedAdj.TabIndex = 5;
+            this.numericUpDown_SpeedAdj.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             this.numericUpDown_SpeedAdj.Value = new decimal(new int[] {
-            100,
+            5,
             0,
             0,
             0});
@@ -1253,6 +1254,14 @@ namespace Welling_Motor_Debug_Tool
             this.tabPage_AssistParam.TabIndex = 4;
             this.tabPage_AssistParam.Text = "助力参数";
             // 
+            // label62
+            // 
+            this.label62.BackColor = System.Drawing.Color.Silver;
+            this.label62.Location = new System.Drawing.Point(808, 237);
+            this.label62.Name = "label62";
+            this.label62.Size = new System.Drawing.Size(112, 1);
+            this.label62.TabIndex = 10;
+            // 
             // label47
             // 
             this.label47.AutoSize = true;
@@ -2241,6 +2250,7 @@ namespace Welling_Motor_Debug_Tool
             this.numericUpDown_OBC_WheelAdj.ReadOnly = true;
             this.numericUpDown_OBC_WheelAdj.Size = new System.Drawing.Size(72, 28);
             this.numericUpDown_OBC_WheelAdj.TabIndex = 7;
+            this.numericUpDown_OBC_WheelAdj.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
             // 
             // label59
             // 
@@ -2567,14 +2577,6 @@ namespace Welling_Motor_Debug_Tool
             this.label46.Size = new System.Drawing.Size(1, 15);
             this.label46.TabIndex = 15;
             // 
-            // label62
-            // 
-            this.label62.BackColor = System.Drawing.Color.Silver;
-            this.label62.Location = new System.Drawing.Point(808, 237);
-            this.label62.Name = "label62";
-            this.label62.Size = new System.Drawing.Size(112, 1);
-            this.label62.TabIndex = 10;
-            // 
             // Form1
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
@@ -2603,7 +2605,7 @@ namespace Welling_Motor_Debug_Tool
             this.MaximizeBox = false;
             this.Name = "Form1";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.Text = "Welling中置电机调试工具V1.0.4";
+            this.Text = "Welling中置电机调试工具V1.0.5";
             this.Load += new System.EventHandler(this.Form1_Load);
             this.menuStrip_Set.ResumeLayout(false);
             this.menuStrip_Set.PerformLayout();

+ 9 - 0
Welling_Motor_Debug_Tool/Form1.cs

@@ -1908,6 +1908,15 @@ namespace Welling_Motor_Debug_Tool
         {
             if (checkBox_OBC_StartSetGearSt.Checked == true)
             {
+                //检查串口是否打开
+                if (!mySerialProcess.mySerial.IsOpen)
+                {
+                    timer_1s.Enabled = false;
+                    MessageBox.Show("请先连接串口!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+                    timer_1s.Enabled = true;
+                    checkBox_OBC_StartSetGearSt.Checked = false;
+                    return;
+                }
                 //检查是否选择档位和打开车灯
                 if ((comboBox_OBC_SetGearST.SelectedIndex == -1) || (comboBox_OBC_LightSw.SelectedIndex == -1))
                 {

BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool.pdb


BIN
Welling_Motor_Debug_Tool/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


BIN
Welling_Motor_Debug_Tool/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll


+ 11 - 0
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.csproj.FileListAbsolute.txt

@@ -20,3 +20,14 @@ D:\SoftDesign\20171216_PC_MortorTest\MOTINOVA_MC_Test\Welling_Motor_Debug_Tool\W
 D:\SoftDesign\20171216_PC_MortorTest\MOTINOVA_MC_Test\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.csproj.CoreCompileInputs.cache
 D:\SoftDesign\20171216_PC_MortorTest\MOTINOVA_MC_Test\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.exe
 D:\SoftDesign\20171216_PC_MortorTest\MOTINOVA_MC_Test\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.pdb
+D:\Work\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\bin\Debug\Welling_Motor_Debug_Tool.exe.config
+D:\Work\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\bin\Debug\Welling_Motor_Debug_Tool.exe
+D:\Work\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\bin\Debug\Welling_Motor_Debug_Tool.pdb
+D:\Work\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.csproj.AssemblyReference.cache
+D:\Work\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.csproj.SuggestedBindingRedirects.cache
+D:\Work\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.Form1.resources
+D:\Work\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.Properties.Resources.resources
+D:\Work\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.csproj.GenerateResource.cache
+D:\Work\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.csproj.CoreCompileInputs.cache
+D:\Work\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.exe
+D:\Work\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.pdb

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