mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-15 21:05:40 +08:00
APM Planner 1.1.0
firmware setup for apm 2.0 add kml overlay in planner fix reset to defaults timeout/ firmware upload
This commit is contained in:
1 parent
56316e7733
commit
2268646815
19 files changed
+3778
-4205
No files matched your search
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Management;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ArdupilotMega
|
||||
{
|
||||
@@ -55,26 +56,6 @@ namespace ArdupilotMega
|
||||
|
||||
System.Threading.Thread.Sleep(500);
|
||||
|
||||
//HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_2341&PID_0010\640333439373519060F0\Device Parameters
|
||||
if (!MainV2.MONO)
|
||||
{
|
||||
ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_USBControllerDevice");
|
||||
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
|
||||
foreach (ManagementObject obj2 in searcher.Get())
|
||||
{
|
||||
Console.WriteLine("Dependant : " + obj2["Dependent"]);
|
||||
|
||||
if (obj2["Dependent"].ToString().Contains(@"USB\\VID_2341&PID_0010"))
|
||||
{
|
||||
//return "2560-2";
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
int fixme;
|
||||
}
|
||||
|
||||
serialPort.DtrEnable = true;
|
||||
serialPort.BaudRate = 115200;
|
||||
serialPort.Open();
|
||||
@@ -94,7 +75,34 @@ namespace ArdupilotMega
|
||||
if (temp[0] == 6 && temp[1] == 0 && temp.Length == 2)
|
||||
{
|
||||
serialPort.Close();
|
||||
return "2560";
|
||||
//HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_2341&PID_0010\640333439373519060F0\Device Parameters
|
||||
if (!MainV2.MONO)
|
||||
{
|
||||
ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_USBControllerDevice");
|
||||
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
|
||||
foreach (ManagementObject obj2 in searcher.Get())
|
||||
{
|
||||
Console.WriteLine("Dependant : " + obj2["Dependent"]);
|
||||
|
||||
if (obj2["Dependent"].ToString().Contains(@"USB\\VID_2341&PID_0010"))
|
||||
{
|
||||
return "2560-2";
|
||||
}
|
||||
}
|
||||
|
||||
return "2560";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (DialogResult.Yes == MessageBox.Show("APM 2.0", "Is this a APM 2?", MessageBoxButtons.YesNo))
|
||||
{
|
||||
return "2560-2";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "2560";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
@@ -103,7 +111,7 @@ namespace ArdupilotMega
|
||||
serialPort.Close();
|
||||
Console.WriteLine("Not a 2560");
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
public static int decodeApVar(string comport, string version)
|
||||
{
|
||||
|
||||
@@ -172,9 +172,18 @@
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\IronPython 2.7.1\IronPython-2.6.1\Microsoft.Scripting.ExtensionAttribute.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenGlobe.Core">
|
||||
<HintPath>..\..\..\..\..\Desktop\DIYDrones\virtualglobebook-OpenGlobe-ddf1d7e\Source\Examples\Chapter13\ClipmapTerrainOnGlobe\bin\Debug\OpenGlobe.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenGlobe.Renderer">
|
||||
<HintPath>..\..\..\..\..\Desktop\DIYDrones\virtualglobebook-OpenGlobe-ddf1d7e\Source\Examples\Chapter13\ClipmapTerrainOnGlobe\bin\Debug\OpenGlobe.Renderer.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenGlobe.Scene">
|
||||
<HintPath>..\..\..\..\..\Desktop\DIYDrones\virtualglobebook-OpenGlobe-ddf1d7e\Source\Examples\Chapter13\ClipmapTerrainOnGlobe\bin\Debug\OpenGlobe.Scene.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenTK, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\Desktop\DIYDrones\opentk\trunk\Binaries\OpenTK\Release\OpenTK.dll</HintPath>
|
||||
<HintPath>..\..\..\..\..\Desktop\DIYDrones\virtualglobebook-OpenGlobe-ddf1d7e\ThirdParty\OpenTKGL4\Binaries\OpenTK\Release\OpenTK.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenTK.GLControl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
<UpdateUrlHistory />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ReferencePath>C:\Users\hog\Desktop\DIYDrones\myquad\greatmaps_e1bb830a18a3\Demo.WindowsForms\bin\Debug\;C:\Users\hog\Desktop\DIYDrones\myquad\sharpkml\SharpKml\bin\Release\;C:\Users\hog\Documents\Visual Studio 2010\Projects\ArdupilotMega\ArdupilotMega\bin\Release\</ReferencePath>
|
||||
<ReferencePath>C:\Users\hog\Desktop\DIYDrones\myquad\greatmaps_e1bb830a18a3\Demo.WindowsForms\bin\Debug\;C:\Users\hog\Desktop\DIYDrones\myquad\sharpkml\SharpKml\bin\Release\</ReferencePath>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
+46
-18
@@ -30,8 +30,8 @@
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Configuration));
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.Params = new System.Windows.Forms.DataGridView();
|
||||
this.Command = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Value = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -141,6 +141,8 @@
|
||||
this.RLL2SRV_P = new System.Windows.Forms.NumericUpDown();
|
||||
this.label52 = new System.Windows.Forms.Label();
|
||||
this.TabAC2 = new System.Windows.Forms.TabPage();
|
||||
this.myLabel1 = new ArdupilotMega.MyLabel();
|
||||
this.CH7_OPT = new System.Windows.Forms.ComboBox();
|
||||
this.groupBox17 = new System.Windows.Forms.GroupBox();
|
||||
this.ACRO_PIT_IMAX = new System.Windows.Forms.NumericUpDown();
|
||||
this.label27 = new System.Windows.Forms.Label();
|
||||
@@ -403,14 +405,14 @@
|
||||
this.Params.AllowUserToAddRows = false;
|
||||
this.Params.AllowUserToDeleteRows = false;
|
||||
resources.ApplyResources(this.Params, "Params");
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.Color.Maroon;
|
||||
dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.White;
|
||||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.Params.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Maroon;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.Params.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.Params.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.Params.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.Command,
|
||||
@@ -419,14 +421,14 @@
|
||||
this.mavScale,
|
||||
this.RawValue});
|
||||
this.Params.Name = "Params";
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ActiveCaption;
|
||||
dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.Params.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.ActiveCaption;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.Params.RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.Params.RowHeadersVisible = false;
|
||||
this.Params.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.Params_CellValueChanged);
|
||||
//
|
||||
@@ -1087,6 +1089,8 @@
|
||||
//
|
||||
// TabAC2
|
||||
//
|
||||
this.TabAC2.Controls.Add(this.myLabel1);
|
||||
this.TabAC2.Controls.Add(this.CH7_OPT);
|
||||
this.TabAC2.Controls.Add(this.groupBox17);
|
||||
this.TabAC2.Controls.Add(this.groupBox5);
|
||||
this.TabAC2.Controls.Add(this.groupBox18);
|
||||
@@ -1104,6 +1108,28 @@
|
||||
resources.ApplyResources(this.TabAC2, "TabAC2");
|
||||
this.TabAC2.Name = "TabAC2";
|
||||
//
|
||||
// myLabel1
|
||||
//
|
||||
resources.ApplyResources(this.myLabel1, "myLabel1");
|
||||
this.myLabel1.Name = "myLabel1";
|
||||
this.myLabel1.resize = false;
|
||||
//
|
||||
// CH7_OPT
|
||||
//
|
||||
this.CH7_OPT.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.CH7_OPT.FormattingEnabled = true;
|
||||
this.CH7_OPT.Items.AddRange(new object[] {
|
||||
resources.GetString("CH7_OPT.Items"),
|
||||
resources.GetString("CH7_OPT.Items1"),
|
||||
resources.GetString("CH7_OPT.Items2"),
|
||||
resources.GetString("CH7_OPT.Items3"),
|
||||
resources.GetString("CH7_OPT.Items4"),
|
||||
resources.GetString("CH7_OPT.Items5"),
|
||||
resources.GetString("CH7_OPT.Items6"),
|
||||
resources.GetString("CH7_OPT.Items7")});
|
||||
resources.ApplyResources(this.CH7_OPT, "CH7_OPT");
|
||||
this.CH7_OPT.Name = "CH7_OPT";
|
||||
//
|
||||
// groupBox17
|
||||
//
|
||||
this.groupBox17.Controls.Add(this.ACRO_PIT_IMAX);
|
||||
@@ -2451,5 +2477,7 @@
|
||||
private System.Windows.Forms.Label label44;
|
||||
private System.Windows.Forms.NumericUpDown ACRO_RLL_P;
|
||||
private System.Windows.Forms.Label label48;
|
||||
private MyLabel myLabel1;
|
||||
private System.Windows.Forms.ComboBox CH7_OPT;
|
||||
}
|
||||
}
|
||||
@@ -380,6 +380,15 @@ namespace ArdupilotMega.GCSViews
|
||||
}
|
||||
catch { }
|
||||
|
||||
try
|
||||
{
|
||||
ComboBox thisctl = ((ComboBox)ctl);
|
||||
|
||||
thisctl.SelectedIndex = (int)(float)param[value];
|
||||
|
||||
thisctl.Validated += new EventHandler(ComboBox_Validated);
|
||||
} catch {}
|
||||
|
||||
}
|
||||
if (text.Length == 0)
|
||||
{
|
||||
@@ -390,6 +399,11 @@ namespace ArdupilotMega.GCSViews
|
||||
Params.Sort(Params.Columns[0], ListSortDirection.Ascending);
|
||||
}
|
||||
|
||||
void ComboBox_Validated(object sender, EventArgs e)
|
||||
{
|
||||
EEPROM_View_float_TextChanged(sender, e);
|
||||
}
|
||||
|
||||
void Configuration_Validating(object sender, CancelEventArgs e)
|
||||
{
|
||||
EEPROM_View_float_TextChanged(sender, e);
|
||||
@@ -403,8 +417,16 @@ namespace ArdupilotMega.GCSViews
|
||||
// do domainupdown state check
|
||||
try
|
||||
{
|
||||
value = float.Parse(((Control)sender).Text);
|
||||
changes[name] = value;
|
||||
if (sender.GetType() == typeof(NumericUpDown))
|
||||
{
|
||||
value = float.Parse(((Control)sender).Text);
|
||||
changes[name] = value;
|
||||
}
|
||||
else if (sender.GetType() == typeof(ComboBox))
|
||||
{
|
||||
value = ((ComboBox)sender).SelectedIndex;
|
||||
changes[name] = value;
|
||||
}
|
||||
((Control)sender).BackColor = Color.Green;
|
||||
}
|
||||
catch (Exception)
|
||||
@@ -481,7 +503,14 @@ namespace ArdupilotMega.GCSViews
|
||||
{
|
||||
if (row.Cells[0].Value.ToString() == name)
|
||||
{
|
||||
row.Cells[1].Value = float.Parse(((Control)sender).Text);
|
||||
if (sender.GetType() == typeof(NumericUpDown))
|
||||
{
|
||||
row.Cells[1].Value = float.Parse(((Control)sender).Text);
|
||||
}
|
||||
else if (sender.GetType() == typeof(ComboBox))
|
||||
{
|
||||
row.Cells[1].Value = ((ComboBox)sender).SelectedIndex;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -516,12 +545,21 @@ namespace ArdupilotMega.GCSViews
|
||||
{
|
||||
if (text.Length > 0)
|
||||
{
|
||||
decimal option = (decimal)(float.Parse(Params[e.ColumnIndex, e.RowIndex].Value.ToString()));
|
||||
((NumericUpDown)text[0]).Value = option;
|
||||
((NumericUpDown)text[0]).BackColor = Color.Green;
|
||||
if (sender.GetType() == typeof(NumericUpDown))
|
||||
{
|
||||
decimal option = (decimal)(float.Parse(Params[e.ColumnIndex, e.RowIndex].Value.ToString()));
|
||||
((NumericUpDown)text[0]).Value = option;
|
||||
((NumericUpDown)text[0]).BackColor = Color.Green;
|
||||
}
|
||||
else if (sender.GetType() == typeof(ComboBox))
|
||||
{
|
||||
int option = (int)(float.Parse(Params[e.ColumnIndex, e.RowIndex].Value.ToString()));
|
||||
((ComboBox)text[0]).SelectedIndex = option;
|
||||
((ComboBox)text[0]).BackColor = Color.Green;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch { ((NumericUpDown)text[0]).BackColor = Color.Red; }
|
||||
catch { ((Control)text[0]).BackColor = Color.Red; }
|
||||
|
||||
Params.Focus();
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -615,7 +615,7 @@ namespace ArdupilotMega.GCSViews
|
||||
//port = new ArduinoSTK();
|
||||
port.BaudRate = 57600;
|
||||
}
|
||||
else if (board == "2560")
|
||||
else if (board == "2560" || board == "2560-2")
|
||||
{
|
||||
port = new ArduinoSTKv2();
|
||||
port.BaudRate = 115200;
|
||||
@@ -691,7 +691,7 @@ namespace ArdupilotMega.GCSViews
|
||||
}
|
||||
}
|
||||
|
||||
lbl_status.Text = "Write Done... Waiting";
|
||||
lbl_status.Text = "Write Done... Waiting (60 sec)";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -704,7 +704,7 @@ namespace ArdupilotMega.GCSViews
|
||||
|
||||
Application.DoEvents();
|
||||
|
||||
System.Threading.Thread.Sleep(10000); // 10 seconds - new apvar erases eeprom on new format version, this should buy us some time.
|
||||
System.Threading.Thread.Sleep(60000); // 10 seconds - new apvar erases eeprom on new format version, this should buy us some time.
|
||||
|
||||
lbl_status.Text = "Done";
|
||||
}
|
||||
|
||||
+55
-44
@@ -31,14 +31,14 @@
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FlightPlanner));
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.CHK_altmode = new System.Windows.Forms.CheckBox();
|
||||
this.CHK_holdalt = new System.Windows.Forms.CheckBox();
|
||||
this.Commands = new System.Windows.Forms.DataGridView();
|
||||
@@ -89,6 +89,7 @@
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.panelWaypoints = new BSE.Windows.Forms.Panel();
|
||||
this.splitter1 = new BSE.Windows.Forms.Splitter();
|
||||
this.BUT_zoomto = new ArdupilotMega.MyButton();
|
||||
this.BUT_Camera = new ArdupilotMega.MyButton();
|
||||
this.BUT_grid = new ArdupilotMega.MyButton();
|
||||
this.BUT_Prefetch = new ArdupilotMega.MyButton();
|
||||
@@ -120,7 +121,7 @@
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.panelBASE = new System.Windows.Forms.Panel();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.BUT_zoomto = new ArdupilotMega.MyButton();
|
||||
this.BUT_loadkml = new ArdupilotMega.MyButton();
|
||||
((System.ComponentModel.ISupportInitialize)(this.Commands)).BeginInit();
|
||||
this.panel5.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
@@ -152,14 +153,14 @@
|
||||
//
|
||||
this.Commands.AllowUserToAddRows = false;
|
||||
resources.ApplyResources(this.Commands, "Commands");
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.Commands.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.Commands.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
|
||||
this.Commands.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.Command,
|
||||
this.Param1,
|
||||
@@ -173,17 +174,17 @@
|
||||
this.Up,
|
||||
this.Down});
|
||||
this.Commands.Name = "Commands";
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle5.Format = "N0";
|
||||
dataGridViewCellStyle5.NullValue = "0";
|
||||
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
this.Commands.RowHeadersDefaultCellStyle = dataGridViewCellStyle5;
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.Color.Black;
|
||||
this.Commands.RowsDefaultCellStyle = dataGridViewCellStyle6;
|
||||
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle13.Format = "N0";
|
||||
dataGridViewCellStyle13.NullValue = "0";
|
||||
dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
this.Commands.RowHeadersDefaultCellStyle = dataGridViewCellStyle13;
|
||||
dataGridViewCellStyle14.ForeColor = System.Drawing.Color.Black;
|
||||
this.Commands.RowsDefaultCellStyle = dataGridViewCellStyle14;
|
||||
this.Commands.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.Commands_CellContentClick);
|
||||
this.Commands.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.Commands_CellEndEdit);
|
||||
this.Commands.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.Commands_DataError);
|
||||
@@ -195,9 +196,9 @@
|
||||
//
|
||||
// Command
|
||||
//
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(67)))), ((int)(((byte)(68)))), ((int)(((byte)(69)))));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
|
||||
this.Command.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(67)))), ((int)(((byte)(68)))), ((int)(((byte)(69)))));
|
||||
dataGridViewCellStyle10.ForeColor = System.Drawing.Color.White;
|
||||
this.Command.DefaultCellStyle = dataGridViewCellStyle10;
|
||||
this.Command.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox;
|
||||
resources.ApplyResources(this.Command, "Command");
|
||||
this.Command.Name = "Command";
|
||||
@@ -263,7 +264,7 @@
|
||||
//
|
||||
// Up
|
||||
//
|
||||
this.Up.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.Up.DefaultCellStyle = dataGridViewCellStyle11;
|
||||
resources.ApplyResources(this.Up, "Up");
|
||||
this.Up.Image = global::ArdupilotMega.Properties.Resources.up;
|
||||
this.Up.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Stretch;
|
||||
@@ -271,8 +272,8 @@
|
||||
//
|
||||
// Down
|
||||
//
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.Down.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.Down.DefaultCellStyle = dataGridViewCellStyle12;
|
||||
resources.ApplyResources(this.Down, "Down");
|
||||
this.Down.Image = global::ArdupilotMega.Properties.Resources.down;
|
||||
this.Down.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Stretch;
|
||||
@@ -416,8 +417,8 @@
|
||||
//
|
||||
// dataGridViewImageColumn1
|
||||
//
|
||||
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewImageColumn1.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewImageColumn1.DefaultCellStyle = dataGridViewCellStyle15;
|
||||
resources.ApplyResources(this.dataGridViewImageColumn1, "dataGridViewImageColumn1");
|
||||
this.dataGridViewImageColumn1.Image = global::ArdupilotMega.Properties.Resources.up;
|
||||
this.dataGridViewImageColumn1.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Stretch;
|
||||
@@ -425,8 +426,8 @@
|
||||
//
|
||||
// dataGridViewImageColumn2
|
||||
//
|
||||
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewImageColumn2.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewImageColumn2.DefaultCellStyle = dataGridViewCellStyle16;
|
||||
resources.ApplyResources(this.dataGridViewImageColumn2, "dataGridViewImageColumn2");
|
||||
this.dataGridViewImageColumn2.Image = global::ArdupilotMega.Properties.Resources.down;
|
||||
this.dataGridViewImageColumn2.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Stretch;
|
||||
@@ -509,6 +510,7 @@
|
||||
this.panelWaypoints.CaptionFont = new System.Drawing.Font("Segoe UI", 11.75F, System.Drawing.FontStyle.Bold);
|
||||
this.panelWaypoints.CaptionHeight = 21;
|
||||
this.panelWaypoints.ColorScheme = BSE.Windows.Forms.ColorScheme.Custom;
|
||||
this.panelWaypoints.Controls.Add(this.BUT_loadkml);
|
||||
this.panelWaypoints.Controls.Add(this.BUT_zoomto);
|
||||
this.panelWaypoints.Controls.Add(this.BUT_Camera);
|
||||
this.panelWaypoints.Controls.Add(this.BUT_grid);
|
||||
@@ -557,6 +559,14 @@
|
||||
this.splitter1.Name = "splitter1";
|
||||
this.splitter1.TabStop = false;
|
||||
//
|
||||
// BUT_zoomto
|
||||
//
|
||||
resources.ApplyResources(this.BUT_zoomto, "BUT_zoomto");
|
||||
this.BUT_zoomto.Name = "BUT_zoomto";
|
||||
this.toolTip1.SetToolTip(this.BUT_zoomto, resources.GetString("BUT_zoomto.ToolTip"));
|
||||
this.BUT_zoomto.UseVisualStyleBackColor = true;
|
||||
this.BUT_zoomto.Click += new System.EventHandler(this.BUT_zoomto_Click);
|
||||
//
|
||||
// BUT_Camera
|
||||
//
|
||||
resources.ApplyResources(this.BUT_Camera, "BUT_Camera");
|
||||
@@ -834,13 +844,13 @@
|
||||
resources.ApplyResources(this.panelBASE, "panelBASE");
|
||||
this.panelBASE.Name = "panelBASE";
|
||||
//
|
||||
// BUT_zoomto
|
||||
// BUT_loadkml
|
||||
//
|
||||
resources.ApplyResources(this.BUT_zoomto, "BUT_zoomto");
|
||||
this.BUT_zoomto.Name = "BUT_zoomto";
|
||||
this.toolTip1.SetToolTip(this.BUT_zoomto, resources.GetString("BUT_zoomto.ToolTip"));
|
||||
this.BUT_zoomto.UseVisualStyleBackColor = true;
|
||||
this.BUT_zoomto.Click += new System.EventHandler(this.BUT_zoomto_Click);
|
||||
resources.ApplyResources(this.BUT_loadkml, "BUT_loadkml");
|
||||
this.BUT_loadkml.Name = "BUT_loadkml";
|
||||
this.toolTip1.SetToolTip(this.BUT_loadkml, resources.GetString("BUT_loadkml.ToolTip"));
|
||||
this.BUT_loadkml.UseVisualStyleBackColor = true;
|
||||
this.BUT_loadkml.Click += new System.EventHandler(this.BUT_loadkml_Click);
|
||||
//
|
||||
// FlightPlanner
|
||||
//
|
||||
@@ -954,5 +964,6 @@
|
||||
private System.Windows.Forms.DataGridViewImageColumn Up;
|
||||
private System.Windows.Forms.DataGridViewImageColumn Down;
|
||||
private MyButton BUT_zoomto;
|
||||
private MyButton BUT_loadkml;
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,8 @@ using System.Resources;
|
||||
using System.Reflection;
|
||||
using System.ComponentModel;
|
||||
using System.Threading;
|
||||
using SharpKml.Base;
|
||||
|
||||
|
||||
|
||||
namespace ArdupilotMega.GCSViews
|
||||
@@ -440,6 +442,10 @@ namespace ArdupilotMega.GCSViews
|
||||
trackBar1.Minimum = MainMap.MinZoom;
|
||||
trackBar1.Maximum = MainMap.MaxZoom + 0.99;
|
||||
|
||||
// draw this layer first
|
||||
kmlpolygons = new GMapOverlay(MainMap, "kmlpolygons");
|
||||
MainMap.Overlays.Add(kmlpolygons);
|
||||
|
||||
routes = new GMapOverlay(MainMap, "routes");
|
||||
MainMap.Overlays.Add(routes);
|
||||
|
||||
@@ -452,6 +458,8 @@ namespace ArdupilotMega.GCSViews
|
||||
drawnpolygons = new GMapOverlay(MainMap, "drawnpolygons");
|
||||
MainMap.Overlays.Add(drawnpolygons);
|
||||
|
||||
|
||||
|
||||
top = new GMapOverlay(MainMap, "top");
|
||||
//MainMap.Overlays.Add(top);
|
||||
|
||||
@@ -648,6 +656,23 @@ namespace ArdupilotMega.GCSViews
|
||||
writeKML();
|
||||
}
|
||||
|
||||
void parser_ElementAdded(object sender, SharpKml.Base.ElementEventArgs e)
|
||||
{
|
||||
|
||||
SharpKml.Dom.Polygon polygon = e.Element as SharpKml.Dom.Polygon;
|
||||
if (polygon != null)
|
||||
{
|
||||
GMapPolygon kmlpolygon = new GMapPolygon(new List<PointLatLng>(), "kmlpolygon");
|
||||
|
||||
foreach (var loc in polygon.OuterBoundary.LinearRing.Coordinates)
|
||||
{
|
||||
kmlpolygon.Points.Add(new PointLatLng(loc.Latitude,loc.Longitude));
|
||||
}
|
||||
|
||||
kmlpolygons.Polygons.Add(kmlpolygon);
|
||||
}
|
||||
}
|
||||
|
||||
private void ChangeColumnHeader(string command)
|
||||
{
|
||||
try
|
||||
@@ -1721,7 +1746,9 @@ namespace ArdupilotMega.GCSViews
|
||||
// polygons
|
||||
GMapPolygon polygon;
|
||||
GMapPolygon drawnpolygon;
|
||||
|
||||
//static GMapRoute route;
|
||||
GMapOverlay kmlpolygons;
|
||||
|
||||
// layers
|
||||
GMapOverlay top;
|
||||
@@ -2070,7 +2097,7 @@ namespace ArdupilotMega.GCSViews
|
||||
}
|
||||
|
||||
private void comboBoxMapType_SelectedValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
{
|
||||
MainMap.MapType = (MapType)comboBoxMapType.SelectedItem;
|
||||
FlightData.mymap.MapType = (MapType)comboBoxMapType.SelectedItem;
|
||||
MainV2.config["MapType"] = comboBoxMapType.Text;
|
||||
@@ -2101,7 +2128,8 @@ namespace ArdupilotMega.GCSViews
|
||||
DataGridViewCell tcell = Commands.Rows[selectedrow].Cells[i];
|
||||
if (tcell.GetType() == typeof(DataGridViewTextBoxCell))
|
||||
{
|
||||
tcell.Value = "0";
|
||||
if (tcell.Value.ToString() == "?")
|
||||
tcell.Value = "0";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2625,6 +2653,8 @@ namespace ArdupilotMega.GCSViews
|
||||
drawnpolygon.Points.Clear();
|
||||
drawnpolygons.Markers.Clear();
|
||||
MainMap.Invalidate();
|
||||
|
||||
writeKML();
|
||||
}
|
||||
|
||||
private void clearMissionToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -2640,7 +2670,11 @@ namespace ArdupilotMega.GCSViews
|
||||
|
||||
Commands.Rows[selectedrow].Cells[Command.Index].Value = MAVLink.MAV_CMD.LOITER_UNLIM.ToString();
|
||||
|
||||
ChangeColumnHeader(MAVLink.MAV_CMD.LOITER_UNLIM.ToString());
|
||||
|
||||
setfromGE(end.Lat, end.Lng, (int)float.Parse(TXT_DefaultAlt.Text));
|
||||
|
||||
writeKML();
|
||||
}
|
||||
|
||||
private void jumpstartToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -2655,6 +2689,8 @@ namespace ArdupilotMega.GCSViews
|
||||
Commands.Rows[row].Cells[Param1.Index].Value = 1;
|
||||
|
||||
Commands.Rows[row].Cells[Param2.Index].Value = repeat;
|
||||
|
||||
writeKML();
|
||||
}
|
||||
|
||||
private void jumpwPToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -2671,6 +2707,8 @@ namespace ArdupilotMega.GCSViews
|
||||
Commands.Rows[row].Cells[Param1.Index].Value = wp;
|
||||
|
||||
Commands.Rows[row].Cells[Param2.Index].Value = repeat;
|
||||
|
||||
writeKML();
|
||||
}
|
||||
|
||||
private void deleteWPToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -2717,7 +2755,11 @@ namespace ArdupilotMega.GCSViews
|
||||
|
||||
Commands.Rows[selectedrow].Cells[Param1.Index].Value = time;
|
||||
|
||||
ChangeColumnHeader(MAVLink.MAV_CMD.LOITER_TIME.ToString());
|
||||
|
||||
setfromGE(end.Lat, end.Lng, (int)float.Parse(TXT_DefaultAlt.Text));
|
||||
|
||||
writeKML();
|
||||
}
|
||||
|
||||
private void loitercirclesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -2731,7 +2773,11 @@ namespace ArdupilotMega.GCSViews
|
||||
|
||||
Commands.Rows[selectedrow].Cells[Param1.Index].Value = turns;
|
||||
|
||||
ChangeColumnHeader(MAVLink.MAV_CMD.LOITER_TURNS.ToString());
|
||||
|
||||
setfromGE(end.Lat, end.Lng, (int)float.Parse(TXT_DefaultAlt.Text));
|
||||
|
||||
writeKML();
|
||||
}
|
||||
|
||||
private void BUT_Camera_Click(object sender, EventArgs e)
|
||||
@@ -2768,5 +2814,29 @@ namespace ArdupilotMega.GCSViews
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void BUT_loadkml_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
OpenFileDialog fd = new OpenFileDialog();
|
||||
fd.Filter = "Google Earth KML (*.kml)|*.kml";
|
||||
fd.DefaultExt = ".kml";
|
||||
DialogResult result = fd.ShowDialog();
|
||||
string file = fd.FileName;
|
||||
if (file != "")
|
||||
{
|
||||
try
|
||||
{
|
||||
kmlpolygons.Polygons.Clear();
|
||||
|
||||
var parser = new SharpKml.Base.Parser();
|
||||
|
||||
parser.ElementAdded += new EventHandler<SharpKml.Base.ElementEventArgs>(parser_ElementAdded);
|
||||
parser.Parse(File.OpenRead(file));
|
||||
}
|
||||
catch (Exception ex) { MessageBox.Show("Bad KML File :" + ex.ToString()); }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -34,6 +34,7 @@ namespace ArdupilotMega
|
||||
bool oldlogformat = false;
|
||||
|
||||
byte mavlinkversion = 0;
|
||||
public byte aptype = 0;
|
||||
byte[] readingpacket = new byte[256];
|
||||
|
||||
public PointLatLngAlt[] wps = new PointLatLngAlt[200];
|
||||
@@ -190,6 +191,7 @@ namespace ArdupilotMega
|
||||
hb = (MAVLink.__mavlink_heartbeat_t)(temp);
|
||||
|
||||
mavlinkversion = hb.mavlink_version;
|
||||
aptype = hb.type;
|
||||
|
||||
sysid = buffer[3];
|
||||
compid = buffer[4];
|
||||
|
||||
@@ -79,13 +79,12 @@ namespace ArdupilotMega
|
||||
GCSViews.Firmware Firmware;
|
||||
GCSViews.Terminal Terminal;
|
||||
|
||||
public void testpython()
|
||||
{
|
||||
Console.WriteLine("hello world from c# via python");
|
||||
}
|
||||
|
||||
public MainV2()
|
||||
{
|
||||
//new temp().ShowDialog();
|
||||
//return;
|
||||
|
||||
|
||||
Form splash = new Splash();
|
||||
splash.Show();
|
||||
|
||||
@@ -108,10 +107,6 @@ namespace ArdupilotMega
|
||||
|
||||
//return;
|
||||
|
||||
|
||||
// preload
|
||||
Python.CreateEngine();
|
||||
|
||||
var t = Type.GetType("Mono.Runtime");
|
||||
MONO = (t != null);
|
||||
|
||||
@@ -176,6 +171,9 @@ namespace ArdupilotMega
|
||||
Simulation = new GCSViews.Simulation();
|
||||
Firmware = new GCSViews.Firmware();
|
||||
//Terminal = new GCSViews.Terminal();
|
||||
|
||||
// preload
|
||||
Python.CreateEngine();
|
||||
}
|
||||
catch (Exception e) { MessageBox.Show("A Major error has occured : " + e.ToString()); this.Close(); }
|
||||
|
||||
|
||||
@@ -34,5 +34,5 @@ using System.Resources;
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.99")]
|
||||
[assembly: AssemblyFileVersion("1.1.0")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("")]
|
||||
+18
-18
@@ -121,13 +121,11 @@
|
||||
this.label44 = new System.Windows.Forms.Label();
|
||||
this.label43 = new System.Windows.Forms.Label();
|
||||
this.label42 = new System.Windows.Forms.Label();
|
||||
this.BUT_HS4save = new ArdupilotMega.MyButton();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.label24 = new System.Windows.Forms.Label();
|
||||
this.HS4_MIN = new System.Windows.Forms.TextBox();
|
||||
this.HS4_MAX = new System.Windows.Forms.TextBox();
|
||||
this.label40 = new System.Windows.Forms.Label();
|
||||
this.BUT_swash_manual = new ArdupilotMega.MyButton();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.label41 = new System.Windows.Forms.Label();
|
||||
this.label21 = new System.Windows.Forms.Label();
|
||||
@@ -160,6 +158,8 @@
|
||||
this.HS2_REV = new System.Windows.Forms.CheckBox();
|
||||
this.HS1_REV = new System.Windows.Forms.CheckBox();
|
||||
this.label17 = new System.Windows.Forms.Label();
|
||||
this.BUT_HS4save = new ArdupilotMega.MyButton();
|
||||
this.BUT_swash_manual = new ArdupilotMega.MyButton();
|
||||
this.HS4 = new ArdupilotMega.HorizontalProgressBar2();
|
||||
this.HS3 = new ArdupilotMega.VerticalProgressBar2();
|
||||
this.Gservoloc = new AGaugeApp.AGauge();
|
||||
@@ -874,9 +874,7 @@
|
||||
this.tabHeli.Controls.Add(this.label44);
|
||||
this.tabHeli.Controls.Add(this.label43);
|
||||
this.tabHeli.Controls.Add(this.label42);
|
||||
this.tabHeli.Controls.Add(this.BUT_HS4save);
|
||||
this.tabHeli.Controls.Add(this.groupBox2);
|
||||
this.tabHeli.Controls.Add(this.BUT_swash_manual);
|
||||
this.tabHeli.Controls.Add(this.groupBox1);
|
||||
this.tabHeli.Controls.Add(this.HS4_TRIM);
|
||||
this.tabHeli.Controls.Add(this.HS3_TRIM);
|
||||
@@ -903,6 +901,8 @@
|
||||
this.tabHeli.Controls.Add(this.HS2_REV);
|
||||
this.tabHeli.Controls.Add(this.HS1_REV);
|
||||
this.tabHeli.Controls.Add(this.label17);
|
||||
this.tabHeli.Controls.Add(this.BUT_HS4save);
|
||||
this.tabHeli.Controls.Add(this.BUT_swash_manual);
|
||||
this.tabHeli.Controls.Add(this.HS4);
|
||||
this.tabHeli.Controls.Add(this.HS3);
|
||||
this.tabHeli.Controls.Add(this.Gservoloc);
|
||||
@@ -959,13 +959,6 @@
|
||||
resources.ApplyResources(this.label42, "label42");
|
||||
this.label42.Name = "label42";
|
||||
//
|
||||
// BUT_HS4save
|
||||
//
|
||||
resources.ApplyResources(this.BUT_HS4save, "BUT_HS4save");
|
||||
this.BUT_HS4save.Name = "BUT_HS4save";
|
||||
this.BUT_HS4save.UseVisualStyleBackColor = true;
|
||||
this.BUT_HS4save.Click += new System.EventHandler(this.BUT_HS4save_Click);
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.label24);
|
||||
@@ -1002,13 +995,6 @@
|
||||
resources.ApplyResources(this.label40, "label40");
|
||||
this.label40.Name = "label40";
|
||||
//
|
||||
// BUT_swash_manual
|
||||
//
|
||||
resources.ApplyResources(this.BUT_swash_manual, "BUT_swash_manual");
|
||||
this.BUT_swash_manual.Name = "BUT_swash_manual";
|
||||
this.BUT_swash_manual.UseVisualStyleBackColor = true;
|
||||
this.BUT_swash_manual.Click += new System.EventHandler(this.BUT_swash_manual_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.label41);
|
||||
@@ -1262,6 +1248,20 @@
|
||||
resources.ApplyResources(this.label17, "label17");
|
||||
this.label17.Name = "label17";
|
||||
//
|
||||
// BUT_HS4save
|
||||
//
|
||||
resources.ApplyResources(this.BUT_HS4save, "BUT_HS4save");
|
||||
this.BUT_HS4save.Name = "BUT_HS4save";
|
||||
this.BUT_HS4save.UseVisualStyleBackColor = true;
|
||||
this.BUT_HS4save.Click += new System.EventHandler(this.BUT_HS4save_Click);
|
||||
//
|
||||
// BUT_swash_manual
|
||||
//
|
||||
resources.ApplyResources(this.BUT_swash_manual, "BUT_swash_manual");
|
||||
this.BUT_swash_manual.Name = "BUT_swash_manual";
|
||||
this.BUT_swash_manual.UseVisualStyleBackColor = true;
|
||||
this.BUT_swash_manual.Click += new System.EventHandler(this.BUT_swash_manual_Click);
|
||||
//
|
||||
// HS4
|
||||
//
|
||||
this.HS4.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(67)))), ((int)(((byte)(68)))), ((int)(((byte)(69)))));
|
||||
|
||||
@@ -544,6 +544,8 @@ namespace ArdupilotMega.Setup
|
||||
}
|
||||
catch { MessageBox.Show("Invalid input!"); return; }
|
||||
|
||||
TXT_declination.Text = dec.ToString();
|
||||
|
||||
MainV2.comPort.setParam("COMPASS_DEC", dec * deg2rad);
|
||||
}
|
||||
}
|
||||
@@ -786,11 +788,11 @@ namespace ArdupilotMega.Setup
|
||||
}
|
||||
catch (Exception ex) { MainV2.givecomport = false; MessageBox.Show("Invalid Comport Settings : " + ex.Message); return; }
|
||||
|
||||
BUT_reset.Text = "Rebooting (20 sec)";
|
||||
BUT_reset.Text = "Rebooting (60 sec)";
|
||||
BUT_reset.Refresh();
|
||||
Application.DoEvents();
|
||||
|
||||
Sleep(20000, comPortT); // wait for boot/reset
|
||||
Sleep(60000, comPortT); // wait for boot/reset
|
||||
|
||||
comPortT.DtrEnable = false;
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -4,14 +4,14 @@
|
||||
<description asmv2:publisher="Michael Oborne" asmv2:product="ArdupilotMegaPlanner" xmlns="urn:schemas-microsoft-com:asm.v1" />
|
||||
<deployment install="true" />
|
||||
<dependency>
|
||||
<dependentAssembly dependencyType="install" codebase="ArdupilotMegaPlanner.exe.manifest" size="23309">
|
||||
<dependentAssembly dependencyType="install" codebase="ArdupilotMegaPlanner.exe.manifest" size="25308">
|
||||
<assemblyIdentity name="ArdupilotMegaPlanner.exe" version="0.0.0.1" publicKeyToken="0000000000000000" language="en-US" processorArchitecture="x86" type="win32" />
|
||||
<hash>
|
||||
<dsig:Transforms>
|
||||
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
|
||||
</dsig:Transforms>
|
||||
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
|
||||
<dsig:DigestValue>QOAVY4eRCMREZxVv8+wq0bmXS7U=</dsig:DigestValue>
|
||||
<dsig:DigestValue>gEz+riTnX11Gvx+CG6QPheFVPYU=</dsig:DigestValue>
|
||||
</hash>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
|
||||
+13
@@ -44,6 +44,7 @@
|
||||
this.BUT_geinjection = new ArdupilotMega.MyButton();
|
||||
this.BUT_clearcustommaps = new ArdupilotMega.MyButton();
|
||||
this.BUT_lang_edit = new ArdupilotMega.MyButton();
|
||||
this.myButton1 = new ArdupilotMega.MyButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
@@ -202,11 +203,22 @@
|
||||
this.BUT_lang_edit.UseVisualStyleBackColor = true;
|
||||
this.BUT_lang_edit.Click += new System.EventHandler(this.BUT_lang_edit_Click);
|
||||
//
|
||||
// myButton1
|
||||
//
|
||||
this.myButton1.Location = new System.Drawing.Point(30, 174);
|
||||
this.myButton1.Name = "myButton1";
|
||||
this.myButton1.Size = new System.Drawing.Size(75, 23);
|
||||
this.myButton1.TabIndex = 17;
|
||||
this.myButton1.Text = "myButton1";
|
||||
this.myButton1.UseVisualStyleBackColor = true;
|
||||
this.myButton1.Click += new System.EventHandler(this.myButton1_Click);
|
||||
//
|
||||
// temp
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(731, 281);
|
||||
this.Controls.Add(this.myButton1);
|
||||
this.Controls.Add(this.BUT_lang_edit);
|
||||
this.Controls.Add(this.BUT_clearcustommaps);
|
||||
this.Controls.Add(this.BUT_geinjection);
|
||||
@@ -249,6 +261,7 @@
|
||||
private MyButton BUT_geinjection;
|
||||
private MyButton BUT_clearcustommaps;
|
||||
private MyButton BUT_lang_edit;
|
||||
private MyButton myButton1;
|
||||
//private SharpVectors.Renderers.Forms.SvgPictureBox svgPictureBox1;
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user