+++
This commit is contained in:
27
DroneClient/FormMain.Designer.cs
generated
27
DroneClient/FormMain.Designer.cs
generated
@ -74,6 +74,8 @@
|
||||
label17 = new Label();
|
||||
label_OF_X = new Label();
|
||||
label19 = new Label();
|
||||
trackBar_Value = new TrackBar();
|
||||
label4 = new Label();
|
||||
groupBox1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)numericUpDown_Server_Port).BeginInit();
|
||||
groupBox2.SuspendLayout();
|
||||
@ -81,6 +83,7 @@
|
||||
groupBox4.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackBar_Power).BeginInit();
|
||||
groupBox5.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackBar_Value).BeginInit();
|
||||
SuspendLayout();
|
||||
//
|
||||
// timer_Test
|
||||
@ -536,11 +539,33 @@
|
||||
label19.TabIndex = 4;
|
||||
label19.Text = "X:";
|
||||
//
|
||||
// trackBar_Value
|
||||
//
|
||||
trackBar_Value.Location = new Point(349, 240);
|
||||
trackBar_Value.Maximum = 100;
|
||||
trackBar_Value.Minimum = 1;
|
||||
trackBar_Value.Name = "trackBar_Value";
|
||||
trackBar_Value.Orientation = Orientation.Vertical;
|
||||
trackBar_Value.Size = new Size(45, 195);
|
||||
trackBar_Value.TabIndex = 25;
|
||||
trackBar_Value.Value = 1;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
label4.AutoSize = true;
|
||||
label4.Location = new Point(347, 219);
|
||||
label4.Name = "label4";
|
||||
label4.Size = new Size(47, 15);
|
||||
label4.TabIndex = 26;
|
||||
label4.Text = "POWER";
|
||||
//
|
||||
// Form_Main
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
ClientSize = new Size(446, 447);
|
||||
Controls.Add(label4);
|
||||
Controls.Add(trackBar_Value);
|
||||
Controls.Add(groupBox5);
|
||||
Controls.Add(button_MR);
|
||||
Controls.Add(button_ML);
|
||||
@ -570,6 +595,7 @@
|
||||
((System.ComponentModel.ISupportInitialize)trackBar_Power).EndInit();
|
||||
groupBox5.ResumeLayout(false);
|
||||
groupBox5.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackBar_Value).EndInit();
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
}
|
||||
@ -621,5 +647,6 @@
|
||||
private Label label17;
|
||||
private Label label_OF_X;
|
||||
private Label label19;
|
||||
private TrackBar trackBar_Value;
|
||||
}
|
||||
}
|
||||
|
@ -128,7 +128,7 @@ namespace DroneSimulator
|
||||
|
||||
private void button_UU_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
const float pow = 0.1f;
|
||||
float pow = ((float)trackBar_Value.Value) / 10.0f;
|
||||
|
||||
if (sender == button_UU)
|
||||
{
|
||||
|
Reference in New Issue
Block a user