514 lines
16 KiB
C#
514 lines
16 KiB
C#
namespace DroneSimulator
|
|
{
|
|
partial class Form_Main
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
timer_Test = new System.Windows.Forms.Timer(components);
|
|
groupBox1 = new GroupBox();
|
|
textBox_Server_Addr = new TextBox();
|
|
label2 = new Label();
|
|
button_Connect = new Button();
|
|
numericUpDown_Server_Port = new NumericUpDown();
|
|
label3 = new Label();
|
|
label1 = new Label();
|
|
groupBox2 = new GroupBox();
|
|
label_Acc_Z = new Label();
|
|
label7 = new Label();
|
|
label_Acc_Y = new Label();
|
|
label5 = new Label();
|
|
label_Acc_X = new Label();
|
|
groupBox3 = new GroupBox();
|
|
label_Gyr_Z = new Label();
|
|
label9 = new Label();
|
|
label_Gyr_Y = new Label();
|
|
label11 = new Label();
|
|
label_Gyr_X = new Label();
|
|
label13 = new Label();
|
|
groupBox4 = new GroupBox();
|
|
label_Pos_L = new Label();
|
|
label6 = new Label();
|
|
label_Pos_Y = new Label();
|
|
label10 = new Label();
|
|
label_Pos_X = new Label();
|
|
label14 = new Label();
|
|
trackBar_Power = new TrackBar();
|
|
button_LL = new Button();
|
|
button_UU = new Button();
|
|
button_DD = new Button();
|
|
button_RR = new Button();
|
|
label_Pow = new Label();
|
|
button_ML = new Button();
|
|
button_MR = new Button();
|
|
groupBox1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)numericUpDown_Server_Port).BeginInit();
|
|
groupBox2.SuspendLayout();
|
|
groupBox3.SuspendLayout();
|
|
groupBox4.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)trackBar_Power).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// timer_Test
|
|
//
|
|
timer_Test.Enabled = true;
|
|
timer_Test.Interval = 10;
|
|
timer_Test.Tick += timer_Test_Tick;
|
|
//
|
|
// groupBox1
|
|
//
|
|
groupBox1.Controls.Add(textBox_Server_Addr);
|
|
groupBox1.Controls.Add(label2);
|
|
groupBox1.Controls.Add(button_Connect);
|
|
groupBox1.Controls.Add(numericUpDown_Server_Port);
|
|
groupBox1.Controls.Add(label3);
|
|
groupBox1.Dock = DockStyle.Top;
|
|
groupBox1.Location = new Point(0, 0);
|
|
groupBox1.Name = "groupBox1";
|
|
groupBox1.Size = new Size(275, 80);
|
|
groupBox1.TabIndex = 3;
|
|
groupBox1.TabStop = false;
|
|
groupBox1.Tag = "";
|
|
groupBox1.Text = "Server";
|
|
//
|
|
// textBox_Server_Addr
|
|
//
|
|
textBox_Server_Addr.Location = new Point(48, 16);
|
|
textBox_Server_Addr.Name = "textBox_Server_Addr";
|
|
textBox_Server_Addr.Size = new Size(125, 23);
|
|
textBox_Server_Addr.TabIndex = 4;
|
|
textBox_Server_Addr.Text = "127.0.0.1";
|
|
//
|
|
// label2
|
|
//
|
|
label2.AutoSize = true;
|
|
label2.Location = new Point(6, 19);
|
|
label2.Name = "label2";
|
|
label2.Size = new Size(36, 15);
|
|
label2.TabIndex = 3;
|
|
label2.Tag = "";
|
|
label2.Text = "Addr:";
|
|
//
|
|
// button_Connect
|
|
//
|
|
button_Connect.BackColor = Color.Transparent;
|
|
button_Connect.Location = new Point(112, 46);
|
|
button_Connect.Name = "button_Connect";
|
|
button_Connect.Size = new Size(61, 23);
|
|
button_Connect.TabIndex = 2;
|
|
button_Connect.Tag = "";
|
|
button_Connect.Text = "Connect";
|
|
button_Connect.UseVisualStyleBackColor = false;
|
|
button_Connect.Click += button_Connect_Click;
|
|
//
|
|
// numericUpDown_Server_Port
|
|
//
|
|
numericUpDown_Server_Port.Location = new Point(44, 48);
|
|
numericUpDown_Server_Port.Maximum = new decimal(new int[] { 65000, 0, 0, 0 });
|
|
numericUpDown_Server_Port.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
|
|
numericUpDown_Server_Port.Name = "numericUpDown_Server_Port";
|
|
numericUpDown_Server_Port.Size = new Size(62, 23);
|
|
numericUpDown_Server_Port.TabIndex = 1;
|
|
numericUpDown_Server_Port.Value = new decimal(new int[] { 1001, 0, 0, 0 });
|
|
//
|
|
// label3
|
|
//
|
|
label3.AutoSize = true;
|
|
label3.Location = new Point(6, 50);
|
|
label3.Name = "label3";
|
|
label3.Size = new Size(32, 15);
|
|
label3.TabIndex = 0;
|
|
label3.Tag = "#clients_port";
|
|
label3.Text = "Port:";
|
|
//
|
|
// label1
|
|
//
|
|
label1.AutoSize = true;
|
|
label1.Location = new Point(6, 19);
|
|
label1.Name = "label1";
|
|
label1.Size = new Size(17, 15);
|
|
label1.TabIndex = 4;
|
|
label1.Text = "X:";
|
|
//
|
|
// groupBox2
|
|
//
|
|
groupBox2.Controls.Add(label_Acc_Z);
|
|
groupBox2.Controls.Add(label7);
|
|
groupBox2.Controls.Add(label_Acc_Y);
|
|
groupBox2.Controls.Add(label5);
|
|
groupBox2.Controls.Add(label_Acc_X);
|
|
groupBox2.Controls.Add(label1);
|
|
groupBox2.Location = new Point(6, 86);
|
|
groupBox2.Name = "groupBox2";
|
|
groupBox2.Size = new Size(78, 100);
|
|
groupBox2.TabIndex = 5;
|
|
groupBox2.TabStop = false;
|
|
groupBox2.Text = "Acc";
|
|
//
|
|
// label_Acc_Z
|
|
//
|
|
label_Acc_Z.AutoSize = true;
|
|
label_Acc_Z.Location = new Point(19, 70);
|
|
label_Acc_Z.Name = "label_Acc_Z";
|
|
label_Acc_Z.Size = new Size(13, 15);
|
|
label_Acc_Z.TabIndex = 9;
|
|
label_Acc_Z.Text = "0";
|
|
//
|
|
// label7
|
|
//
|
|
label7.AutoSize = true;
|
|
label7.Location = new Point(6, 70);
|
|
label7.Name = "label7";
|
|
label7.Size = new Size(17, 15);
|
|
label7.TabIndex = 8;
|
|
label7.Text = "Z:";
|
|
//
|
|
// label_Acc_Y
|
|
//
|
|
label_Acc_Y.AutoSize = true;
|
|
label_Acc_Y.Location = new Point(19, 45);
|
|
label_Acc_Y.Name = "label_Acc_Y";
|
|
label_Acc_Y.Size = new Size(13, 15);
|
|
label_Acc_Y.TabIndex = 7;
|
|
label_Acc_Y.Text = "0";
|
|
//
|
|
// label5
|
|
//
|
|
label5.AutoSize = true;
|
|
label5.Location = new Point(6, 45);
|
|
label5.Name = "label5";
|
|
label5.Size = new Size(17, 15);
|
|
label5.TabIndex = 6;
|
|
label5.Text = "Y:";
|
|
//
|
|
// label_Acc_X
|
|
//
|
|
label_Acc_X.AutoSize = true;
|
|
label_Acc_X.Location = new Point(19, 19);
|
|
label_Acc_X.Name = "label_Acc_X";
|
|
label_Acc_X.Size = new Size(13, 15);
|
|
label_Acc_X.TabIndex = 5;
|
|
label_Acc_X.Text = "0";
|
|
//
|
|
// groupBox3
|
|
//
|
|
groupBox3.Controls.Add(label_Gyr_Z);
|
|
groupBox3.Controls.Add(label9);
|
|
groupBox3.Controls.Add(label_Gyr_Y);
|
|
groupBox3.Controls.Add(label11);
|
|
groupBox3.Controls.Add(label_Gyr_X);
|
|
groupBox3.Controls.Add(label13);
|
|
groupBox3.Location = new Point(95, 86);
|
|
groupBox3.Name = "groupBox3";
|
|
groupBox3.Size = new Size(78, 100);
|
|
groupBox3.TabIndex = 6;
|
|
groupBox3.TabStop = false;
|
|
groupBox3.Text = "Gyr";
|
|
//
|
|
// label_Gyr_Z
|
|
//
|
|
label_Gyr_Z.AutoSize = true;
|
|
label_Gyr_Z.Location = new Point(19, 70);
|
|
label_Gyr_Z.Name = "label_Gyr_Z";
|
|
label_Gyr_Z.Size = new Size(13, 15);
|
|
label_Gyr_Z.TabIndex = 9;
|
|
label_Gyr_Z.Text = "0";
|
|
//
|
|
// label9
|
|
//
|
|
label9.AutoSize = true;
|
|
label9.Location = new Point(6, 70);
|
|
label9.Name = "label9";
|
|
label9.Size = new Size(17, 15);
|
|
label9.TabIndex = 8;
|
|
label9.Text = "Z:";
|
|
//
|
|
// label_Gyr_Y
|
|
//
|
|
label_Gyr_Y.AutoSize = true;
|
|
label_Gyr_Y.Location = new Point(19, 45);
|
|
label_Gyr_Y.Name = "label_Gyr_Y";
|
|
label_Gyr_Y.Size = new Size(13, 15);
|
|
label_Gyr_Y.TabIndex = 7;
|
|
label_Gyr_Y.Text = "0";
|
|
//
|
|
// label11
|
|
//
|
|
label11.AutoSize = true;
|
|
label11.Location = new Point(6, 45);
|
|
label11.Name = "label11";
|
|
label11.Size = new Size(17, 15);
|
|
label11.TabIndex = 6;
|
|
label11.Text = "Y:";
|
|
//
|
|
// label_Gyr_X
|
|
//
|
|
label_Gyr_X.AutoSize = true;
|
|
label_Gyr_X.Location = new Point(19, 19);
|
|
label_Gyr_X.Name = "label_Gyr_X";
|
|
label_Gyr_X.Size = new Size(13, 15);
|
|
label_Gyr_X.TabIndex = 5;
|
|
label_Gyr_X.Text = "0";
|
|
//
|
|
// label13
|
|
//
|
|
label13.AutoSize = true;
|
|
label13.Location = new Point(6, 19);
|
|
label13.Name = "label13";
|
|
label13.Size = new Size(17, 15);
|
|
label13.TabIndex = 4;
|
|
label13.Text = "X:";
|
|
//
|
|
// groupBox4
|
|
//
|
|
groupBox4.Controls.Add(label_Pos_L);
|
|
groupBox4.Controls.Add(label6);
|
|
groupBox4.Controls.Add(label_Pos_Y);
|
|
groupBox4.Controls.Add(label10);
|
|
groupBox4.Controls.Add(label_Pos_X);
|
|
groupBox4.Controls.Add(label14);
|
|
groupBox4.Location = new Point(188, 86);
|
|
groupBox4.Name = "groupBox4";
|
|
groupBox4.Size = new Size(78, 100);
|
|
groupBox4.TabIndex = 7;
|
|
groupBox4.TabStop = false;
|
|
groupBox4.Text = "Pos";
|
|
//
|
|
// label_Pos_L
|
|
//
|
|
label_Pos_L.AutoSize = true;
|
|
label_Pos_L.Location = new Point(19, 70);
|
|
label_Pos_L.Name = "label_Pos_L";
|
|
label_Pos_L.Size = new Size(13, 15);
|
|
label_Pos_L.TabIndex = 9;
|
|
label_Pos_L.Text = "0";
|
|
//
|
|
// label6
|
|
//
|
|
label6.AutoSize = true;
|
|
label6.Location = new Point(6, 70);
|
|
label6.Name = "label6";
|
|
label6.Size = new Size(16, 15);
|
|
label6.TabIndex = 8;
|
|
label6.Text = "L:";
|
|
//
|
|
// label_Pos_Y
|
|
//
|
|
label_Pos_Y.AutoSize = true;
|
|
label_Pos_Y.Location = new Point(19, 45);
|
|
label_Pos_Y.Name = "label_Pos_Y";
|
|
label_Pos_Y.Size = new Size(13, 15);
|
|
label_Pos_Y.TabIndex = 7;
|
|
label_Pos_Y.Text = "0";
|
|
//
|
|
// label10
|
|
//
|
|
label10.AutoSize = true;
|
|
label10.Location = new Point(6, 45);
|
|
label10.Name = "label10";
|
|
label10.Size = new Size(17, 15);
|
|
label10.TabIndex = 6;
|
|
label10.Text = "Y:";
|
|
//
|
|
// label_Pos_X
|
|
//
|
|
label_Pos_X.AutoSize = true;
|
|
label_Pos_X.Location = new Point(19, 19);
|
|
label_Pos_X.Name = "label_Pos_X";
|
|
label_Pos_X.Size = new Size(13, 15);
|
|
label_Pos_X.TabIndex = 5;
|
|
label_Pos_X.Text = "0";
|
|
//
|
|
// label14
|
|
//
|
|
label14.AutoSize = true;
|
|
label14.Location = new Point(6, 19);
|
|
label14.Name = "label14";
|
|
label14.Size = new Size(17, 15);
|
|
label14.TabIndex = 4;
|
|
label14.Text = "X:";
|
|
//
|
|
// trackBar_Power
|
|
//
|
|
trackBar_Power.Location = new Point(112, 240);
|
|
trackBar_Power.Maximum = 100;
|
|
trackBar_Power.Name = "trackBar_Power";
|
|
trackBar_Power.Orientation = Orientation.Vertical;
|
|
trackBar_Power.Size = new Size(45, 141);
|
|
trackBar_Power.TabIndex = 12;
|
|
trackBar_Power.Scroll += trackBar_Power_Scroll;
|
|
//
|
|
// button_LL
|
|
//
|
|
button_LL.Location = new Point(9, 318);
|
|
button_LL.Name = "button_LL";
|
|
button_LL.Size = new Size(75, 23);
|
|
button_LL.TabIndex = 13;
|
|
button_LL.Text = "LL";
|
|
button_LL.UseVisualStyleBackColor = true;
|
|
button_LL.MouseDown += button_UU_MouseDown;
|
|
button_LL.MouseUp += button_UU_MouseUp;
|
|
//
|
|
// button_UU
|
|
//
|
|
button_UU.Location = new Point(98, 211);
|
|
button_UU.Name = "button_UU";
|
|
button_UU.Size = new Size(75, 23);
|
|
button_UU.TabIndex = 14;
|
|
button_UU.Text = "UU";
|
|
button_UU.UseVisualStyleBackColor = true;
|
|
button_UU.MouseDown += button_UU_MouseDown;
|
|
button_UU.MouseUp += button_UU_MouseUp;
|
|
//
|
|
// button_DD
|
|
//
|
|
button_DD.Location = new Point(98, 412);
|
|
button_DD.Name = "button_DD";
|
|
button_DD.Size = new Size(75, 23);
|
|
button_DD.TabIndex = 15;
|
|
button_DD.Text = "DD";
|
|
button_DD.UseVisualStyleBackColor = true;
|
|
button_DD.MouseDown += button_UU_MouseDown;
|
|
button_DD.MouseUp += button_UU_MouseUp;
|
|
//
|
|
// button_RR
|
|
//
|
|
button_RR.Location = new Point(188, 318);
|
|
button_RR.Name = "button_RR";
|
|
button_RR.Size = new Size(75, 23);
|
|
button_RR.TabIndex = 16;
|
|
button_RR.Text = "RR";
|
|
button_RR.UseVisualStyleBackColor = true;
|
|
button_RR.MouseDown += button_UU_MouseDown;
|
|
button_RR.MouseUp += button_UU_MouseUp;
|
|
//
|
|
// label_Pow
|
|
//
|
|
label_Pow.AutoSize = true;
|
|
label_Pow.Location = new Point(126, 384);
|
|
label_Pow.Name = "label_Pow";
|
|
label_Pow.Size = new Size(13, 15);
|
|
label_Pow.TabIndex = 21;
|
|
label_Pow.Text = "0";
|
|
//
|
|
// button_ML
|
|
//
|
|
button_ML.Location = new Point(9, 211);
|
|
button_ML.Name = "button_ML";
|
|
button_ML.Size = new Size(75, 23);
|
|
button_ML.TabIndex = 22;
|
|
button_ML.Text = "<-";
|
|
button_ML.UseVisualStyleBackColor = true;
|
|
button_ML.MouseDown += button_UU_MouseDown;
|
|
button_ML.MouseUp += button_UU_MouseUp;
|
|
//
|
|
// button_MR
|
|
//
|
|
button_MR.Location = new Point(188, 211);
|
|
button_MR.Name = "button_MR";
|
|
button_MR.Size = new Size(75, 23);
|
|
button_MR.TabIndex = 23;
|
|
button_MR.Text = "->";
|
|
button_MR.UseVisualStyleBackColor = true;
|
|
button_MR.MouseDown += button_UU_MouseDown;
|
|
button_MR.MouseUp += button_UU_MouseUp;
|
|
//
|
|
// Form_Main
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(275, 447);
|
|
Controls.Add(button_MR);
|
|
Controls.Add(button_ML);
|
|
Controls.Add(label_Pow);
|
|
Controls.Add(button_RR);
|
|
Controls.Add(button_DD);
|
|
Controls.Add(button_UU);
|
|
Controls.Add(button_LL);
|
|
Controls.Add(trackBar_Power);
|
|
Controls.Add(groupBox4);
|
|
Controls.Add(groupBox3);
|
|
Controls.Add(groupBox2);
|
|
Controls.Add(groupBox1);
|
|
MinimumSize = new Size(291, 389);
|
|
Name = "Form_Main";
|
|
Text = "Drone Client V1.0";
|
|
FormClosing += Form_Main_FormClosing;
|
|
groupBox1.ResumeLayout(false);
|
|
groupBox1.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)numericUpDown_Server_Port).EndInit();
|
|
groupBox2.ResumeLayout(false);
|
|
groupBox2.PerformLayout();
|
|
groupBox3.ResumeLayout(false);
|
|
groupBox3.PerformLayout();
|
|
groupBox4.ResumeLayout(false);
|
|
groupBox4.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)trackBar_Power).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
private System.Windows.Forms.Timer timer_Test;
|
|
private GroupBox groupBox1;
|
|
private TextBox textBox_Server_Addr;
|
|
private Label label2;
|
|
private Button button_Connect;
|
|
private NumericUpDown numericUpDown_Server_Port;
|
|
private Label label3;
|
|
private Label label1;
|
|
private GroupBox groupBox2;
|
|
private Label label_Acc_Y;
|
|
private Label label5;
|
|
private Label label_Acc_X;
|
|
private Label label_Acc_Z;
|
|
private Label label7;
|
|
private GroupBox groupBox3;
|
|
private Label label_Gyr_Z;
|
|
private Label label9;
|
|
private Label label_Gyr_Y;
|
|
private Label label11;
|
|
private Label label_Gyr_X;
|
|
private Label label13;
|
|
private GroupBox groupBox4;
|
|
private Label label_Pos_L;
|
|
private Label label6;
|
|
private Label label_Pos_Y;
|
|
private Label label10;
|
|
private Label label_Pos_X;
|
|
private Label label14;
|
|
private TrackBar trackBar_Power;
|
|
private Button button_LL;
|
|
private Button button_UU;
|
|
private Button button_DD;
|
|
private Button button_RR;
|
|
private Label label_Pow;
|
|
private Button button_ML;
|
|
private Button button_MR;
|
|
}
|
|
}
|