mirror of https://github.com/ArduPilot/ardupilot
APM Planner 1.0.74
fix scaling on loaded param set add check/uncheckall to param comapre add firmware versions on firmeware tab
This commit is contained in:
parent
23c063f374
commit
9665358ed4
|
@ -501,6 +501,8 @@ namespace ArdupilotMega.GCSViews
|
||||||
string name = line.Substring(0, index);
|
string name = line.Substring(0, index);
|
||||||
float value = float.Parse(line.Substring(index + 1), new System.Globalization.CultureInfo("en-US"));
|
float value = float.Parse(line.Substring(index + 1), new System.Globalization.CultureInfo("en-US"));
|
||||||
|
|
||||||
|
MAVLink.modifyParamForDisplay(true,name,ref value);
|
||||||
|
|
||||||
// set param table as well
|
// set param table as well
|
||||||
foreach (DataGridViewRow row in Params.Rows)
|
foreach (DataGridViewRow row in Params.Rows)
|
||||||
{
|
{
|
||||||
|
@ -541,7 +543,11 @@ namespace ArdupilotMega.GCSViews
|
||||||
sw.WriteLine("NOTE: " + input.Replace(',', '|'));
|
sw.WriteLine("NOTE: " + input.Replace(',', '|'));
|
||||||
foreach (DataGridViewRow row in Params.Rows)
|
foreach (DataGridViewRow row in Params.Rows)
|
||||||
{
|
{
|
||||||
sw.WriteLine(row.Cells[0].Value.ToString() + "," + float.Parse(row.Cells[1].Value.ToString()).ToString(new System.Globalization.CultureInfo("en-US")));
|
float value = float.Parse(row.Cells[1].Value.ToString());
|
||||||
|
|
||||||
|
MAVLink.modifyParamForDisplay(false, row.Cells[0].Value.ToString(), ref value);
|
||||||
|
|
||||||
|
sw.WriteLine(row.Cells[0].Value.ToString() + "," + value);
|
||||||
}
|
}
|
||||||
sw.Close();
|
sw.Close();
|
||||||
}
|
}
|
||||||
|
@ -931,6 +937,8 @@ namespace ArdupilotMega.GCSViews
|
||||||
string name = line.Substring(0, index);
|
string name = line.Substring(0, index);
|
||||||
float value = float.Parse(line.Substring(index + 1), new System.Globalization.CultureInfo("en-US"));
|
float value = float.Parse(line.Substring(index + 1), new System.Globalization.CultureInfo("en-US"));
|
||||||
|
|
||||||
|
MAVLink.modifyParamForDisplay(true, name, ref value);
|
||||||
|
|
||||||
if (name == "SYSID_SW_MREV")
|
if (name == "SYSID_SW_MREV")
|
||||||
continue;
|
continue;
|
||||||
if (name == "WP_TOTAL")
|
if (name == "WP_TOTAL")
|
||||||
|
|
|
@ -25,18 +25,18 @@ namespace ArdupilotMega.GCSViews
|
||||||
private System.Windows.Forms.PictureBox pictureBoxY6;
|
private System.Windows.Forms.PictureBox pictureBoxY6;
|
||||||
private System.Windows.Forms.Label lbl_status;
|
private System.Windows.Forms.Label lbl_status;
|
||||||
private System.Windows.Forms.ProgressBar progress;
|
private System.Windows.Forms.ProgressBar progress;
|
||||||
private System.Windows.Forms.Label label1;
|
private System.Windows.Forms.Label lbl_AP;
|
||||||
private System.Windows.Forms.Label label2;
|
private System.Windows.Forms.Label label2;
|
||||||
private System.Windows.Forms.Label label3;
|
private System.Windows.Forms.Label lbl_APHil;
|
||||||
private System.Windows.Forms.Label label4;
|
private System.Windows.Forms.Label lbl_ACQuad;
|
||||||
private System.Windows.Forms.Label label5;
|
private System.Windows.Forms.Label lbl_ACHexa;
|
||||||
private System.Windows.Forms.Label label6;
|
private System.Windows.Forms.Label lbl_ACTri;
|
||||||
private Label label8;
|
private Label lbl_Heli;
|
||||||
private PictureBox pictureBoxHeli;
|
private PictureBox pictureBoxHeli;
|
||||||
private MyButton BUT_setup;
|
private MyButton BUT_setup;
|
||||||
private Label label9;
|
private Label lbl_ACHil;
|
||||||
private PictureBox pictureBoxQuadHil;
|
private PictureBox pictureBoxQuadHil;
|
||||||
private System.Windows.Forms.Label label7;
|
private System.Windows.Forms.Label lbl_ACY6;
|
||||||
|
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
|
@ -49,16 +49,16 @@ namespace ArdupilotMega.GCSViews
|
||||||
this.pictureBoxY6 = new System.Windows.Forms.PictureBox();
|
this.pictureBoxY6 = new System.Windows.Forms.PictureBox();
|
||||||
this.lbl_status = new System.Windows.Forms.Label();
|
this.lbl_status = new System.Windows.Forms.Label();
|
||||||
this.progress = new System.Windows.Forms.ProgressBar();
|
this.progress = new System.Windows.Forms.ProgressBar();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.lbl_AP = new System.Windows.Forms.Label();
|
||||||
this.label2 = new System.Windows.Forms.Label();
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
this.label3 = new System.Windows.Forms.Label();
|
this.lbl_APHil = new System.Windows.Forms.Label();
|
||||||
this.label4 = new System.Windows.Forms.Label();
|
this.lbl_ACQuad = new System.Windows.Forms.Label();
|
||||||
this.label5 = new System.Windows.Forms.Label();
|
this.lbl_ACHexa = new System.Windows.Forms.Label();
|
||||||
this.label6 = new System.Windows.Forms.Label();
|
this.lbl_ACTri = new System.Windows.Forms.Label();
|
||||||
this.label7 = new System.Windows.Forms.Label();
|
this.lbl_ACY6 = new System.Windows.Forms.Label();
|
||||||
this.label8 = new System.Windows.Forms.Label();
|
this.lbl_Heli = new System.Windows.Forms.Label();
|
||||||
this.pictureBoxHeli = new System.Windows.Forms.PictureBox();
|
this.pictureBoxHeli = new System.Windows.Forms.PictureBox();
|
||||||
this.label9 = new System.Windows.Forms.Label();
|
this.lbl_ACHil = new System.Windows.Forms.Label();
|
||||||
this.pictureBoxQuadHil = new System.Windows.Forms.PictureBox();
|
this.pictureBoxQuadHil = new System.Windows.Forms.PictureBox();
|
||||||
this.BUT_setup = new ArdupilotMega.MyButton();
|
this.BUT_setup = new ArdupilotMega.MyButton();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPM)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxAPM)).BeginInit();
|
||||||
|
@ -136,45 +136,45 @@ namespace ArdupilotMega.GCSViews
|
||||||
this.progress.Name = "progress";
|
this.progress.Name = "progress";
|
||||||
this.progress.Step = 1;
|
this.progress.Step = 1;
|
||||||
//
|
//
|
||||||
// label1
|
// lbl_AP
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.label1, "label1");
|
resources.ApplyResources(this.lbl_AP, "lbl_AP");
|
||||||
this.label1.Name = "label1";
|
this.lbl_AP.Name = "lbl_AP";
|
||||||
//
|
//
|
||||||
// label2
|
// label2
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.label2, "label2");
|
resources.ApplyResources(this.label2, "label2");
|
||||||
this.label2.Name = "label2";
|
this.label2.Name = "label2";
|
||||||
//
|
//
|
||||||
// label3
|
// lbl_APHil
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.label3, "label3");
|
resources.ApplyResources(this.lbl_APHil, "lbl_APHil");
|
||||||
this.label3.Name = "label3";
|
this.lbl_APHil.Name = "lbl_APHil";
|
||||||
//
|
//
|
||||||
// label4
|
// lbl_ACQuad
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.label4, "label4");
|
resources.ApplyResources(this.lbl_ACQuad, "lbl_ACQuad");
|
||||||
this.label4.Name = "label4";
|
this.lbl_ACQuad.Name = "lbl_ACQuad";
|
||||||
//
|
//
|
||||||
// label5
|
// lbl_ACHexa
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.label5, "label5");
|
resources.ApplyResources(this.lbl_ACHexa, "lbl_ACHexa");
|
||||||
this.label5.Name = "label5";
|
this.lbl_ACHexa.Name = "lbl_ACHexa";
|
||||||
//
|
//
|
||||||
// label6
|
// lbl_ACTri
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.label6, "label6");
|
resources.ApplyResources(this.lbl_ACTri, "lbl_ACTri");
|
||||||
this.label6.Name = "label6";
|
this.lbl_ACTri.Name = "lbl_ACTri";
|
||||||
//
|
//
|
||||||
// label7
|
// lbl_ACY6
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.label7, "label7");
|
resources.ApplyResources(this.lbl_ACY6, "lbl_ACY6");
|
||||||
this.label7.Name = "label7";
|
this.lbl_ACY6.Name = "lbl_ACY6";
|
||||||
//
|
//
|
||||||
// label8
|
// lbl_Heli
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.label8, "label8");
|
resources.ApplyResources(this.lbl_Heli, "lbl_Heli");
|
||||||
this.label8.Name = "label8";
|
this.lbl_Heli.Name = "lbl_Heli";
|
||||||
//
|
//
|
||||||
// pictureBoxHeli
|
// pictureBoxHeli
|
||||||
//
|
//
|
||||||
|
@ -185,10 +185,10 @@ namespace ArdupilotMega.GCSViews
|
||||||
this.pictureBoxHeli.TabStop = false;
|
this.pictureBoxHeli.TabStop = false;
|
||||||
this.pictureBoxHeli.Click += new System.EventHandler(this.pictureBoxHeli_Click);
|
this.pictureBoxHeli.Click += new System.EventHandler(this.pictureBoxHeli_Click);
|
||||||
//
|
//
|
||||||
// label9
|
// lbl_ACHil
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.label9, "label9");
|
resources.ApplyResources(this.lbl_ACHil, "lbl_ACHil");
|
||||||
this.label9.Name = "label9";
|
this.lbl_ACHil.Name = "lbl_ACHil";
|
||||||
//
|
//
|
||||||
// pictureBoxQuadHil
|
// pictureBoxQuadHil
|
||||||
//
|
//
|
||||||
|
@ -210,18 +210,18 @@ namespace ArdupilotMega.GCSViews
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this, "$this");
|
resources.ApplyResources(this, "$this");
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.Controls.Add(this.label9);
|
this.Controls.Add(this.lbl_ACHil);
|
||||||
this.Controls.Add(this.pictureBoxQuadHil);
|
this.Controls.Add(this.pictureBoxQuadHil);
|
||||||
this.Controls.Add(this.BUT_setup);
|
this.Controls.Add(this.BUT_setup);
|
||||||
this.Controls.Add(this.label8);
|
this.Controls.Add(this.lbl_Heli);
|
||||||
this.Controls.Add(this.pictureBoxHeli);
|
this.Controls.Add(this.pictureBoxHeli);
|
||||||
this.Controls.Add(this.label7);
|
this.Controls.Add(this.lbl_ACY6);
|
||||||
this.Controls.Add(this.label6);
|
this.Controls.Add(this.lbl_ACTri);
|
||||||
this.Controls.Add(this.label5);
|
this.Controls.Add(this.lbl_ACHexa);
|
||||||
this.Controls.Add(this.label4);
|
this.Controls.Add(this.lbl_ACQuad);
|
||||||
this.Controls.Add(this.label3);
|
this.Controls.Add(this.lbl_APHil);
|
||||||
this.Controls.Add(this.label2);
|
this.Controls.Add(this.label2);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.lbl_AP);
|
||||||
this.Controls.Add(this.lbl_status);
|
this.Controls.Add(this.lbl_status);
|
||||||
this.Controls.Add(this.progress);
|
this.Controls.Add(this.progress);
|
||||||
this.Controls.Add(this.pictureBoxY6);
|
this.Controls.Add(this.pictureBoxY6);
|
||||||
|
@ -335,6 +335,12 @@ namespace ArdupilotMega.GCSViews
|
||||||
temp.url2560 = url2560;
|
temp.url2560 = url2560;
|
||||||
temp.k_format_version = k_format_version;
|
temp.k_format_version = k_format_version;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
updateDisplayName(temp);
|
||||||
|
}
|
||||||
|
catch { } // just in case
|
||||||
|
|
||||||
softwares.Add(temp);
|
softwares.Add(temp);
|
||||||
}
|
}
|
||||||
url = "";
|
url = "";
|
||||||
|
@ -356,6 +362,42 @@ namespace ArdupilotMega.GCSViews
|
||||||
catch (Exception ex) { MessageBox.Show("Failed to get Firmware List : " + ex.Message); }
|
catch (Exception ex) { MessageBox.Show("Failed to get Firmware List : " + ex.Message); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void updateDisplayName(software temp)
|
||||||
|
{
|
||||||
|
if (temp.url.ToLower().Contains("firmware/AP-1".ToLower()))
|
||||||
|
{
|
||||||
|
lbl_AP.Text = temp.name;
|
||||||
|
}
|
||||||
|
else if (temp.url.ToLower().Contains("firmware/APHIL-".ToLower()))
|
||||||
|
{
|
||||||
|
lbl_APHil.Text = temp.name;
|
||||||
|
}
|
||||||
|
else if (temp.url.ToLower().Contains("firmware/ac2-quad-".ToLower()))
|
||||||
|
{
|
||||||
|
lbl_ACQuad.Text = temp.name;
|
||||||
|
}
|
||||||
|
else if (temp.url.ToLower().Contains("firmware/ac2-tri".ToLower()))
|
||||||
|
{
|
||||||
|
lbl_ACTri.Text = temp.name;
|
||||||
|
}
|
||||||
|
else if (temp.url.ToLower().Contains("firmware/ac2-hexa".ToLower()))
|
||||||
|
{
|
||||||
|
lbl_ACHexa.Text = temp.name;
|
||||||
|
}
|
||||||
|
else if (temp.url.ToLower().Contains("firmware/ac2-y6".ToLower()))
|
||||||
|
{
|
||||||
|
lbl_ACY6.Text = temp.name;
|
||||||
|
}
|
||||||
|
else if (temp.url.ToLower().Contains("firmware/ac2-heli".ToLower()))
|
||||||
|
{
|
||||||
|
lbl_Heli.Text = temp.name;
|
||||||
|
}
|
||||||
|
else if (temp.url.ToLower().Contains("firmware/ac2-quadhil".ToLower()))
|
||||||
|
{
|
||||||
|
lbl_ACHil.Text = temp.name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void findfirmware(string findwhat)
|
void findfirmware(string findwhat)
|
||||||
{
|
{
|
||||||
foreach (software temp in softwares)
|
foreach (software temp in softwares)
|
||||||
|
@ -376,7 +418,7 @@ namespace ArdupilotMega.GCSViews
|
||||||
|
|
||||||
private void pictureBoxAPM_Click(object sender, EventArgs e)
|
private void pictureBoxAPM_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
findfirmware("firmware/AP-");
|
findfirmware("firmware/AP-1");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pictureBoxAPMHIL_Click(object sender, EventArgs e)
|
private void pictureBoxAPMHIL_Click(object sender, EventArgs e)
|
||||||
|
|
|
@ -336,34 +336,34 @@
|
||||||
<data name=">>progress.ZOrder" xml:space="preserve">
|
<data name=">>progress.ZOrder" xml:space="preserve">
|
||||||
<value>13</value>
|
<value>13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_AP.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label1.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_AP.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>113, 167</value>
|
<value>42, 168</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_AP.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>56, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_AP.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>8</value>
|
<value>8</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.Text" xml:space="preserve">
|
<data name="lbl_AP.Text" xml:space="preserve">
|
||||||
<value>ArduPlane</value>
|
<value>ArduPlane</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.Name" xml:space="preserve">
|
<data name="lbl_AP.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label1</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.Type" xml:space="preserve">
|
<data name=">>lbl_AP.Name" xml:space="preserve">
|
||||||
|
<value>lbl_AP</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_AP.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.Parent" xml:space="preserve">
|
<data name=">>lbl_AP.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.ZOrder" xml:space="preserve">
|
<data name=">>lbl_AP.ZOrder" xml:space="preserve">
|
||||||
<value>11</value>
|
<value>11</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
|
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
|
||||||
|
@ -396,184 +396,184 @@
|
||||||
<data name=">>label2.ZOrder" xml:space="preserve">
|
<data name=">>label2.ZOrder" xml:space="preserve">
|
||||||
<value>10</value>
|
<value>10</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label3.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_APHil.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label3.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label3.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_APHil.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>74, 361</value>
|
<value>42, 361</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label3.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_APHil.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>142, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label3.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_APHil.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>10</value>
|
<value>10</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label3.Text" xml:space="preserve">
|
<data name="lbl_APHil.Text" xml:space="preserve">
|
||||||
<value>ArduPlane (Xplane simulator)</value>
|
<value>ArduPlane (Xplane simulator)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label3.Name" xml:space="preserve">
|
<data name="lbl_APHil.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label3</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label3.Type" xml:space="preserve">
|
<data name=">>lbl_APHil.Name" xml:space="preserve">
|
||||||
|
<value>lbl_APHil</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_APHil.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label3.Parent" xml:space="preserve">
|
<data name=">>lbl_APHil.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label3.ZOrder" xml:space="preserve">
|
<data name=">>lbl_APHil.ZOrder" xml:space="preserve">
|
||||||
<value>9</value>
|
<value>9</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label4.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_ACQuad.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label4.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label4.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_ACQuad.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>612, 168</value>
|
<value>560, 168</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label4.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_ACQuad.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>89, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label4.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_ACQuad.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>11</value>
|
<value>11</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label4.Text" xml:space="preserve">
|
<data name="lbl_ACQuad.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Quad</value>
|
<value>ArduCopter Quad</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label4.Name" xml:space="preserve">
|
<data name="lbl_ACQuad.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label4</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label4.Type" xml:space="preserve">
|
<data name=">>lbl_ACQuad.Name" xml:space="preserve">
|
||||||
|
<value>lbl_ACQuad</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_ACQuad.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label4.Parent" xml:space="preserve">
|
<data name=">>lbl_ACQuad.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label4.ZOrder" xml:space="preserve">
|
<data name=">>lbl_ACQuad.ZOrder" xml:space="preserve">
|
||||||
<value>8</value>
|
<value>8</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label5.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_ACHexa.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label5.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label5.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_ACHexa.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>817, 167</value>
|
<value>767, 168</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label5.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_ACHexa.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>88, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label5.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_ACHexa.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>12</value>
|
<value>12</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label5.Text" xml:space="preserve">
|
<data name="lbl_ACHexa.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Hexa</value>
|
<value>ArduCopter Hexa</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label5.Name" xml:space="preserve">
|
<data name="lbl_ACHexa.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label5</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label5.Type" xml:space="preserve">
|
<data name=">>lbl_ACHexa.Name" xml:space="preserve">
|
||||||
|
<value>lbl_ACHexa</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_ACHexa.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label5.Parent" xml:space="preserve">
|
<data name=">>lbl_ACHexa.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label5.ZOrder" xml:space="preserve">
|
<data name=">>lbl_ACHexa.ZOrder" xml:space="preserve">
|
||||||
<value>7</value>
|
<value>7</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label6.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_ACTri.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label6.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label6.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_ACTri.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>623, 355</value>
|
<value>560, 361</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label6.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_ACTri.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>75, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label6.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_ACTri.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>13</value>
|
<value>13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label6.Text" xml:space="preserve">
|
<data name="lbl_ACTri.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Tri</value>
|
<value>ArduCopter Tri</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label6.Name" xml:space="preserve">
|
<data name="lbl_ACTri.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label6</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label6.Type" xml:space="preserve">
|
<data name=">>lbl_ACTri.Name" xml:space="preserve">
|
||||||
|
<value>lbl_ACTri</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_ACTri.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label6.Parent" xml:space="preserve">
|
<data name=">>lbl_ACTri.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label6.ZOrder" xml:space="preserve">
|
<data name=">>lbl_ACTri.ZOrder" xml:space="preserve">
|
||||||
<value>6</value>
|
<value>6</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label7.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_ACY6.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label7.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label7.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_ACY6.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>831, 355</value>
|
<value>767, 361</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label7.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_ACY6.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>76, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label7.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_ACY6.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>14</value>
|
<value>14</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label7.Text" xml:space="preserve">
|
<data name="lbl_ACY6.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Y6</value>
|
<value>ArduCopter Y6</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label7.Name" xml:space="preserve">
|
<data name="lbl_ACY6.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label7</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label7.Type" xml:space="preserve">
|
<data name=">>lbl_ACY6.Name" xml:space="preserve">
|
||||||
|
<value>lbl_ACY6</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_ACY6.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label7.Parent" xml:space="preserve">
|
<data name=">>lbl_ACY6.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label7.ZOrder" xml:space="preserve">
|
<data name=">>lbl_ACY6.ZOrder" xml:space="preserve">
|
||||||
<value>5</value>
|
<value>5</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label8.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_Heli.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label8.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label8.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_Heli.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>372, 168</value>
|
<value>310, 167</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label8.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_Heli.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>81, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label8.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_Heli.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>18</value>
|
<value>18</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label8.Text" xml:space="preserve">
|
<data name="lbl_Heli.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Heli</value>
|
<value>ArduCopter Heli</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label8.Name" xml:space="preserve">
|
<data name="lbl_Heli.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label8</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label8.Type" xml:space="preserve">
|
<data name=">>lbl_Heli.Name" xml:space="preserve">
|
||||||
|
<value>lbl_Heli</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_Heli.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label8.Parent" xml:space="preserve">
|
<data name=">>lbl_Heli.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label8.ZOrder" xml:space="preserve">
|
<data name=">>lbl_Heli.ZOrder" xml:space="preserve">
|
||||||
<value>3</value>
|
<value>3</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pictureBoxHeli.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
<data name="pictureBoxHeli.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
|
@ -603,34 +603,34 @@
|
||||||
<data name=">>pictureBoxHeli.ZOrder" xml:space="preserve">
|
<data name=">>pictureBoxHeli.ZOrder" xml:space="preserve">
|
||||||
<value>4</value>
|
<value>4</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label9.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_ACHil.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label9.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label9.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_ACHil.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>337, 361</value>
|
<value>310, 361</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label9.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_ACHil.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>141, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label9.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_ACHil.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>21</value>
|
<value>21</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label9.Text" xml:space="preserve">
|
<data name="lbl_ACHil.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Quad (Simulator)</value>
|
<value>ArduCopter Quad (Simulator)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label9.Name" xml:space="preserve">
|
<data name="lbl_ACHil.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label9</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label9.Type" xml:space="preserve">
|
<data name=">>lbl_ACHil.Name" xml:space="preserve">
|
||||||
|
<value>lbl_ACHil</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_ACHil.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label9.Parent" xml:space="preserve">
|
<data name=">>lbl_ACHil.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label9.ZOrder" xml:space="preserve">
|
<data name=">>lbl_ACHil.ZOrder" xml:space="preserve">
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pictureBoxQuadHil.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
<data name="pictureBoxQuadHil.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
|
|
|
@ -646,7 +646,7 @@ namespace ArdupilotMega
|
||||||
return param;
|
return param;
|
||||||
}
|
}
|
||||||
|
|
||||||
void modifyParamForDisplay(bool fromapm, string paramname, ref float value)
|
public static void modifyParamForDisplay(bool fromapm, string paramname, ref float value)
|
||||||
{
|
{
|
||||||
if (paramname.ToUpper().EndsWith("_IMAX") || paramname.ToUpper().EndsWith("ALT_HOLD_RTL") || paramname.ToUpper().EndsWith("TRIM_ARSPD_CM")
|
if (paramname.ToUpper().EndsWith("_IMAX") || paramname.ToUpper().EndsWith("ALT_HOLD_RTL") || paramname.ToUpper().EndsWith("TRIM_ARSPD_CM")
|
||||||
|| paramname.ToUpper().EndsWith("XTRK_ANGLE_CD") || paramname.ToUpper().EndsWith("LIM_PITCH_MAX") || paramname.ToUpper().EndsWith("LIM_PITCH_MIN")
|
|| paramname.ToUpper().EndsWith("XTRK_ANGLE_CD") || paramname.ToUpper().EndsWith("LIM_PITCH_MAX") || paramname.ToUpper().EndsWith("LIM_PITCH_MIN")
|
||||||
|
|
|
@ -34,5 +34,5 @@ using System.Resources;
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.73")]
|
[assembly: AssemblyFileVersion("1.0.74")]
|
||||||
[assembly: NeutralResourcesLanguageAttribute("")]
|
[assembly: NeutralResourcesLanguageAttribute("")]
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
this.BARyaw = new ArdupilotMega.HorizontalProgressBar2();
|
this.BARyaw = new ArdupilotMega.HorizontalProgressBar2();
|
||||||
this.BARroll = new ArdupilotMega.HorizontalProgressBar2();
|
this.BARroll = new ArdupilotMega.HorizontalProgressBar2();
|
||||||
this.tabModes = new System.Windows.Forms.TabPage();
|
this.tabModes = new System.Windows.Forms.TabPage();
|
||||||
this.label29 = new System.Windows.Forms.Label();
|
|
||||||
this.CB_simple6 = new System.Windows.Forms.CheckBox();
|
this.CB_simple6 = new System.Windows.Forms.CheckBox();
|
||||||
this.CB_simple5 = new System.Windows.Forms.CheckBox();
|
this.CB_simple5 = new System.Windows.Forms.CheckBox();
|
||||||
this.CB_simple4 = new System.Windows.Forms.CheckBox();
|
this.CB_simple4 = new System.Windows.Forms.CheckBox();
|
||||||
|
@ -81,20 +80,31 @@
|
||||||
this.BUT_SaveModes = new ArdupilotMega.MyButton();
|
this.BUT_SaveModes = new ArdupilotMega.MyButton();
|
||||||
this.tabHardware = new System.Windows.Forms.TabPage();
|
this.tabHardware = new System.Windows.Forms.TabPage();
|
||||||
this.linkLabelmagdec = new System.Windows.Forms.LinkLabel();
|
this.linkLabelmagdec = new System.Windows.Forms.LinkLabel();
|
||||||
this.label106 = new System.Windows.Forms.Label();
|
|
||||||
this.label105 = new System.Windows.Forms.Label();
|
|
||||||
this.TXT_battcapacity = new System.Windows.Forms.TextBox();
|
|
||||||
this.CMB_batmontype = new System.Windows.Forms.ComboBox();
|
|
||||||
this.label100 = new System.Windows.Forms.Label();
|
this.label100 = new System.Windows.Forms.Label();
|
||||||
this.TXT_declination = new System.Windows.Forms.TextBox();
|
this.TXT_declination = new System.Windows.Forms.TextBox();
|
||||||
this.CHK_enableairspeed = new System.Windows.Forms.CheckBox();
|
this.CHK_enableairspeed = new System.Windows.Forms.CheckBox();
|
||||||
this.CHK_enablesonar = new System.Windows.Forms.CheckBox();
|
this.CHK_enablesonar = new System.Windows.Forms.CheckBox();
|
||||||
this.CHK_enablebattmon = new System.Windows.Forms.CheckBox();
|
|
||||||
this.CHK_enablecompass = new System.Windows.Forms.CheckBox();
|
this.CHK_enablecompass = new System.Windows.Forms.CheckBox();
|
||||||
this.pictureBox4 = new System.Windows.Forms.PictureBox();
|
this.pictureBox4 = new System.Windows.Forms.PictureBox();
|
||||||
this.pictureBox3 = new System.Windows.Forms.PictureBox();
|
this.pictureBox3 = new System.Windows.Forms.PictureBox();
|
||||||
this.pictureBox2 = new System.Windows.Forms.PictureBox();
|
|
||||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.tabBattery = new System.Windows.Forms.TabPage();
|
||||||
|
this.TXT_ampspervolt = new System.Windows.Forms.TextBox();
|
||||||
|
this.TXT_divider = new System.Windows.Forms.TextBox();
|
||||||
|
this.TXT_voltage = new System.Windows.Forms.TextBox();
|
||||||
|
this.TXT_measuredvoltage = new System.Windows.Forms.TextBox();
|
||||||
|
this.TXT_inputvoltage = new System.Windows.Forms.TextBox();
|
||||||
|
this.label35 = new System.Windows.Forms.Label();
|
||||||
|
this.label34 = new System.Windows.Forms.Label();
|
||||||
|
this.label33 = new System.Windows.Forms.Label();
|
||||||
|
this.label32 = new System.Windows.Forms.Label();
|
||||||
|
this.label31 = new System.Windows.Forms.Label();
|
||||||
|
this.textBox3 = new System.Windows.Forms.TextBox();
|
||||||
|
this.label29 = new System.Windows.Forms.Label();
|
||||||
|
this.label30 = new System.Windows.Forms.Label();
|
||||||
|
this.TXT_battcapacity = new System.Windows.Forms.TextBox();
|
||||||
|
this.CMB_batmontype = new System.Windows.Forms.ComboBox();
|
||||||
|
this.pictureBox5 = new System.Windows.Forms.PictureBox();
|
||||||
this.tabArducopter = new System.Windows.Forms.TabPage();
|
this.tabArducopter = new System.Windows.Forms.TabPage();
|
||||||
this.label28 = new System.Windows.Forms.Label();
|
this.label28 = new System.Windows.Forms.Label();
|
||||||
this.label16 = new System.Windows.Forms.Label();
|
this.label16 = new System.Windows.Forms.Label();
|
||||||
|
@ -144,8 +154,9 @@
|
||||||
this.tabHardware.SuspendLayout();
|
this.tabHardware.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||||
|
this.tabBattery.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
|
||||||
this.tabArducopter.SuspendLayout();
|
this.tabArducopter.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuadX)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuadX)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuad)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuad)).BeginInit();
|
||||||
|
@ -162,6 +173,7 @@
|
||||||
this.tabControl1.Controls.Add(this.tabRadioIn);
|
this.tabControl1.Controls.Add(this.tabRadioIn);
|
||||||
this.tabControl1.Controls.Add(this.tabModes);
|
this.tabControl1.Controls.Add(this.tabModes);
|
||||||
this.tabControl1.Controls.Add(this.tabHardware);
|
this.tabControl1.Controls.Add(this.tabHardware);
|
||||||
|
this.tabControl1.Controls.Add(this.tabBattery);
|
||||||
this.tabControl1.Controls.Add(this.tabArducopter);
|
this.tabControl1.Controls.Add(this.tabArducopter);
|
||||||
this.tabControl1.Controls.Add(this.tabHeli);
|
this.tabControl1.Controls.Add(this.tabHeli);
|
||||||
resources.ApplyResources(this.tabControl1, "tabControl1");
|
resources.ApplyResources(this.tabControl1, "tabControl1");
|
||||||
|
@ -364,7 +376,6 @@
|
||||||
//
|
//
|
||||||
// tabModes
|
// tabModes
|
||||||
//
|
//
|
||||||
this.tabModes.Controls.Add(this.label29);
|
|
||||||
this.tabModes.Controls.Add(this.CB_simple6);
|
this.tabModes.Controls.Add(this.CB_simple6);
|
||||||
this.tabModes.Controls.Add(this.CB_simple5);
|
this.tabModes.Controls.Add(this.CB_simple5);
|
||||||
this.tabModes.Controls.Add(this.CB_simple4);
|
this.tabModes.Controls.Add(this.CB_simple4);
|
||||||
|
@ -398,11 +409,6 @@
|
||||||
this.tabModes.Name = "tabModes";
|
this.tabModes.Name = "tabModes";
|
||||||
this.tabModes.UseVisualStyleBackColor = true;
|
this.tabModes.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
// label29
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.label29, "label29");
|
|
||||||
this.label29.Name = "label29";
|
|
||||||
//
|
|
||||||
// CB_simple6
|
// CB_simple6
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.CB_simple6, "CB_simple6");
|
resources.ApplyResources(this.CB_simple6, "CB_simple6");
|
||||||
|
@ -585,19 +591,13 @@
|
||||||
//
|
//
|
||||||
this.tabHardware.BackColor = System.Drawing.Color.DarkRed;
|
this.tabHardware.BackColor = System.Drawing.Color.DarkRed;
|
||||||
this.tabHardware.Controls.Add(this.linkLabelmagdec);
|
this.tabHardware.Controls.Add(this.linkLabelmagdec);
|
||||||
this.tabHardware.Controls.Add(this.label106);
|
|
||||||
this.tabHardware.Controls.Add(this.label105);
|
|
||||||
this.tabHardware.Controls.Add(this.TXT_battcapacity);
|
|
||||||
this.tabHardware.Controls.Add(this.CMB_batmontype);
|
|
||||||
this.tabHardware.Controls.Add(this.label100);
|
this.tabHardware.Controls.Add(this.label100);
|
||||||
this.tabHardware.Controls.Add(this.TXT_declination);
|
this.tabHardware.Controls.Add(this.TXT_declination);
|
||||||
this.tabHardware.Controls.Add(this.CHK_enableairspeed);
|
this.tabHardware.Controls.Add(this.CHK_enableairspeed);
|
||||||
this.tabHardware.Controls.Add(this.CHK_enablesonar);
|
this.tabHardware.Controls.Add(this.CHK_enablesonar);
|
||||||
this.tabHardware.Controls.Add(this.CHK_enablebattmon);
|
|
||||||
this.tabHardware.Controls.Add(this.CHK_enablecompass);
|
this.tabHardware.Controls.Add(this.CHK_enablecompass);
|
||||||
this.tabHardware.Controls.Add(this.pictureBox4);
|
this.tabHardware.Controls.Add(this.pictureBox4);
|
||||||
this.tabHardware.Controls.Add(this.pictureBox3);
|
this.tabHardware.Controls.Add(this.pictureBox3);
|
||||||
this.tabHardware.Controls.Add(this.pictureBox2);
|
|
||||||
this.tabHardware.Controls.Add(this.pictureBox1);
|
this.tabHardware.Controls.Add(this.pictureBox1);
|
||||||
resources.ApplyResources(this.tabHardware, "tabHardware");
|
resources.ApplyResources(this.tabHardware, "tabHardware");
|
||||||
this.tabHardware.Name = "tabHardware";
|
this.tabHardware.Name = "tabHardware";
|
||||||
|
@ -609,35 +609,6 @@
|
||||||
this.linkLabelmagdec.TabStop = true;
|
this.linkLabelmagdec.TabStop = true;
|
||||||
this.linkLabelmagdec.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
this.linkLabelmagdec.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
|
||||||
//
|
//
|
||||||
// label106
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.label106, "label106");
|
|
||||||
this.label106.Name = "label106";
|
|
||||||
//
|
|
||||||
// label105
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.label105, "label105");
|
|
||||||
this.label105.Name = "label105";
|
|
||||||
//
|
|
||||||
// TXT_battcapacity
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.TXT_battcapacity, "TXT_battcapacity");
|
|
||||||
this.TXT_battcapacity.Name = "TXT_battcapacity";
|
|
||||||
this.TXT_battcapacity.Validated += new System.EventHandler(this.TXT_battcapacity_Validated);
|
|
||||||
//
|
|
||||||
// CMB_batmontype
|
|
||||||
//
|
|
||||||
this.CMB_batmontype.FormattingEnabled = true;
|
|
||||||
this.CMB_batmontype.Items.AddRange(new object[] {
|
|
||||||
resources.GetString("CMB_batmontype.Items"),
|
|
||||||
resources.GetString("CMB_batmontype.Items1"),
|
|
||||||
resources.GetString("CMB_batmontype.Items2"),
|
|
||||||
resources.GetString("CMB_batmontype.Items3"),
|
|
||||||
resources.GetString("CMB_batmontype.Items4")});
|
|
||||||
resources.ApplyResources(this.CMB_batmontype, "CMB_batmontype");
|
|
||||||
this.CMB_batmontype.Name = "CMB_batmontype";
|
|
||||||
this.CMB_batmontype.SelectedIndexChanged += new System.EventHandler(this.CMB_batmontype_SelectedIndexChanged);
|
|
||||||
//
|
|
||||||
// label100
|
// label100
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.label100, "label100");
|
resources.ApplyResources(this.label100, "label100");
|
||||||
|
@ -664,13 +635,6 @@
|
||||||
this.CHK_enablesonar.UseVisualStyleBackColor = true;
|
this.CHK_enablesonar.UseVisualStyleBackColor = true;
|
||||||
this.CHK_enablesonar.CheckedChanged += new System.EventHandler(this.CHK_enablesonar_CheckedChanged);
|
this.CHK_enablesonar.CheckedChanged += new System.EventHandler(this.CHK_enablesonar_CheckedChanged);
|
||||||
//
|
//
|
||||||
// CHK_enablebattmon
|
|
||||||
//
|
|
||||||
resources.ApplyResources(this.CHK_enablebattmon, "CHK_enablebattmon");
|
|
||||||
this.CHK_enablebattmon.Name = "CHK_enablebattmon";
|
|
||||||
this.CHK_enablebattmon.UseVisualStyleBackColor = true;
|
|
||||||
this.CHK_enablebattmon.CheckedChanged += new System.EventHandler(this.CHK_enablebattmon_CheckedChanged);
|
|
||||||
//
|
|
||||||
// CHK_enablecompass
|
// CHK_enablecompass
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.CHK_enablecompass, "CHK_enablecompass");
|
resources.ApplyResources(this.CHK_enablecompass, "CHK_enablecompass");
|
||||||
|
@ -696,15 +660,6 @@
|
||||||
this.pictureBox3.Name = "pictureBox3";
|
this.pictureBox3.Name = "pictureBox3";
|
||||||
this.pictureBox3.TabStop = false;
|
this.pictureBox3.TabStop = false;
|
||||||
//
|
//
|
||||||
// pictureBox2
|
|
||||||
//
|
|
||||||
this.pictureBox2.BackColor = System.Drawing.Color.White;
|
|
||||||
this.pictureBox2.BackgroundImage = global::ArdupilotMega.Properties.Resources.attocurrent;
|
|
||||||
resources.ApplyResources(this.pictureBox2, "pictureBox2");
|
|
||||||
this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
||||||
this.pictureBox2.Name = "pictureBox2";
|
|
||||||
this.pictureBox2.TabStop = false;
|
|
||||||
//
|
|
||||||
// pictureBox1
|
// pictureBox1
|
||||||
//
|
//
|
||||||
this.pictureBox1.BackgroundImage = global::ArdupilotMega.Properties.Resources.compass;
|
this.pictureBox1.BackgroundImage = global::ArdupilotMega.Properties.Resources.compass;
|
||||||
|
@ -713,6 +668,133 @@
|
||||||
this.pictureBox1.Name = "pictureBox1";
|
this.pictureBox1.Name = "pictureBox1";
|
||||||
this.pictureBox1.TabStop = false;
|
this.pictureBox1.TabStop = false;
|
||||||
//
|
//
|
||||||
|
// tabBattery
|
||||||
|
//
|
||||||
|
this.tabBattery.Controls.Add(this.TXT_ampspervolt);
|
||||||
|
this.tabBattery.Controls.Add(this.TXT_divider);
|
||||||
|
this.tabBattery.Controls.Add(this.TXT_voltage);
|
||||||
|
this.tabBattery.Controls.Add(this.TXT_measuredvoltage);
|
||||||
|
this.tabBattery.Controls.Add(this.TXT_inputvoltage);
|
||||||
|
this.tabBattery.Controls.Add(this.label35);
|
||||||
|
this.tabBattery.Controls.Add(this.label34);
|
||||||
|
this.tabBattery.Controls.Add(this.label33);
|
||||||
|
this.tabBattery.Controls.Add(this.label32);
|
||||||
|
this.tabBattery.Controls.Add(this.label31);
|
||||||
|
this.tabBattery.Controls.Add(this.textBox3);
|
||||||
|
this.tabBattery.Controls.Add(this.label29);
|
||||||
|
this.tabBattery.Controls.Add(this.label30);
|
||||||
|
this.tabBattery.Controls.Add(this.TXT_battcapacity);
|
||||||
|
this.tabBattery.Controls.Add(this.CMB_batmontype);
|
||||||
|
this.tabBattery.Controls.Add(this.pictureBox5);
|
||||||
|
resources.ApplyResources(this.tabBattery, "tabBattery");
|
||||||
|
this.tabBattery.Name = "tabBattery";
|
||||||
|
this.tabBattery.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// TXT_ampspervolt
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.TXT_ampspervolt, "TXT_ampspervolt");
|
||||||
|
this.TXT_ampspervolt.Name = "TXT_ampspervolt";
|
||||||
|
this.TXT_ampspervolt.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_ampspervolt_Validating);
|
||||||
|
this.TXT_ampspervolt.Validated += new System.EventHandler(this.TXT_ampspervolt_Validated);
|
||||||
|
//
|
||||||
|
// TXT_divider
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.TXT_divider, "TXT_divider");
|
||||||
|
this.TXT_divider.Name = "TXT_divider";
|
||||||
|
this.TXT_divider.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_divider_Validating);
|
||||||
|
this.TXT_divider.Validated += new System.EventHandler(this.TXT_divider_Validated);
|
||||||
|
//
|
||||||
|
// TXT_voltage
|
||||||
|
//
|
||||||
|
this.TXT_voltage.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.currentStateBindingSource, "battery_voltage", true));
|
||||||
|
resources.ApplyResources(this.TXT_voltage, "TXT_voltage");
|
||||||
|
this.TXT_voltage.Name = "TXT_voltage";
|
||||||
|
this.TXT_voltage.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// TXT_measuredvoltage
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.TXT_measuredvoltage, "TXT_measuredvoltage");
|
||||||
|
this.TXT_measuredvoltage.Name = "TXT_measuredvoltage";
|
||||||
|
this.TXT_measuredvoltage.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_measuredvoltage_Validating);
|
||||||
|
this.TXT_measuredvoltage.Validated += new System.EventHandler(this.TXT_measuredvoltage_Validated);
|
||||||
|
//
|
||||||
|
// TXT_inputvoltage
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.TXT_inputvoltage, "TXT_inputvoltage");
|
||||||
|
this.TXT_inputvoltage.Name = "TXT_inputvoltage";
|
||||||
|
this.TXT_inputvoltage.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_inputvoltage_Validating);
|
||||||
|
this.TXT_inputvoltage.Validated += new System.EventHandler(this.TXT_inputvoltage_Validated);
|
||||||
|
//
|
||||||
|
// label35
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label35, "label35");
|
||||||
|
this.label35.Name = "label35";
|
||||||
|
//
|
||||||
|
// label34
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label34, "label34");
|
||||||
|
this.label34.Name = "label34";
|
||||||
|
//
|
||||||
|
// label33
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label33, "label33");
|
||||||
|
this.label33.Name = "label33";
|
||||||
|
//
|
||||||
|
// label32
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label32, "label32");
|
||||||
|
this.label32.Name = "label32";
|
||||||
|
//
|
||||||
|
// label31
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label31, "label31");
|
||||||
|
this.label31.Name = "label31";
|
||||||
|
//
|
||||||
|
// textBox3
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.textBox3, "textBox3");
|
||||||
|
this.textBox3.Name = "textBox3";
|
||||||
|
this.textBox3.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// label29
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label29, "label29");
|
||||||
|
this.label29.Name = "label29";
|
||||||
|
//
|
||||||
|
// label30
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.label30, "label30");
|
||||||
|
this.label30.Name = "label30";
|
||||||
|
//
|
||||||
|
// TXT_battcapacity
|
||||||
|
//
|
||||||
|
resources.ApplyResources(this.TXT_battcapacity, "TXT_battcapacity");
|
||||||
|
this.TXT_battcapacity.Name = "TXT_battcapacity";
|
||||||
|
this.TXT_battcapacity.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_battcapacity_Validating);
|
||||||
|
this.TXT_battcapacity.Validated += new System.EventHandler(this.TXT_battcapacity_Validated);
|
||||||
|
//
|
||||||
|
// CMB_batmontype
|
||||||
|
//
|
||||||
|
this.CMB_batmontype.FormattingEnabled = true;
|
||||||
|
this.CMB_batmontype.Items.AddRange(new object[] {
|
||||||
|
resources.GetString("CMB_batmontype.Items"),
|
||||||
|
resources.GetString("CMB_batmontype.Items1"),
|
||||||
|
resources.GetString("CMB_batmontype.Items2"),
|
||||||
|
resources.GetString("CMB_batmontype.Items3"),
|
||||||
|
resources.GetString("CMB_batmontype.Items4")});
|
||||||
|
resources.ApplyResources(this.CMB_batmontype, "CMB_batmontype");
|
||||||
|
this.CMB_batmontype.Name = "CMB_batmontype";
|
||||||
|
this.CMB_batmontype.SelectedIndexChanged += new System.EventHandler(this.CMB_batmontype_SelectedIndexChanged);
|
||||||
|
//
|
||||||
|
// pictureBox5
|
||||||
|
//
|
||||||
|
this.pictureBox5.BackColor = System.Drawing.Color.White;
|
||||||
|
this.pictureBox5.BackgroundImage = global::ArdupilotMega.Properties.Resources.attocurrent;
|
||||||
|
resources.ApplyResources(this.pictureBox5, "pictureBox5");
|
||||||
|
this.pictureBox5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.pictureBox5.Name = "pictureBox5";
|
||||||
|
this.pictureBox5.TabStop = false;
|
||||||
|
//
|
||||||
// tabArducopter
|
// tabArducopter
|
||||||
//
|
//
|
||||||
this.tabArducopter.Controls.Add(this.label28);
|
this.tabArducopter.Controls.Add(this.label28);
|
||||||
|
@ -1188,8 +1270,10 @@
|
||||||
this.tabHardware.PerformLayout();
|
this.tabHardware.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||||
|
this.tabBattery.ResumeLayout(false);
|
||||||
|
this.tabBattery.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
|
||||||
this.tabArducopter.ResumeLayout(false);
|
this.tabArducopter.ResumeLayout(false);
|
||||||
this.tabArducopter.PerformLayout();
|
this.tabArducopter.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuadX)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuadX)).EndInit();
|
||||||
|
@ -1246,17 +1330,11 @@
|
||||||
private System.Windows.Forms.Label LBL_flightmodepwm;
|
private System.Windows.Forms.Label LBL_flightmodepwm;
|
||||||
private System.Windows.Forms.PictureBox pictureBox4;
|
private System.Windows.Forms.PictureBox pictureBox4;
|
||||||
private System.Windows.Forms.PictureBox pictureBox3;
|
private System.Windows.Forms.PictureBox pictureBox3;
|
||||||
private System.Windows.Forms.PictureBox pictureBox2;
|
|
||||||
private System.Windows.Forms.PictureBox pictureBox1;
|
private System.Windows.Forms.PictureBox pictureBox1;
|
||||||
private System.Windows.Forms.Label label106;
|
|
||||||
private System.Windows.Forms.Label label105;
|
|
||||||
private System.Windows.Forms.TextBox TXT_battcapacity;
|
|
||||||
private System.Windows.Forms.ComboBox CMB_batmontype;
|
|
||||||
private System.Windows.Forms.Label label100;
|
private System.Windows.Forms.Label label100;
|
||||||
private System.Windows.Forms.TextBox TXT_declination;
|
private System.Windows.Forms.TextBox TXT_declination;
|
||||||
private System.Windows.Forms.CheckBox CHK_enableairspeed;
|
private System.Windows.Forms.CheckBox CHK_enableairspeed;
|
||||||
private System.Windows.Forms.CheckBox CHK_enablesonar;
|
private System.Windows.Forms.CheckBox CHK_enablesonar;
|
||||||
private System.Windows.Forms.CheckBox CHK_enablebattmon;
|
|
||||||
private System.Windows.Forms.CheckBox CHK_enablecompass;
|
private System.Windows.Forms.CheckBox CHK_enablecompass;
|
||||||
private System.Windows.Forms.TabPage tabReset;
|
private System.Windows.Forms.TabPage tabReset;
|
||||||
private MyButton BUT_reset;
|
private MyButton BUT_reset;
|
||||||
|
@ -1312,6 +1390,22 @@
|
||||||
private System.Windows.Forms.CheckBox CB_simple2;
|
private System.Windows.Forms.CheckBox CB_simple2;
|
||||||
private System.Windows.Forms.CheckBox CB_simple1;
|
private System.Windows.Forms.CheckBox CB_simple1;
|
||||||
private System.Windows.Forms.Label label29;
|
private System.Windows.Forms.Label label29;
|
||||||
|
private System.Windows.Forms.TabPage tabBattery;
|
||||||
|
private System.Windows.Forms.Label label30;
|
||||||
|
private System.Windows.Forms.TextBox TXT_battcapacity;
|
||||||
|
private System.Windows.Forms.ComboBox CMB_batmontype;
|
||||||
|
private System.Windows.Forms.PictureBox pictureBox5;
|
||||||
|
private System.Windows.Forms.TextBox textBox3;
|
||||||
|
private System.Windows.Forms.Label label31;
|
||||||
|
private System.Windows.Forms.TextBox TXT_ampspervolt;
|
||||||
|
private System.Windows.Forms.TextBox TXT_divider;
|
||||||
|
private System.Windows.Forms.TextBox TXT_voltage;
|
||||||
|
private System.Windows.Forms.TextBox TXT_measuredvoltage;
|
||||||
|
private System.Windows.Forms.TextBox TXT_inputvoltage;
|
||||||
|
private System.Windows.Forms.Label label35;
|
||||||
|
private System.Windows.Forms.Label label34;
|
||||||
|
private System.Windows.Forms.Label label33;
|
||||||
|
private System.Windows.Forms.Label label32;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -334,20 +334,47 @@ namespace ArdupilotMega.Setup
|
||||||
if (MainV2.comPort.param["MAG_ENABLE"] != null)
|
if (MainV2.comPort.param["MAG_ENABLE"] != null)
|
||||||
CHK_enablecompass.Checked = MainV2.comPort.param["MAG_ENABLE"].ToString() == "1" ? true : false;
|
CHK_enablecompass.Checked = MainV2.comPort.param["MAG_ENABLE"].ToString() == "1" ? true : false;
|
||||||
|
|
||||||
|
if (MainV2.comPort.param["COMPASS_DEC"] != null)
|
||||||
|
TXT_declination.Text = (float.Parse(MainV2.comPort.param["COMPASS_DEC"].ToString()) * rad2deg).ToString();
|
||||||
|
startup = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (tabControl1.SelectedTab == tabBattery)
|
||||||
|
{
|
||||||
|
startup = true;
|
||||||
|
bool not_supported = false;
|
||||||
if (MainV2.comPort.param["BATT_MONITOR"] != null)
|
if (MainV2.comPort.param["BATT_MONITOR"] != null)
|
||||||
{
|
{
|
||||||
if (MainV2.comPort.param["BATT_MONITOR"].ToString() != "0")
|
if (MainV2.comPort.param["BATT_MONITOR"].ToString() != "0")
|
||||||
{
|
{
|
||||||
CHK_enablebattmon.Checked = true;
|
|
||||||
CMB_batmontype.SelectedIndex = (int)float.Parse(MainV2.comPort.param["BATT_MONITOR"].ToString());
|
CMB_batmontype.SelectedIndex = (int)float.Parse(MainV2.comPort.param["BATT_MONITOR"].ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MainV2.comPort.param["COMPASS_DEC"] != null)
|
|
||||||
TXT_declination.Text = (float.Parse(MainV2.comPort.param["COMPASS_DEC"].ToString()) * rad2deg).ToString();
|
|
||||||
|
|
||||||
if (MainV2.comPort.param["BATT_CAPACITY"] != null)
|
if (MainV2.comPort.param["BATT_CAPACITY"] != null)
|
||||||
TXT_battcapacity.Text = MainV2.comPort.param["BATT_CAPACITY"].ToString();
|
TXT_battcapacity.Text = MainV2.comPort.param["BATT_CAPACITY"].ToString();
|
||||||
|
if (MainV2.comPort.param["INPUT_VOLTS"] != null)
|
||||||
|
TXT_inputvoltage.Text = MainV2.comPort.param["INPUT_VOLTS"].ToString();
|
||||||
|
else
|
||||||
|
not_supported = true;
|
||||||
|
TXT_voltage.Text = MainV2.cs.battery_voltage.ToString();
|
||||||
|
TXT_measuredvoltage.Text = TXT_voltage.Text;
|
||||||
|
if (MainV2.comPort.param["VOLT_DIVIDER"] != null)
|
||||||
|
TXT_divider.Text = MainV2.comPort.param["VOLT_DIVIDER"].ToString();
|
||||||
|
else
|
||||||
|
not_supported = true;
|
||||||
|
if (MainV2.comPort.param["AMP_PER_VOLT"] != null)
|
||||||
|
TXT_ampspervolt.Text = MainV2.comPort.param["AMP_PER_VOLT"].ToString();
|
||||||
|
else
|
||||||
|
not_supported = true;
|
||||||
|
if (not_supported)
|
||||||
|
{
|
||||||
|
TXT_inputvoltage.Enabled = false;
|
||||||
|
TXT_measuredvoltage.Enabled = false;
|
||||||
|
TXT_divider.Enabled = false;
|
||||||
|
TXT_ampspervolt.Enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
startup = false;
|
startup = false;
|
||||||
}
|
}
|
||||||
|
@ -434,44 +461,13 @@ namespace ArdupilotMega.Setup
|
||||||
}
|
}
|
||||||
catch { MessageBox.Show("Failed to set Flight modes"); }
|
catch { MessageBox.Show("Failed to set Flight modes"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TXT_declination_Validating(object sender, CancelEventArgs e)
|
private void TXT_declination_Validating(object sender, CancelEventArgs e)
|
||||||
{
|
{
|
||||||
float ans = 0;
|
float ans = 0;
|
||||||
e.Cancel = !float.TryParse(TXT_declination.Text, out ans);
|
e.Cancel = !float.TryParse(TXT_declination.Text, out ans);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TXT_battcapacity_Validating(object sender, CancelEventArgs e)
|
|
||||||
{
|
|
||||||
float ans = 0;
|
|
||||||
e.Cancel = !float.TryParse(TXT_declination.Text, out ans);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CMB_batmontype_SelectedIndexChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (startup)
|
|
||||||
return;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (MainV2.comPort.param["BATT_MONITOR"] == null)
|
|
||||||
{
|
|
||||||
MessageBox.Show("Not Available");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
MainV2.comPort.setParam("BATT_MONITOR", CMB_batmontype.SelectedIndex);
|
|
||||||
if (CMB_batmontype.SelectedIndex != 0)
|
|
||||||
{
|
|
||||||
CHK_enablebattmon.Checked = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
CHK_enablebattmon.Checked = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch { MessageBox.Show("Set BATT_MONITOR Failed"); }
|
|
||||||
}
|
|
||||||
|
|
||||||
private void TXT_declination_Validated(object sender, EventArgs e)
|
private void TXT_declination_Validated(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (startup)
|
if (startup)
|
||||||
|
@ -508,23 +504,6 @@ namespace ArdupilotMega.Setup
|
||||||
catch { MessageBox.Show("Set COMPASS_DEC Failed"); }
|
catch { MessageBox.Show("Set COMPASS_DEC Failed"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TXT_battcapacity_Validated(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (startup || ((TextBox)sender).Enabled == false)
|
|
||||||
return;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (MainV2.comPort.param["BATT_CAPACITY"] == null)
|
|
||||||
{
|
|
||||||
MessageBox.Show("Not Available");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
MainV2.comPort.setParam("BATT_CAPACITY", float.Parse(TXT_battcapacity.Text));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch { MessageBox.Show("Set BATT_CAPACITY Failed"); }
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CHK_enablecompass_CheckedChanged(object sender, EventArgs e)
|
private void CHK_enablecompass_CheckedChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
@ -546,24 +525,6 @@ namespace ArdupilotMega.Setup
|
||||||
|
|
||||||
//((CheckBox)sender).Checked = !((CheckBox)sender).Checked;
|
//((CheckBox)sender).Checked = !((CheckBox)sender).Checked;
|
||||||
|
|
||||||
private void CHK_enablebattmon_CheckedChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (startup)
|
|
||||||
return;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (((CheckBox)sender).Checked == false)
|
|
||||||
{
|
|
||||||
CMB_batmontype.SelectedIndex = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (CMB_batmontype.SelectedIndex <= 0)
|
|
||||||
CMB_batmontype.SelectedIndex = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch { MessageBox.Show("Set BATT_MONITOR Failed"); }
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CHK_enablesonar_CheckedChanged(object sender, EventArgs e)
|
private void CHK_enablesonar_CheckedChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
@ -600,6 +561,158 @@ namespace ArdupilotMega.Setup
|
||||||
}
|
}
|
||||||
catch { MessageBox.Show("Set ARSPD_ENABLE Failed"); }
|
catch { MessageBox.Show("Set ARSPD_ENABLE Failed"); }
|
||||||
}
|
}
|
||||||
|
private void CHK_enablebattmon_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (startup)
|
||||||
|
return;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (((CheckBox)sender).Checked == false)
|
||||||
|
{
|
||||||
|
CMB_batmontype.SelectedIndex = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (CMB_batmontype.SelectedIndex <= 0)
|
||||||
|
CMB_batmontype.SelectedIndex = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { MessageBox.Show("Set BATT_MONITOR Failed"); }
|
||||||
|
}
|
||||||
|
private void TXT_battcapacity_Validating(object sender, CancelEventArgs e)
|
||||||
|
{
|
||||||
|
float ans = 0;
|
||||||
|
e.Cancel = !float.TryParse(TXT_declination.Text, out ans);
|
||||||
|
}
|
||||||
|
private void TXT_battcapacity_Validated(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (startup || ((TextBox)sender).Enabled == false)
|
||||||
|
return;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (MainV2.comPort.param["BATT_CAPACITY"] == null)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Not Available");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MainV2.comPort.setParam("BATT_CAPACITY", float.Parse(TXT_battcapacity.Text));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { MessageBox.Show("Set BATT_CAPACITY Failed"); }
|
||||||
|
}
|
||||||
|
private void CMB_batmontype_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (startup)
|
||||||
|
return;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (MainV2.comPort.param["BATT_MONITOR"] == null)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Not Available");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MainV2.comPort.setParam("BATT_MONITOR", CMB_batmontype.SelectedIndex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { MessageBox.Show("Set BATT_MONITOR Failed"); }
|
||||||
|
}
|
||||||
|
private void TXT_inputvoltage_Validating(object sender, CancelEventArgs e)
|
||||||
|
{
|
||||||
|
float ans = 0;
|
||||||
|
e.Cancel = !float.TryParse(TXT_inputvoltage.Text, out ans);
|
||||||
|
}
|
||||||
|
private void TXT_inputvoltage_Validated(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (startup || ((TextBox)sender).Enabled == false)
|
||||||
|
return;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (MainV2.comPort.param["INPUT_VOLTS"] == null)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Not Available");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MainV2.comPort.setParam("INPUT_VOLTS", float.Parse(TXT_inputvoltage.Text));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { MessageBox.Show("Set INPUT_VOLTS Failed"); }
|
||||||
|
}
|
||||||
|
private void TXT_measuredvoltage_Validating(object sender, CancelEventArgs e)
|
||||||
|
{
|
||||||
|
float ans = 0;
|
||||||
|
e.Cancel = !float.TryParse(TXT_measuredvoltage.Text, out ans);
|
||||||
|
}
|
||||||
|
private void TXT_measuredvoltage_Validated(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (startup || ((TextBox)sender).Enabled == false)
|
||||||
|
return;
|
||||||
|
float measuredvoltage = float.Parse(TXT_measuredvoltage.Text);
|
||||||
|
float voltage = float.Parse(TXT_voltage.Text);
|
||||||
|
float divider = float.Parse(TXT_divider.Text);
|
||||||
|
if (voltage == 0)
|
||||||
|
return;
|
||||||
|
float new_divider = (measuredvoltage * divider) / voltage;
|
||||||
|
TXT_divider.Text = new_divider.ToString();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (MainV2.comPort.param["VOLT_DIVIDER"] == null)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Not Available");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MainV2.comPort.setParam("VOLT_DIVIDER", float.Parse(TXT_divider.Text));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { MessageBox.Show("Set VOLT_DIVIDER Failed"); }
|
||||||
|
}
|
||||||
|
private void TXT_divider_Validating(object sender, CancelEventArgs e)
|
||||||
|
{
|
||||||
|
float ans = 0;
|
||||||
|
e.Cancel = !float.TryParse(TXT_divider.Text, out ans);
|
||||||
|
}
|
||||||
|
private void TXT_divider_Validated(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (startup || ((TextBox)sender).Enabled == false)
|
||||||
|
return;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (MainV2.comPort.param["VOLT_DIVIDER"] == null)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Not Available");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MainV2.comPort.setParam("VOLT_DIVIDER", float.Parse(TXT_divider.Text));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { MessageBox.Show("Set VOLT_DIVIDER Failed"); }
|
||||||
|
}
|
||||||
|
private void TXT_ampspervolt_Validating(object sender, CancelEventArgs e)
|
||||||
|
{
|
||||||
|
float ans = 0;
|
||||||
|
e.Cancel = !float.TryParse(TXT_ampspervolt.Text, out ans);
|
||||||
|
}
|
||||||
|
private void TXT_ampspervolt_Validated(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (startup || ((TextBox)sender).Enabled == false)
|
||||||
|
return;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (MainV2.comPort.param["AMP_PER_VOLT"] == null)
|
||||||
|
{
|
||||||
|
MessageBox.Show("Not Available");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MainV2.comPort.setParam("AMP_PER_VOLT", float.Parse(TXT_ampspervolt.Text));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { MessageBox.Show("Set AMP_PER_VOLT Failed"); }
|
||||||
|
}
|
||||||
|
|
||||||
private void BUT_reset_Click(object sender, EventArgs e)
|
private void BUT_reset_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -336,34 +336,34 @@
|
||||||
<data name=">>progress.ZOrder" xml:space="preserve">
|
<data name=">>progress.ZOrder" xml:space="preserve">
|
||||||
<value>13</value>
|
<value>13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_AP.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label1.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_AP.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>113, 167</value>
|
<value>42, 168</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_AP.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>56, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_AP.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>8</value>
|
<value>8</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.Text" xml:space="preserve">
|
<data name="lbl_AP.Text" xml:space="preserve">
|
||||||
<value>ArduPlane</value>
|
<value>ArduPlane</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.Name" xml:space="preserve">
|
<data name="lbl_AP.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label1</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.Type" xml:space="preserve">
|
<data name=">>lbl_AP.Name" xml:space="preserve">
|
||||||
|
<value>lbl_AP</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_AP.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.Parent" xml:space="preserve">
|
<data name=">>lbl_AP.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.ZOrder" xml:space="preserve">
|
<data name=">>lbl_AP.ZOrder" xml:space="preserve">
|
||||||
<value>11</value>
|
<value>11</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
|
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
|
||||||
|
@ -396,184 +396,184 @@
|
||||||
<data name=">>label2.ZOrder" xml:space="preserve">
|
<data name=">>label2.ZOrder" xml:space="preserve">
|
||||||
<value>10</value>
|
<value>10</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label3.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_APHil.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label3.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label3.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_APHil.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>74, 361</value>
|
<value>42, 361</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label3.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_APHil.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>142, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label3.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_APHil.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>10</value>
|
<value>10</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label3.Text" xml:space="preserve">
|
<data name="lbl_APHil.Text" xml:space="preserve">
|
||||||
<value>ArduPlane (Xplane simulator)</value>
|
<value>ArduPlane (Xplane simulator)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label3.Name" xml:space="preserve">
|
<data name="lbl_APHil.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label3</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label3.Type" xml:space="preserve">
|
<data name=">>lbl_APHil.Name" xml:space="preserve">
|
||||||
|
<value>lbl_APHil</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_APHil.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label3.Parent" xml:space="preserve">
|
<data name=">>lbl_APHil.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label3.ZOrder" xml:space="preserve">
|
<data name=">>lbl_APHil.ZOrder" xml:space="preserve">
|
||||||
<value>9</value>
|
<value>9</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label4.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_ACQuad.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label4.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label4.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_ACQuad.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>612, 168</value>
|
<value>560, 168</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label4.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_ACQuad.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>89, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label4.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_ACQuad.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>11</value>
|
<value>11</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label4.Text" xml:space="preserve">
|
<data name="lbl_ACQuad.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Quad</value>
|
<value>ArduCopter Quad</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label4.Name" xml:space="preserve">
|
<data name="lbl_ACQuad.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label4</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label4.Type" xml:space="preserve">
|
<data name=">>lbl_ACQuad.Name" xml:space="preserve">
|
||||||
|
<value>lbl_ACQuad</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_ACQuad.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label4.Parent" xml:space="preserve">
|
<data name=">>lbl_ACQuad.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label4.ZOrder" xml:space="preserve">
|
<data name=">>lbl_ACQuad.ZOrder" xml:space="preserve">
|
||||||
<value>8</value>
|
<value>8</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label5.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_ACHexa.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label5.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label5.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_ACHexa.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>817, 167</value>
|
<value>767, 168</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label5.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_ACHexa.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>88, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label5.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_ACHexa.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>12</value>
|
<value>12</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label5.Text" xml:space="preserve">
|
<data name="lbl_ACHexa.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Hexa</value>
|
<value>ArduCopter Hexa</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label5.Name" xml:space="preserve">
|
<data name="lbl_ACHexa.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label5</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label5.Type" xml:space="preserve">
|
<data name=">>lbl_ACHexa.Name" xml:space="preserve">
|
||||||
|
<value>lbl_ACHexa</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_ACHexa.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label5.Parent" xml:space="preserve">
|
<data name=">>lbl_ACHexa.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label5.ZOrder" xml:space="preserve">
|
<data name=">>lbl_ACHexa.ZOrder" xml:space="preserve">
|
||||||
<value>7</value>
|
<value>7</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label6.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_ACTri.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label6.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label6.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_ACTri.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>623, 355</value>
|
<value>560, 361</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label6.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_ACTri.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>75, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label6.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_ACTri.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>13</value>
|
<value>13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label6.Text" xml:space="preserve">
|
<data name="lbl_ACTri.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Tri</value>
|
<value>ArduCopter Tri</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label6.Name" xml:space="preserve">
|
<data name="lbl_ACTri.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label6</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label6.Type" xml:space="preserve">
|
<data name=">>lbl_ACTri.Name" xml:space="preserve">
|
||||||
|
<value>lbl_ACTri</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_ACTri.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label6.Parent" xml:space="preserve">
|
<data name=">>lbl_ACTri.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label6.ZOrder" xml:space="preserve">
|
<data name=">>lbl_ACTri.ZOrder" xml:space="preserve">
|
||||||
<value>6</value>
|
<value>6</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label7.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_ACY6.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label7.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label7.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_ACY6.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>831, 355</value>
|
<value>767, 361</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label7.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_ACY6.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>76, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label7.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_ACY6.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>14</value>
|
<value>14</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label7.Text" xml:space="preserve">
|
<data name="lbl_ACY6.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Y6</value>
|
<value>ArduCopter Y6</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label7.Name" xml:space="preserve">
|
<data name="lbl_ACY6.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label7</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label7.Type" xml:space="preserve">
|
<data name=">>lbl_ACY6.Name" xml:space="preserve">
|
||||||
|
<value>lbl_ACY6</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_ACY6.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label7.Parent" xml:space="preserve">
|
<data name=">>lbl_ACY6.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label7.ZOrder" xml:space="preserve">
|
<data name=">>lbl_ACY6.ZOrder" xml:space="preserve">
|
||||||
<value>5</value>
|
<value>5</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label8.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_Heli.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label8.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label8.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_Heli.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>372, 168</value>
|
<value>310, 167</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label8.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_Heli.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>81, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label8.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_Heli.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>18</value>
|
<value>18</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label8.Text" xml:space="preserve">
|
<data name="lbl_Heli.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Heli</value>
|
<value>ArduCopter Heli</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label8.Name" xml:space="preserve">
|
<data name="lbl_Heli.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label8</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label8.Type" xml:space="preserve">
|
<data name=">>lbl_Heli.Name" xml:space="preserve">
|
||||||
|
<value>lbl_Heli</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_Heli.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label8.Parent" xml:space="preserve">
|
<data name=">>lbl_Heli.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label8.ZOrder" xml:space="preserve">
|
<data name=">>lbl_Heli.ZOrder" xml:space="preserve">
|
||||||
<value>3</value>
|
<value>3</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pictureBoxHeli.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
<data name="pictureBoxHeli.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
|
@ -603,34 +603,34 @@
|
||||||
<data name=">>pictureBoxHeli.ZOrder" xml:space="preserve">
|
<data name=">>pictureBoxHeli.ZOrder" xml:space="preserve">
|
||||||
<value>4</value>
|
<value>4</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label9.AutoSize" type="System.Boolean, mscorlib">
|
<data name="lbl_ACHil.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
<value>True</value>
|
|
||||||
</data>
|
|
||||||
<data name="label9.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
|
||||||
<value>NoControl</value>
|
<value>NoControl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label9.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="lbl_ACHil.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>337, 361</value>
|
<value>310, 361</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label9.Size" type="System.Drawing.Size, System.Drawing">
|
<data name="lbl_ACHil.Size" type="System.Drawing.Size, System.Drawing">
|
||||||
<value>141, 13</value>
|
<value>190, 13</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label9.TabIndex" type="System.Int32, mscorlib">
|
<data name="lbl_ACHil.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>21</value>
|
<value>21</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label9.Text" xml:space="preserve">
|
<data name="lbl_ACHil.Text" xml:space="preserve">
|
||||||
<value>ArduCopter Quad (Simulator)</value>
|
<value>ArduCopter Quad (Simulator)</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label9.Name" xml:space="preserve">
|
<data name="lbl_ACHil.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||||
<value>label9</value>
|
<value>TopCenter</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label9.Type" xml:space="preserve">
|
<data name=">>lbl_ACHil.Name" xml:space="preserve">
|
||||||
|
<value>lbl_ACHil</value>
|
||||||
|
</data>
|
||||||
|
<data name=">>lbl_ACHil.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label9.Parent" xml:space="preserve">
|
<data name=">>lbl_ACHil.Parent" xml:space="preserve">
|
||||||
<value>$this</value>
|
<value>$this</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label9.ZOrder" xml:space="preserve">
|
<data name=">>lbl_ACHil.ZOrder" xml:space="preserve">
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="pictureBoxQuadHil.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
<data name="pictureBoxQuadHil.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||||
|
|
|
@ -30,11 +30,12 @@
|
||||||
{
|
{
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ParamCompare));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ParamCompare));
|
||||||
this.Params = new System.Windows.Forms.DataGridView();
|
this.Params = new System.Windows.Forms.DataGridView();
|
||||||
this.BUT_save = new ArdupilotMega.MyButton();
|
|
||||||
this.Command = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.Command = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.Value = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.Value = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.newvalue = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.newvalue = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.Use = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
this.Use = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||||
|
this.BUT_save = new ArdupilotMega.MyButton();
|
||||||
|
this.CHK_toggleall = new System.Windows.Forms.CheckBox();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.Params)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.Params)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
|
@ -54,16 +55,6 @@
|
||||||
this.Params.Size = new System.Drawing.Size(428, 467);
|
this.Params.Size = new System.Drawing.Size(428, 467);
|
||||||
this.Params.TabIndex = 0;
|
this.Params.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// BUT_save
|
|
||||||
//
|
|
||||||
this.BUT_save.Location = new System.Drawing.Point(185, 485);
|
|
||||||
this.BUT_save.Name = "BUT_save";
|
|
||||||
this.BUT_save.Size = new System.Drawing.Size(75, 23);
|
|
||||||
this.BUT_save.TabIndex = 1;
|
|
||||||
this.BUT_save.Text = "Continue";
|
|
||||||
this.BUT_save.UseVisualStyleBackColor = true;
|
|
||||||
this.BUT_save.Click += new System.EventHandler(this.BUT_save_Click);
|
|
||||||
//
|
|
||||||
// Command
|
// Command
|
||||||
//
|
//
|
||||||
this.Command.HeaderText = "Command";
|
this.Command.HeaderText = "Command";
|
||||||
|
@ -89,11 +80,35 @@
|
||||||
this.Use.Name = "Use";
|
this.Use.Name = "Use";
|
||||||
this.Use.Width = 50;
|
this.Use.Width = 50;
|
||||||
//
|
//
|
||||||
|
// BUT_save
|
||||||
|
//
|
||||||
|
this.BUT_save.Location = new System.Drawing.Point(185, 485);
|
||||||
|
this.BUT_save.Name = "BUT_save";
|
||||||
|
this.BUT_save.Size = new System.Drawing.Size(75, 23);
|
||||||
|
this.BUT_save.TabIndex = 1;
|
||||||
|
this.BUT_save.Text = "Continue";
|
||||||
|
this.BUT_save.UseVisualStyleBackColor = true;
|
||||||
|
this.BUT_save.Click += new System.EventHandler(this.BUT_save_Click);
|
||||||
|
//
|
||||||
|
// CHK_toggleall
|
||||||
|
//
|
||||||
|
this.CHK_toggleall.AutoSize = true;
|
||||||
|
this.CHK_toggleall.Checked = true;
|
||||||
|
this.CHK_toggleall.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.CHK_toggleall.Location = new System.Drawing.Point(320, 489);
|
||||||
|
this.CHK_toggleall.Name = "CHK_toggleall";
|
||||||
|
this.CHK_toggleall.Size = new System.Drawing.Size(120, 17);
|
||||||
|
this.CHK_toggleall.TabIndex = 2;
|
||||||
|
this.CHK_toggleall.Text = "Check/Uncheck All";
|
||||||
|
this.CHK_toggleall.UseVisualStyleBackColor = true;
|
||||||
|
this.CHK_toggleall.CheckedChanged += new System.EventHandler(this.CHK_toggleall_CheckedChanged);
|
||||||
|
//
|
||||||
// ParamCompare
|
// ParamCompare
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(457, 516);
|
this.ClientSize = new System.Drawing.Size(457, 516);
|
||||||
|
this.Controls.Add(this.CHK_toggleall);
|
||||||
this.Controls.Add(this.BUT_save);
|
this.Controls.Add(this.BUT_save);
|
||||||
this.Controls.Add(this.Params);
|
this.Controls.Add(this.Params);
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||||
|
@ -102,6 +117,7 @@
|
||||||
this.Text = "ParamCompare";
|
this.Text = "ParamCompare";
|
||||||
((System.ComponentModel.ISupportInitialize)(this.Params)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.Params)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,5 +129,6 @@
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn Value;
|
private System.Windows.Forms.DataGridViewTextBoxColumn Value;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn newvalue;
|
private System.Windows.Forms.DataGridViewTextBoxColumn newvalue;
|
||||||
private System.Windows.Forms.DataGridViewCheckBoxColumn Use;
|
private System.Windows.Forms.DataGridViewCheckBoxColumn Use;
|
||||||
|
private System.Windows.Forms.CheckBox CHK_toggleall;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -38,17 +38,18 @@ namespace ArdupilotMega
|
||||||
//System.Diagnostics.Debug.WriteLine("Doing: " + value);
|
//System.Diagnostics.Debug.WriteLine("Doing: " + value);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (param[value] != param2[value])
|
if (param[value].ToString() != param2[value].ToString()) // this will throw is there is no matching key
|
||||||
{
|
{
|
||||||
|
Console.WriteLine("{0} {1} vs {2}", value, param[value], param2[value]);
|
||||||
Params.Rows.Add();
|
Params.Rows.Add();
|
||||||
Params.Rows[Params.RowCount - 1].Cells[Command.Index].Value = value;
|
Params.Rows[Params.RowCount - 1].Cells[Command.Index].Value = value;
|
||||||
Params.Rows[Params.RowCount - 1].Cells[Value.Index].Value = ((float)param[value]).ToString("0.###");
|
Params.Rows[Params.RowCount - 1].Cells[Value.Index].Value = param[value].ToString();
|
||||||
|
|
||||||
Params.Rows[Params.RowCount - 1].Cells[newvalue.Index].Value = ((float)param2[value]).ToString("0.###");
|
Params.Rows[Params.RowCount - 1].Cells[newvalue.Index].Value = param2[value].ToString();
|
||||||
Params.Rows[Params.RowCount - 1].Cells[Use.Index].Value = true;
|
Params.Rows[Params.RowCount - 1].Cells[Use.Index].Value = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch { if (Params.RowCount > 1) { Params.Rows.RemoveAt(Params.RowCount - 1); } }
|
catch { };//if (Params.RowCount > 1) { Params.Rows.RemoveAt(Params.RowCount - 1); } }
|
||||||
|
|
||||||
}
|
}
|
||||||
Params.Sort(Params.Columns[0], ListSortDirection.Ascending);
|
Params.Sort(Params.Columns[0], ListSortDirection.Ascending);
|
||||||
|
@ -65,5 +66,13 @@ namespace ArdupilotMega
|
||||||
}
|
}
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void CHK_toggleall_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
foreach (DataGridViewRow row in Params.Rows)
|
||||||
|
{
|
||||||
|
row.Cells[Use.Index].Value = CHK_toggleall.Checked;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue