增加变倍布局

This commit is contained in:
uu
2025-06-20 11:50:08 +08:00
parent 8e3a476e9b
commit 0f2fd7d486
11 changed files with 2303 additions and 43 deletions

View File

@@ -165,6 +165,13 @@
this.label2 = new System.Windows.Forms.Label();
this.button3 = new System.Windows.Forms.Button();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.label31 = new System.Windows.Forms.Label();
this.label30 = new System.Windows.Forms.Label();
this.label29 = new System.Windows.Forms.Label();
this.label28 = new System.Windows.Forms.Label();
this.button8 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label27 = new System.Windows.Forms.Label();
@@ -174,8 +181,12 @@
this.lbl_Refresh_ID = new System.Windows.Forms.Label();
this.tim_IO_Refresh = new System.Windows.Forms.Timer(this.components);
this.rit_Coord = new System.Windows.Forms.RichTextBox();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.button6 = new System.Windows.Forms.Button();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.button10 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.label32 = new System.Windows.Forms.Label();
this.label33 = new System.Windows.Forms.Label();
this.tac_MainForm.SuspendLayout();
this.tap_Axis.SuspendLayout();
this.grb_R.SuspendLayout();
@@ -198,9 +209,11 @@
this.grb_pos1.SuspendLayout();
this.grb_temport.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox4.SuspendLayout();
this.panel1.SuspendLayout();
this.groupBox5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.groupBox6.SuspendLayout();
this.SuspendLayout();
//
// btn_Init
@@ -1305,9 +1318,9 @@
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(540, 45);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(17, 18);
this.label18.Size = new System.Drawing.Size(26, 18);
this.label18.TabIndex = 9;
this.label18.Text = "0";
this.label18.Text = "--";
//
// button11
//
@@ -1349,9 +1362,9 @@
this.label21.AutoSize = true;
this.label21.Location = new System.Drawing.Point(116, 43);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(17, 18);
this.label21.Size = new System.Drawing.Size(26, 18);
this.label21.TabIndex = 1;
this.label21.Text = "0";
this.label21.Text = "--";
//
// label22
//
@@ -1401,9 +1414,9 @@
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(540, 42);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(17, 18);
this.label13.Size = new System.Drawing.Size(26, 18);
this.label13.TabIndex = 9;
this.label13.Text = "0";
this.label13.Text = "--";
//
// button9
//
@@ -1445,9 +1458,9 @@
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(116, 43);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(17, 18);
this.label16.Size = new System.Drawing.Size(26, 18);
this.label16.TabIndex = 1;
this.label16.Text = "0";
this.label16.Text = "--";
//
// label17
//
@@ -1498,9 +1511,9 @@
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(540, 44);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(17, 18);
this.label8.Size = new System.Drawing.Size(26, 18);
this.label8.TabIndex = 9;
this.label8.Text = "0";
this.label8.Text = "--";
//
// button7
//
@@ -1542,9 +1555,9 @@
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(116, 43);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(17, 18);
this.label11.Size = new System.Drawing.Size(26, 18);
this.label11.TabIndex = 1;
this.label11.Text = "0";
this.label11.Text = "--";
//
// label12
//
@@ -1595,9 +1608,9 @@
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(540, 43);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(17, 18);
this.label7.Size = new System.Drawing.Size(26, 18);
this.label7.TabIndex = 9;
this.label7.Text = "0";
this.label7.Text = "--";
//
// button4
//
@@ -1641,9 +1654,10 @@
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(116, 43);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(17, 18);
this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.label4.Size = new System.Drawing.Size(26, 18);
this.label4.TabIndex = 1;
this.label4.Text = "0";
this.label4.Text = "--";
this.label4.Click += new System.EventHandler(this.label4_Click);
//
// label3
@@ -1697,6 +1711,8 @@
//
// tabPage1
//
this.tabPage1.Controls.Add(this.groupBox6);
this.tabPage1.Controls.Add(this.pictureBox2);
this.tabPage1.Controls.Add(this.groupBox5);
this.tabPage1.Controls.Add(this.groupBox4);
this.tabPage1.Location = new System.Drawing.Point(4, 28);
@@ -1704,16 +1720,85 @@
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(1214, 760);
this.tabPage1.TabIndex = 6;
this.tabPage1.Text = "电动变倍";
this.tabPage1.Text = "变倍控制";
this.tabPage1.UseVisualStyleBackColor = true;
this.tabPage1.Click += new System.EventHandler(this.tabPage1_Click_1);
//
// groupBox5
//
this.groupBox5.Controls.Add(this.label31);
this.groupBox5.Controls.Add(this.label30);
this.groupBox5.Controls.Add(this.label29);
this.groupBox5.Controls.Add(this.label28);
this.groupBox5.Controls.Add(this.button8);
this.groupBox5.Controls.Add(this.button6);
this.groupBox5.Location = new System.Drawing.Point(67, 240);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(271, 226);
this.groupBox5.TabIndex = 5;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "运动控制";
//
// label31
//
this.label31.AutoSize = true;
this.label31.Location = new System.Drawing.Point(121, 103);
this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(53, 18);
this.label31.TabIndex = 9;
this.label31.Text = "-----";
//
// label30
//
this.label30.AutoSize = true;
this.label30.Location = new System.Drawing.Point(121, 47);
this.label30.Name = "label30";
this.label30.Size = new System.Drawing.Size(53, 18);
this.label30.TabIndex = 6;
this.label30.Text = "-----";
//
// label29
//
this.label29.AutoSize = true;
this.label29.Location = new System.Drawing.Point(17, 103);
this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(98, 18);
this.label29.TabIndex = 8;
this.label29.Text = "当前脉冲:";
//
// label28
//
this.label28.AutoSize = true;
this.label28.Location = new System.Drawing.Point(17, 47);
this.label28.Name = "label28";
this.label28.Size = new System.Drawing.Size(98, 18);
this.label28.TabIndex = 6;
this.label28.Text = "最大脉冲:";
//
// button8
//
this.button8.Location = new System.Drawing.Point(140, 160);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(125, 40);
this.button8.TabIndex = 7;
this.button8.Text = "获取当前脉冲";
this.button8.UseVisualStyleBackColor = true;
//
// button6
//
this.button6.Location = new System.Drawing.Point(6, 160);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(125, 40);
this.button6.TabIndex = 6;
this.button6.Text = "获取最大脉冲";
this.button6.UseVisualStyleBackColor = true;
//
// groupBox4
//
this.groupBox4.Controls.Add(this.comboBox2);
this.groupBox4.Controls.Add(this.label27);
this.groupBox4.Controls.Add(this.button5);
this.groupBox4.Location = new System.Drawing.Point(56, 38);
this.groupBox4.Location = new System.Drawing.Point(67, 44);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(271, 169);
this.groupBox4.TabIndex = 4;
@@ -1794,24 +1879,62 @@
this.rit_Coord.Text = "";
this.rit_Coord.TextChanged += new System.EventHandler(this.rit_Coord_TextChanged);
//
// groupBox5
// pictureBox2
//
this.groupBox5.Controls.Add(this.button6);
this.groupBox5.Location = new System.Drawing.Point(56, 237);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(271, 262);
this.groupBox5.TabIndex = 5;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "运动控制";
this.pictureBox2.Location = new System.Drawing.Point(431, 55);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(669, 640);
this.pictureBox2.TabIndex = 6;
this.pictureBox2.TabStop = false;
//
// button6
// groupBox6
//
this.button6.Location = new System.Drawing.Point(43, 43);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(156, 40);
this.button6.TabIndex = 6;
this.button6.Text = "获取最大脉冲";
this.button6.UseVisualStyleBackColor = true;
this.groupBox6.Controls.Add(this.label33);
this.groupBox6.Controls.Add(this.label32);
this.groupBox6.Controls.Add(this.button10);
this.groupBox6.Controls.Add(this.button12);
this.groupBox6.Location = new System.Drawing.Point(67, 494);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(271, 201);
this.groupBox6.TabIndex = 7;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "运动控制";
//
// button10
//
this.button10.Location = new System.Drawing.Point(140, 117);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(106, 40);
this.button10.TabIndex = 7;
this.button10.Text = "6X";
this.button10.UseVisualStyleBackColor = true;
//
// button12
//
this.button12.Location = new System.Drawing.Point(20, 117);
this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(106, 40);
this.button12.TabIndex = 6;
this.button12.Text = "1X";
this.button12.UseVisualStyleBackColor = true;
//
// label32
//
this.label32.AutoSize = true;
this.label32.Location = new System.Drawing.Point(17, 49);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(98, 18);
this.label32.TabIndex = 10;
this.label32.Text = "镜头类型:";
//
// label33
//
this.label33.AutoSize = true;
this.label33.Location = new System.Drawing.Point(121, 49);
this.label33.Name = "label33";
this.label33.Size = new System.Drawing.Size(53, 18);
this.label33.TabIndex = 10;
this.label33.Text = "-----";
//
// ShowForm
//
@@ -1867,10 +1990,14 @@
this.grb_temport.ResumeLayout(false);
this.grb_temport.PerformLayout();
this.tabPage1.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.groupBox4.ResumeLayout(false);
this.groupBox4.PerformLayout();
this.panel1.ResumeLayout(false);
this.groupBox5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.groupBox6.ResumeLayout(false);
this.groupBox6.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@@ -2024,6 +2151,17 @@
private System.Windows.Forms.Button button5;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Label label29;
private System.Windows.Forms.Label label28;
private System.Windows.Forms.Label label31;
private System.Windows.Forms.Label label30;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.Button button10;
private System.Windows.Forms.Button button12;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Label label33;
private System.Windows.Forms.Label label32;
}
}

View File

@@ -191,7 +191,7 @@ namespace HitBotCSharpDemo
{
try
{
string command = $"{(char)Motor.X}{(char)Command.Pos}\r";
string command = $"{(char)Motor.X}{(char)Command.MaxLength}\r";
serialPort.Write(command);
}
catch (Exception ex)

View File

@@ -1,6 +1,6 @@
# X,Y,Z,R
274.065,-292.0611,-75.4661,-1005.721
274.065,-137.1582,-75.4661,-1005.721
274.065,5.9653,-75.4661,-1005.721
274.065,149.3837,-75.4661,-1005.721
275.7802,-295.9343,-97.6206,-1005.469
275.7792,-133.1579,-99.6206,-1005.469
271.7793,1.5466,-97.6206,-1005.469
271.7793,149.3837,-97.6206,-1005.469
93.9893,-37.883,-4.4571,-1027.92

View File

@@ -1,2 +1,2 @@
Exposure=900000
Exposure=128515
Gain=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 KiB

File diff suppressed because it is too large Load Diff