mirror of https://github.com/ArduPilot/ardupilot
Mission Planner 1.2.17
add nested config page add friendly comport names add some exception handlers add new old firmware hashs remove more crom.controls stuff enabled change speed
This commit is contained in:
parent
3fd07805a7
commit
27607eacbd
|
@ -61,6 +61,7 @@
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Management" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
|
|
|
@ -177,14 +177,14 @@ namespace ArdupilotMega.Arduino
|
||||||
|
|
||||||
// all apm 1-1.4 use a ftdi on the imu board.
|
// all apm 1-1.4 use a ftdi on the imu board.
|
||||||
|
|
||||||
/* obj2.Properties.ForEach(x =>
|
obj2.Properties.ForEach(x =>
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
log.Info(((PropertyData)x).Name.ToString() + " = " + ((PropertyData)x).Value.ToString());
|
log.Info(((PropertyData)x).Name.ToString() + " = " + ((PropertyData)x).Value.ToString());
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
});*/
|
});
|
||||||
|
|
||||||
// check vid and pid
|
// check vid and pid
|
||||||
if (obj2.Properties["PNPDeviceID"].Value.ToString().Contains(@"USB\VID_2341&PID_0010"))
|
if (obj2.Properties["PNPDeviceID"].Value.ToString().Contains(@"USB\VID_2341&PID_0010"))
|
||||||
|
|
|
@ -391,12 +391,6 @@
|
||||||
<Compile Include="GCSViews\ConfigurationView\ConfigFailSafe.Designer.cs">
|
<Compile Include="GCSViews\ConfigurationView\ConfigFailSafe.Designer.cs">
|
||||||
<DependentUpon>ConfigFailSafe.cs</DependentUpon>
|
<DependentUpon>ConfigFailSafe.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="GCSViews\ConfigurationView\SetupFresh.cs">
|
|
||||||
<SubType>UserControl</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="GCSViews\ConfigurationView\SetupFresh.Designer.cs">
|
|
||||||
<DependentUpon>SetupFresh.cs</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="HIL\Hil.cs" />
|
<Compile Include="HIL\Hil.cs" />
|
||||||
<None Include="HIL\JSBSim.cs" />
|
<None Include="HIL\JSBSim.cs" />
|
||||||
<Compile Include="HIL\XPlane.cs" />
|
<Compile Include="HIL\XPlane.cs" />
|
||||||
|
@ -786,9 +780,6 @@
|
||||||
<EmbeddedResource Include="GCSViews\ConfigurationView\ConfigRawParams.fr.resx">
|
<EmbeddedResource Include="GCSViews\ConfigurationView\ConfigRawParams.fr.resx">
|
||||||
<DependentUpon>ConfigRawParams.cs</DependentUpon>
|
<DependentUpon>ConfigRawParams.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="GCSViews\ConfigurationView\SetupFresh.resx">
|
|
||||||
<DependentUpon>SetupFresh.cs</DependentUpon>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<EmbeddedResource Include="MavlinkLog.zh-Hans.resx">
|
<EmbeddedResource Include="MavlinkLog.zh-Hans.resx">
|
||||||
<DependentUpon>MavlinkLog.cs</DependentUpon>
|
<DependentUpon>MavlinkLog.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|
|
@ -4,6 +4,8 @@ using System.Text;
|
||||||
using System.IO.Ports;
|
using System.IO.Ports;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Management;
|
||||||
|
using ArdupilotMega.Utilities;
|
||||||
|
|
||||||
namespace ArdupilotMega.Comms
|
namespace ArdupilotMega.Comms
|
||||||
{
|
{
|
||||||
|
@ -64,6 +66,22 @@ namespace ArdupilotMega.Comms
|
||||||
return allPorts.ToArray();
|
return allPorts.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static string GetNiceName(string port)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_SerialPort"); // Win32_USBControllerDevice
|
||||||
|
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
|
||||||
|
foreach (ManagementObject obj2 in searcher.Get())
|
||||||
|
{
|
||||||
|
//DeviceID
|
||||||
|
if (obj2.Properties["DeviceID"].Value.ToString().ToUpper() == port.ToUpper())
|
||||||
|
return obj2.Properties["Name"].Value.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
// .NET bug: sometimes bluetooth ports are enumerated with bogus characters
|
// .NET bug: sometimes bluetooth ports are enumerated with bogus characters
|
||||||
// eg 'COM10' becomes 'COM10c' - one workaround is to remove the non numeric
|
// eg 'COM10' becomes 'COM10c' - one workaround is to remove the non numeric
|
||||||
|
|
|
@ -35,6 +35,8 @@ namespace ArdupilotMega.Controls.BackstageView
|
||||||
|
|
||||||
private BackstageViewPage popoutPage = null;
|
private BackstageViewPage popoutPage = null;
|
||||||
|
|
||||||
|
private int ButtonTopPos = 0;
|
||||||
|
|
||||||
public BackstageView()
|
public BackstageView()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
@ -159,7 +161,8 @@ namespace ArdupilotMega.Controls.BackstageView
|
||||||
|
|
||||||
_items.Add(page);
|
_items.Add(page);
|
||||||
|
|
||||||
CreateLinkButton(page);
|
//CreateLinkButton(page);
|
||||||
|
DrawMenu(page);
|
||||||
|
|
||||||
page.Page.Visible = false;
|
page.Page.Visible = false;
|
||||||
|
|
||||||
|
@ -184,13 +187,25 @@ namespace ArdupilotMega.Controls.BackstageView
|
||||||
_items.Add(new BackstageViewSpacer(spacerheight));
|
_items.Add(new BackstageViewSpacer(spacerheight));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CreateLinkButton(BackstageViewPage page)
|
private void CreateLinkButton(BackstageViewPage page,bool haschild = false, bool child = false)
|
||||||
{
|
{
|
||||||
|
string label = page.LinkText;
|
||||||
|
|
||||||
|
if (haschild)
|
||||||
|
{
|
||||||
|
label = "> " + label;
|
||||||
|
}
|
||||||
|
if (child)
|
||||||
|
{
|
||||||
|
label = "+ " + label;
|
||||||
|
}
|
||||||
|
|
||||||
var lnkButton = new BackstageViewButton
|
var lnkButton = new BackstageViewButton
|
||||||
{
|
{
|
||||||
Text = page.LinkText,
|
Text = label,
|
||||||
Tag = page,
|
Tag = page,
|
||||||
Top = _items.TakeWhile(i => i != page).Sum(i => i.Spacing),
|
Top = ButtonTopPos,
|
||||||
|
// Top = _items.TakeWhile(i => i != page).Sum(i => i.Spacing),
|
||||||
Width = this.pnlMenu.Width,
|
Width = this.pnlMenu.Width,
|
||||||
Height = ButtonHeight,
|
Height = ButtonHeight,
|
||||||
ContentPageColor = this.BackColor,
|
ContentPageColor = this.BackColor,
|
||||||
|
@ -205,6 +220,80 @@ namespace ArdupilotMega.Controls.BackstageView
|
||||||
pnlMenu.Controls.Add(lnkButton);
|
pnlMenu.Controls.Add(lnkButton);
|
||||||
lnkButton.Click += this.ButtonClick;
|
lnkButton.Click += this.ButtonClick;
|
||||||
lnkButton.DoubleClick += lnkButton_DoubleClick;
|
lnkButton.DoubleClick += lnkButton_DoubleClick;
|
||||||
|
|
||||||
|
ButtonTopPos += lnkButton.Height;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DrawMenu(BackstageViewPage CurrentPage)
|
||||||
|
{
|
||||||
|
pnlMenu.Visible = false;
|
||||||
|
pnlMenu.SuspendLayout();
|
||||||
|
|
||||||
|
pnlMenu.Controls.Clear();
|
||||||
|
|
||||||
|
// reset back to 0
|
||||||
|
ButtonTopPos = 0;
|
||||||
|
|
||||||
|
foreach (BackstageViewItem page in _items)
|
||||||
|
{
|
||||||
|
if (page.GetType() == typeof(BackstageViewPage))
|
||||||
|
{
|
||||||
|
// its a base item. we want it
|
||||||
|
if (((BackstageViewPage)page).Parent == null)
|
||||||
|
{
|
||||||
|
bool children = PageHasChildren(page);
|
||||||
|
|
||||||
|
CreateLinkButton((BackstageViewPage)page, children);
|
||||||
|
|
||||||
|
// check for children
|
||||||
|
foreach (BackstageViewItem parentpage in _items)
|
||||||
|
{
|
||||||
|
if (parentpage.GetType() == typeof(BackstageViewPage))
|
||||||
|
{
|
||||||
|
if (((BackstageViewPage)parentpage).Parent == ((BackstageViewPage)page))
|
||||||
|
{
|
||||||
|
// draw all the siblings
|
||||||
|
if (((BackstageViewPage)parentpage).Parent == CurrentPage)
|
||||||
|
{
|
||||||
|
CreateLinkButton((BackstageViewPage)parentpage,false,true);
|
||||||
|
}
|
||||||
|
if (((BackstageViewPage)parentpage).Parent == CurrentPage.Parent)
|
||||||
|
{
|
||||||
|
CreateLinkButton((BackstageViewPage)parentpage,false,true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ButtonTopPos += page.Spacing;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pnlMenu.ResumeLayout(false);
|
||||||
|
pnlMenu.PerformLayout();
|
||||||
|
pnlMenu.Visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool PageHasChildren(BackstageViewItem parent)
|
||||||
|
{
|
||||||
|
// check for children
|
||||||
|
foreach (BackstageViewItem child in _items)
|
||||||
|
{
|
||||||
|
if (child.GetType() == typeof(BackstageViewPage))
|
||||||
|
{
|
||||||
|
if (((BackstageViewPage)child).Parent == parent)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateButtonAppearance()
|
private void UpdateButtonAppearance()
|
||||||
|
@ -282,6 +371,8 @@ namespace ArdupilotMega.Controls.BackstageView
|
||||||
|
|
||||||
public void ActivatePage(BackstageViewPage associatedPage)
|
public void ActivatePage(BackstageViewPage associatedPage)
|
||||||
{
|
{
|
||||||
|
DrawMenu(associatedPage);
|
||||||
|
|
||||||
// Deactivate old page
|
// Deactivate old page
|
||||||
if (_activePage.Page is IDeactivate)
|
if (_activePage.Page is IDeactivate)
|
||||||
{
|
{
|
||||||
|
@ -296,8 +387,12 @@ namespace ArdupilotMega.Controls.BackstageView
|
||||||
|
|
||||||
// deactivate button
|
// deactivate button
|
||||||
_activePage.Page.Visible = false;
|
_activePage.Page.Visible = false;
|
||||||
|
try
|
||||||
|
{ // if the button was on an expanded tab. when we leave it no longer exits
|
||||||
var oldButton = this.pnlMenu.Controls.OfType<BackstageViewButton>().Single(b => b.Tag == _activePage);
|
var oldButton = this.pnlMenu.Controls.OfType<BackstageViewButton>().Single(b => b.Tag == _activePage);
|
||||||
oldButton.IsSelected = false;
|
oldButton.IsSelected = false;
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
|
||||||
// ensure fields have been init - obsolete way of notifying activation
|
// ensure fields have been init - obsolete way of notifying activation
|
||||||
//associatedPage.Page.DoLoad(new EventArgs());
|
//associatedPage.Page.DoLoad(new EventArgs());
|
||||||
|
|
|
@ -92,7 +92,7 @@ namespace ArdupilotMega.Controls.BackstageView
|
||||||
new Point(Width, midheight - arSize)
|
new Point(Width, midheight - arSize)
|
||||||
};
|
};
|
||||||
|
|
||||||
g.DrawString(Text, new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold), new SolidBrush(SelectedTextColor), 10, 6);
|
g.DrawString(Text, new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold), new SolidBrush(SelectedTextColor), 5, 6);
|
||||||
|
|
||||||
var pencilBrush = new Pen(this.PencilBorderColor);
|
var pencilBrush = new Pen(this.PencilBorderColor);
|
||||||
|
|
||||||
|
|
|
@ -62,11 +62,14 @@
|
||||||
//
|
//
|
||||||
// cmb_Connection
|
// cmb_Connection
|
||||||
//
|
//
|
||||||
|
this.cmb_Connection.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
|
||||||
|
this.cmb_Connection.DropDownWidth = 200;
|
||||||
this.cmb_Connection.FormattingEnabled = true;
|
this.cmb_Connection.FormattingEnabled = true;
|
||||||
this.cmb_Connection.Location = new System.Drawing.Point(3, 4);
|
this.cmb_Connection.Location = new System.Drawing.Point(3, 4);
|
||||||
this.cmb_Connection.Name = "cmb_Connection";
|
this.cmb_Connection.Name = "cmb_Connection";
|
||||||
this.cmb_Connection.Size = new System.Drawing.Size(121, 21);
|
this.cmb_Connection.Size = new System.Drawing.Size(121, 21);
|
||||||
this.cmb_Connection.TabIndex = 2;
|
this.cmb_Connection.TabIndex = 2;
|
||||||
|
this.cmb_Connection.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.cmb_Connection_DrawItem);
|
||||||
//
|
//
|
||||||
// linkLabel1
|
// linkLabel1
|
||||||
//
|
//
|
||||||
|
|
|
@ -49,5 +49,31 @@ namespace ArdupilotMega.Controls
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void cmb_Connection_DrawItem(object sender, DrawItemEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Index < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
ComboBox combo = sender as ComboBox;
|
||||||
|
if ((e.State & DrawItemState.Selected) == DrawItemState.Selected)
|
||||||
|
e.Graphics.FillRectangle(new SolidBrush(SystemColors.Highlight),
|
||||||
|
e.Bounds);
|
||||||
|
else
|
||||||
|
e.Graphics.FillRectangle(new SolidBrush(combo.BackColor),
|
||||||
|
e.Bounds);
|
||||||
|
|
||||||
|
string text = combo.Items[e.Index].ToString();
|
||||||
|
if (!MainV2.MONO)
|
||||||
|
{
|
||||||
|
text = text + " "+ ArdupilotMega.Comms.SerialPort.GetNiceName(text);
|
||||||
|
}
|
||||||
|
|
||||||
|
e.Graphics.DrawString(text, e.Font,
|
||||||
|
new SolidBrush(combo.ForeColor),
|
||||||
|
new Point(e.Bounds.X, e.Bounds.Y));
|
||||||
|
|
||||||
|
e.DrawFocusRectangle();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,18 +85,24 @@ namespace ArdupilotMega.Controls
|
||||||
if (this.Checked)
|
if (this.Checked)
|
||||||
{
|
{
|
||||||
enableControl(true);
|
enableControl(true);
|
||||||
if (!MainV2.comPort.setParam(ParamName, OnValue))
|
try
|
||||||
{
|
{
|
||||||
CustomMessageBox.Show("Set "+ParamName + " Failed!");
|
bool ans = MainV2.comPort.setParam(ParamName, OnValue);
|
||||||
|
if (ans == false)
|
||||||
|
CustomMessageBox.Show("Set " + ParamName + " Failed 1!");
|
||||||
}
|
}
|
||||||
|
catch { CustomMessageBox.Show("Set " + ParamName + " Failed 2!"); }
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
enableControl(false);
|
enableControl(false);
|
||||||
if (!MainV2.comPort.setParam(ParamName, OffValue))
|
try
|
||||||
{
|
{
|
||||||
CustomMessageBox.Show("Set " + ParamName + " Failed!");
|
bool ans = MainV2.comPort.setParam(ParamName, OffValue);
|
||||||
|
if (ans == false)
|
||||||
|
CustomMessageBox.Show("Set " + ParamName + " Failed 1!");
|
||||||
}
|
}
|
||||||
|
catch { CustomMessageBox.Show("Set " + ParamName + " Failed 2!"); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,10 +67,13 @@ namespace ArdupilotMega.Controls
|
||||||
|
|
||||||
void MavlinkNumericUpDown_ValueChanged(object sender, EventArgs e)
|
void MavlinkNumericUpDown_ValueChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!MainV2.comPort.setParam(ParamName, (float)this.Value * _scale))
|
try
|
||||||
{
|
{
|
||||||
CustomMessageBox.Show("Set " + ParamName + " Failed!");
|
bool ans = MainV2.comPort.setParam(ParamName, (float)this.Value * _scale);
|
||||||
|
if (ans == false)
|
||||||
|
CustomMessageBox.Show("Set " + ParamName + " Failed 1!");
|
||||||
}
|
}
|
||||||
|
catch { CustomMessageBox.Show("Set " + ParamName + " Failed 2!"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,8 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
|
||||||
// remember the last page accessed
|
// remember the last page accessed
|
||||||
static string lastpagename = "";
|
static string lastpagename = "";
|
||||||
|
|
||||||
|
BackstageView.BackstageViewPage hardware;
|
||||||
|
|
||||||
public Setup()
|
public Setup()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
@ -24,6 +26,8 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
|
||||||
|
|
||||||
private void Setup_Load(object sender, EventArgs e)
|
private void Setup_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
this.SuspendLayout();
|
||||||
|
|
||||||
if (MainV2.comPort.BaseStream.IsOpen)
|
if (MainV2.comPort.BaseStream.IsOpen)
|
||||||
{
|
{
|
||||||
AddPagesForConnectedState();
|
AddPagesForConnectedState();
|
||||||
|
@ -31,9 +35,9 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
|
||||||
}
|
}
|
||||||
|
|
||||||
// These pages work when not connected to an APM
|
// These pages work when not connected to an APM
|
||||||
AddBackstageViewPage(new ArdupilotMega._3DRradio(), "3DR Radio");
|
AddBackstageViewPage(new ArdupilotMega._3DRradio(), "3DR Radio", hardware);
|
||||||
AddBackstageViewPage(new ArdupilotMega.Antenna.Tracker(), "Antenna Tracker");
|
AddBackstageViewPage(new ArdupilotMega.Antenna.Tracker(), "Antenna Tracker");
|
||||||
backstageView.AddSpacer(5);
|
backstageView.AddSpacer(10);
|
||||||
AddBackstageViewPage(new ConfigPlanner(), "Planner");
|
AddBackstageViewPage(new ConfigPlanner(), "Planner");
|
||||||
|
|
||||||
// remeber last page accessed
|
// remeber last page accessed
|
||||||
|
@ -45,7 +49,6 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//this.backstageView.ActivatePage(backstageView.Pages[0]);
|
//this.backstageView.ActivatePage(backstageView.Pages[0]);
|
||||||
|
|
||||||
ThemeManager.ApplyThemeTo(this);
|
ThemeManager.ApplyThemeTo(this);
|
||||||
|
@ -55,6 +58,8 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
|
||||||
Common.MessageShowAgain("Config Connect", @"Please connect (click Connect Button) before using setup.
|
Common.MessageShowAgain("Config Connect", @"Please connect (click Connect Button) before using setup.
|
||||||
If you are just setting up 3DR radios, you may continue without connecting.");
|
If you are just setting up 3DR radios, you may continue without connecting.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.ResumeLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -66,9 +71,12 @@ If you are just setting up 3DR radios, you may continue without connecting.");
|
||||||
AddBackstageViewPage(new ConfigRadioInput(), "Radio Calibration");
|
AddBackstageViewPage(new ConfigRadioInput(), "Radio Calibration");
|
||||||
AddBackstageViewPage(new ConfigFlightModes(), "Flight Modes");
|
AddBackstageViewPage(new ConfigFlightModes(), "Flight Modes");
|
||||||
AddBackstageViewPage(new ConfigFailSafe(), "FailSafe");
|
AddBackstageViewPage(new ConfigFailSafe(), "FailSafe");
|
||||||
BackstageView.BackstageViewPage hardware = AddBackstageViewPage(new ConfigHardwareOptions(), "Hardware Options");
|
hardware = AddBackstageViewPage(new ConfigHardwareOptions(), "Hardware Options");
|
||||||
AddBackstageViewPage(new ConfigBatteryMonitoring(), "Battery Monitor", hardware);
|
AddBackstageViewPage(new ConfigBatteryMonitoring(), "Battery Monitor", hardware);
|
||||||
|
|
||||||
|
BackstageView.BackstageViewPage tunningpage = AddBackstageViewPage(new ConfigFriendlyParams { ParameterMode = ParameterMetaDataConstants.Standard }, "Standard Params");
|
||||||
|
AddBackstageViewPage(new ConfigFriendlyParams { ParameterMode = ParameterMetaDataConstants.Advanced }, "Advanced Params", tunningpage);
|
||||||
|
AddBackstageViewPage(new ConfigRawParams(), "Adv Parameter List", tunningpage);
|
||||||
|
|
||||||
/******************************HELI **************************/
|
/******************************HELI **************************/
|
||||||
if (MainV2.comPort.param["H_GYR_ENABLE"] != null) // heli
|
if (MainV2.comPort.param["H_GYR_ENABLE"] != null) // heli
|
||||||
|
@ -80,9 +88,9 @@ If you are just setting up 3DR radios, you may continue without connecting.");
|
||||||
AddBackstageViewPage(new ConfigTradHeli(), "Heli Setup");
|
AddBackstageViewPage(new ConfigTradHeli(), "Heli Setup");
|
||||||
|
|
||||||
var configpanel = new Controls.ConfigPanel(Application.StartupPath + System.IO.Path.DirectorySeparatorChar + "ArduCopterConfig.xml");
|
var configpanel = new Controls.ConfigPanel(Application.StartupPath + System.IO.Path.DirectorySeparatorChar + "ArduCopterConfig.xml");
|
||||||
AddBackstageViewPage(configpanel, "ArduCopter Pids");
|
AddBackstageViewPage(configpanel, "ArduCopter Pids", tunningpage);
|
||||||
|
|
||||||
AddBackstageViewPage(new ConfigArducopter(), "ArduCopter Config");
|
AddBackstageViewPage(new ConfigArducopter(), "ArduCopter Config", tunningpage);
|
||||||
// AddBackstageViewPage(new ConfigAP_Limits(), "GeoFence");
|
// AddBackstageViewPage(new ConfigAP_Limits(), "GeoFence");
|
||||||
}
|
}
|
||||||
/****************************** ArduCopter **************************/
|
/****************************** ArduCopter **************************/
|
||||||
|
@ -93,9 +101,9 @@ If you are just setting up 3DR radios, you may continue without connecting.");
|
||||||
AddBackstageViewPage(new ConfigAccelerometerCalibrationQuad(), "ArduCopter Level");
|
AddBackstageViewPage(new ConfigAccelerometerCalibrationQuad(), "ArduCopter Level");
|
||||||
|
|
||||||
var configpanel = new Controls.ConfigPanel(Application.StartupPath + System.IO.Path.DirectorySeparatorChar + "ArduCopterConfig.xml");
|
var configpanel = new Controls.ConfigPanel(Application.StartupPath + System.IO.Path.DirectorySeparatorChar + "ArduCopterConfig.xml");
|
||||||
AddBackstageViewPage(configpanel, "ArduCopter Pids");
|
AddBackstageViewPage(configpanel, "ArduCopter Pids", tunningpage);
|
||||||
|
|
||||||
AddBackstageViewPage(new ConfigArducopter(), "ArduCopter Config");
|
AddBackstageViewPage(new ConfigArducopter(), "ArduCopter Config", tunningpage);
|
||||||
// AddBackstageViewPage(new ConfigAP_Limits(), "GeoFence");
|
// AddBackstageViewPage(new ConfigAP_Limits(), "GeoFence");
|
||||||
}
|
}
|
||||||
/****************************** ArduPlane **************************/
|
/****************************** ArduPlane **************************/
|
||||||
|
@ -104,18 +112,15 @@ If you are just setting up 3DR radios, you may continue without connecting.");
|
||||||
AddBackstageViewPage(new ConfigMount(), "Camera Gimbal", hardware);
|
AddBackstageViewPage(new ConfigMount(), "Camera Gimbal", hardware);
|
||||||
|
|
||||||
AddBackstageViewPage(new ConfigAccelerometerCalibrationPlane(), "ArduPlane Level");
|
AddBackstageViewPage(new ConfigAccelerometerCalibrationPlane(), "ArduPlane Level");
|
||||||
AddBackstageViewPage(new ConfigArduplane(), "ArduPlane Pids");
|
AddBackstageViewPage(new ConfigArduplane(), "ArduPlane Pids", tunningpage);
|
||||||
}
|
}
|
||||||
/****************************** ArduRover **************************/
|
/****************************** ArduRover **************************/
|
||||||
else if (MainV2.cs.firmware == MainV2.Firmwares.ArduRover)
|
else if (MainV2.cs.firmware == MainV2.Firmwares.ArduRover)
|
||||||
{
|
{
|
||||||
//AddBackstageViewPage(new ConfigAccelerometerCalibrationPlane(), "ArduRover Level"));
|
//AddBackstageViewPage(new ConfigAccelerometerCalibrationPlane(), "ArduRover Level"));
|
||||||
AddBackstageViewPage(new ConfigArdurover(), "ArduRover Pids");
|
AddBackstageViewPage(new ConfigArdurover(), "ArduRover Pids", tunningpage);
|
||||||
}
|
}
|
||||||
|
|
||||||
AddBackstageViewPage(new ConfigFriendlyParams { ParameterMode = ParameterMetaDataConstants.Standard }, "Standard Params");
|
|
||||||
AddBackstageViewPage(new ConfigFriendlyParams { ParameterMode = ParameterMetaDataConstants.Advanced }, "Advanced Params");
|
|
||||||
AddBackstageViewPage(new ConfigRawParams(), "Adv Parameter List");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private BackstageView.BackstageViewPage AddBackstageViewPage(UserControl userControl, string headerText, BackstageView.BackstageViewPage Parent = null)
|
private BackstageView.BackstageViewPage AddBackstageViewPage(UserControl userControl, string headerText, BackstageView.BackstageViewPage Parent = null)
|
||||||
|
|
|
@ -34,7 +34,7 @@ namespace ArdupilotMega.GCSViews
|
||||||
//"http://meee146-planner.googlecode.com/git/Tools/ArdupilotMegaPlanner/Firmware/AC2-Y6-1280.hex"
|
//"http://meee146-planner.googlecode.com/git/Tools/ArdupilotMegaPlanner/Firmware/AC2-Y6-1280.hex"
|
||||||
readonly string oldurl = ("https://meee146-planner.googlecode.com/git-history/!Hash!/Tools/ArdupilotMegaPlanner/Firmware/firmware2.xml");
|
readonly string oldurl = ("https://meee146-planner.googlecode.com/git-history/!Hash!/Tools/ArdupilotMegaPlanner/Firmware/firmware2.xml");
|
||||||
readonly string oldfirmwareurl = ("https://meee146-planner.googlecode.com/git-history/!Hash!/Tools/ArdupilotMegaPlanner/Firmware/!Firmware!");
|
readonly string oldfirmwareurl = ("https://meee146-planner.googlecode.com/git-history/!Hash!/Tools/ArdupilotMegaPlanner/Firmware/!Firmware!");
|
||||||
string[] oldurls = new string[] {"abe930ce723267697542388ef181328f00371f40", "26305d5790333f730cd396afcd08c165cde33ed7", "bc1f26ca40b076e3d06f173adad772fb25aa6512", "dfc5737c5efc1e7b78e908829a097624c273d9d7", "682065db449b6c79d89717908ed8beea1ed6a03a", "b21116847d35472b9ab770408cbeb88ed2ed0a95", "511e00bc89a554aea8768a274bff28af532cd335", "1da56714aa1ed88dcdb078a90d33bcef4eb4315f", "8aa4c7a1ed07648f31335926cc6bcc06c87dc536" };
|
string[] oldurls = new string[] { "55ec5eaf662a56044ea25c894d235d17185f0660", "cb5b736976c7ed791ea45675c31f588ecb8228d4", "bcd5239322df38db011f183e48d596f215803838", "8709cc418e00326295abc562530413c0089807a7", "06a64192df594b0f81233dfb1f0214aab2cb2603", "7853ef3fad98e5053f228b7c1748c76858c4d282", "abe930ce723267697542388ef181328f00371f40", "26305d5790333f730cd396afcd08c165cde33ed7", "bc1f26ca40b076e3d06f173adad772fb25aa6512", "dfc5737c5efc1e7b78e908829a097624c273d9d7", "682065db449b6c79d89717908ed8beea1ed6a03a", "b21116847d35472b9ab770408cbeb88ed2ed0a95", "511e00bc89a554aea8768a274bff28af532cd335", "1da56714aa1ed88dcdb078a90d33bcef4eb4315f", "8aa4c7a1ed07648f31335926cc6bcc06c87dc536" };
|
||||||
|
|
||||||
List<software> softwares = new List<software>();
|
List<software> softwares = new List<software>();
|
||||||
bool flashing = false;
|
bool flashing = false;
|
||||||
|
@ -702,7 +702,7 @@ namespace ArdupilotMega.GCSViews
|
||||||
private void BUT_setup_Click(object sender, EventArgs e)
|
private void BUT_setup_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Form temp = new Form();
|
Form temp = new Form();
|
||||||
MyUserControl configview = new GCSViews.ConfigurationView.SetupFresh();
|
MyUserControl configview = new GCSViews.ConfigurationView.Setup();
|
||||||
temp.Controls.Add(configview);
|
temp.Controls.Add(configview);
|
||||||
ThemeManager.ApplyThemeTo(temp);
|
ThemeManager.ApplyThemeTo(temp);
|
||||||
// fix title
|
// fix title
|
||||||
|
|
|
@ -425,6 +425,7 @@
|
||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
this.modifyandSetSpeed.Click += new System.EventHandler(this.modifyandSetSpeed_Click);
|
this.modifyandSetSpeed.Click += new System.EventHandler(this.modifyandSetSpeed_Click);
|
||||||
|
this.modifyandSetSpeed.ParentChanged += new System.EventHandler(this.modifyandSetSpeed_ParentChanged);
|
||||||
//
|
//
|
||||||
// modifyandSetAlt
|
// modifyandSetAlt
|
||||||
//
|
//
|
||||||
|
|
|
@ -241,261 +241,8 @@ namespace ArdupilotMega.GCSViews
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
|
|
||||||
if (true || MainV2.MONO)
|
|
||||||
{
|
|
||||||
// MainH.Dock = DockStyle.Fill;
|
|
||||||
// MainH.Visible = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* log.Info("1-"+ DateTime.Now);
|
|
||||||
//SetupDocking();
|
|
||||||
log.Info("2-" + DateTime.Now);
|
|
||||||
if (File.Exists(_serializer.SavePath) == true )
|
|
||||||
{
|
|
||||||
FileInfo fi = new FileInfo(_serializer.SavePath);
|
|
||||||
|
|
||||||
if (fi.Length > 500)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
_serializer.Load(true, GetFormFromGuid);
|
|
||||||
log.Info("3-" + DateTime.Now);
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
log.Info(ex);
|
|
||||||
try
|
|
||||||
{
|
|
||||||
//SetupDocking();
|
|
||||||
}
|
|
||||||
catch (Exception ex2)
|
|
||||||
{
|
|
||||||
log.Info(ex2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
log.Info("D-" + DateTime.Now);
|
|
||||||
* */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
void SetupDocking()
|
|
||||||
{
|
|
||||||
this.SuspendLayout();
|
|
||||||
|
|
||||||
DockableFormInfo dockhud = CreateFormAndGuid(dockContainer1, hud1, "fd_hud_guid");
|
|
||||||
DockableFormInfo dockmap = CreateFormAndGuid(dockContainer1, tableMap, "fd_map_guid");
|
|
||||||
DockableFormInfo dockquick = CreateFormAndGuid(dockContainer1, tabQuick, "fd_quick_guid");
|
|
||||||
DockableFormInfo dockactions = CreateFormAndGuid(dockContainer1, tabActions, "fd_actions_guid");
|
|
||||||
DockableFormInfo dockguages = CreateFormAndGuid(dockContainer1, tabGauges, "fd_guages_guid");
|
|
||||||
DockableFormInfo dockstatus = CreateFormAndGuid(dockContainer1, tabStatus, "fd_status_guid");
|
|
||||||
DockableFormInfo docktlogs = CreateFormAndGuid(dockContainer1, tabTLogs, "fd_tlogs_guid");
|
|
||||||
|
|
||||||
dockContainer1.DockForm(dockmap, DockStyle.Fill, zDockMode.Outer);
|
|
||||||
dockContainer1.DockForm(dockquick, DockStyle.Right, zDockMode.Outer);
|
|
||||||
dockContainer1.DockForm(dockhud, DockStyle.Left, zDockMode.Outer);
|
|
||||||
|
|
||||||
dockContainer1.DockForm(dockactions, dockhud, DockStyle.Bottom, zDockMode.Outer);
|
|
||||||
dockContainer1.DockForm(dockguages, dockactions, DockStyle.Fill, zDockMode.Inner);
|
|
||||||
dockContainer1.DockForm(dockstatus, dockactions, DockStyle.Fill, zDockMode.Inner);
|
|
||||||
dockContainer1.DockForm(docktlogs, dockactions, DockStyle.Fill, zDockMode.Inner);
|
|
||||||
|
|
||||||
dockactions.IsSelected = true;
|
|
||||||
|
|
||||||
if (MainV2.config["FlightSplitter"] != null)
|
|
||||||
{
|
|
||||||
dockContainer1.SetWidth(dockhud, int.Parse(MainV2.config["FlightSplitter"].ToString()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dockContainer1.SetHeight(dockhud, hud1.Height);
|
|
||||||
|
|
||||||
dockContainer1.SetWidth(dockguages, 110);
|
|
||||||
|
|
||||||
this.ResumeLayout();
|
|
||||||
}
|
|
||||||
|
|
||||||
void cleanupDocks()
|
|
||||||
{
|
|
||||||
// cleanup from load
|
|
||||||
for (int a = 0; a < dockContainer1.Count; a++)
|
|
||||||
{
|
|
||||||
DockableFormInfo info = dockContainer1.GetFormInfoAt(a);
|
|
||||||
|
|
||||||
info.ShowCloseButton = false;
|
|
||||||
|
|
||||||
info.ShowContextMenuButton = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void SaveWindowLayout()
|
|
||||||
{
|
|
||||||
XmlTextWriter xmlwriter = new XmlTextWriter(Path.GetDirectoryName(Application.ExecutablePath) + Path.DirectorySeparatorChar + @"FDLayout.xml", Encoding.ASCII);
|
|
||||||
xmlwriter.Formatting = Formatting.Indented;
|
|
||||||
|
|
||||||
xmlwriter.WriteStartDocument();
|
|
||||||
|
|
||||||
xmlwriter.WriteStartElement("ScreenLayout");
|
|
||||||
|
|
||||||
//xmlwriter.WriteElementString("comport", comPortName);
|
|
||||||
|
|
||||||
|
|
||||||
for (int a = 0; a < dockContainer1.Count; a++)
|
|
||||||
{
|
|
||||||
DockableFormInfo info = dockContainer1.GetFormInfoAt(a);
|
|
||||||
|
|
||||||
xmlwriter.WriteStartElement("Form");
|
|
||||||
|
|
||||||
object thisBoxed = info;
|
|
||||||
Type test = thisBoxed.GetType();
|
|
||||||
|
|
||||||
foreach (var field in test.GetProperties())
|
|
||||||
{
|
|
||||||
// field.Name has the field's name.
|
|
||||||
object fieldValue;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
fieldValue = field.GetValue(thisBoxed, null); // Get value
|
|
||||||
}
|
|
||||||
catch { continue; }
|
|
||||||
|
|
||||||
// Get the TypeCode enumeration. Multiple types get mapped to a common typecode.
|
|
||||||
TypeCode typeCode = Type.GetTypeCode(fieldValue.GetType());
|
|
||||||
|
|
||||||
xmlwriter.WriteElementString(field.Name, fieldValue.ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
thisBoxed = info.DockableForm;
|
|
||||||
test = thisBoxed.GetType();
|
|
||||||
|
|
||||||
foreach (var field in test.GetProperties())
|
|
||||||
{
|
|
||||||
// field.Name has the field's name.
|
|
||||||
object fieldValue;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
fieldValue = field.GetValue(thisBoxed, null); // Get value
|
|
||||||
|
|
||||||
|
|
||||||
// Get the TypeCode enumeration. Multiple types get mapped to a common typecode.
|
|
||||||
TypeCode typeCode = Type.GetTypeCode(fieldValue.GetType());
|
|
||||||
|
|
||||||
xmlwriter.WriteElementString(field.Name, fieldValue.ToString());
|
|
||||||
}
|
|
||||||
catch { continue; }
|
|
||||||
}
|
|
||||||
|
|
||||||
// DockableContainer dockcont = info as DockableContainer;
|
|
||||||
|
|
||||||
// dockContainer1.
|
|
||||||
|
|
||||||
xmlwriter.WriteEndElement();
|
|
||||||
}
|
|
||||||
|
|
||||||
xmlwriter.WriteEndElement();
|
|
||||||
|
|
||||||
xmlwriter.WriteEndDocument();
|
|
||||||
xmlwriter.Close();
|
|
||||||
}
|
|
||||||
|
|
||||||
DockableFormInfo CreateFormAndGuid(DockContainer dock, Control ctl, string configguidref)
|
|
||||||
{
|
|
||||||
Guid gu = GetOrCreateGuid(configguidref);
|
|
||||||
Form frm;
|
|
||||||
|
|
||||||
if (formguids.ContainsKey(gu) && !formguids[gu].IsDisposed)
|
|
||||||
{
|
|
||||||
frm = formguids[gu];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
frm = CreateFormFromControl(ctl);
|
|
||||||
frm.AutoScroll = true;
|
|
||||||
formguids[gu] = frm;
|
|
||||||
}
|
|
||||||
|
|
||||||
frm.FormBorderStyle = FormBorderStyle.SizableToolWindow;
|
|
||||||
frm.TopLevel = false;
|
|
||||||
|
|
||||||
DockableFormInfo answer = dock.Add(frm, Crom.Controls.Docking.zAllowedDock.All, gu);
|
|
||||||
|
|
||||||
answer.ShowCloseButton = false;
|
|
||||||
|
|
||||||
answer.ShowContextMenuButton = false;
|
|
||||||
|
|
||||||
return answer;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
Guid GetOrCreateGuid(string configname)
|
|
||||||
{
|
|
||||||
if (!MainV2.config.ContainsKey(configname))
|
|
||||||
{
|
|
||||||
MainV2.config[configname] = Guid.NewGuid().ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
return new Guid(MainV2.config[configname].ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
Form GetFormFromGuid(Guid id)
|
|
||||||
{
|
|
||||||
return formguids[id];
|
|
||||||
}
|
|
||||||
|
|
||||||
Form CreateFormFromControl(Control ctl)
|
|
||||||
{
|
|
||||||
ctl.Dock = DockStyle.Fill;
|
|
||||||
Form newform = new Form();
|
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainV2));
|
|
||||||
newform.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (ctl is TabPage)
|
|
||||||
{
|
|
||||||
TabPage tp = ctl as TabPage;
|
|
||||||
newform.Text = ctl.Text;
|
|
||||||
while (tp.Controls.Count > 0)
|
|
||||||
{
|
|
||||||
newform.Controls.Add(tp.Controls[0]);
|
|
||||||
}
|
|
||||||
if (tp == tabQuick)
|
|
||||||
{
|
|
||||||
newform.Resize += tabQuick_Resize;
|
|
||||||
}
|
|
||||||
if (tp == tabStatus)
|
|
||||||
{
|
|
||||||
newform.Resize += tabStatus_Resize;
|
|
||||||
newform.Load += tabStatus_Resize;
|
|
||||||
//newform.Resize += tab1
|
|
||||||
}
|
|
||||||
if (tp == tabGauges)
|
|
||||||
{
|
|
||||||
newform.Resize += tabPage1_Resize;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (ctl is Form)
|
|
||||||
{
|
|
||||||
return (Form)ctl;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
newform.Text = ctl.Text;
|
|
||||||
newform.Controls.Add(ctl);
|
|
||||||
if (ctl is HUD)
|
|
||||||
{
|
|
||||||
newform.Text = "Hud";
|
|
||||||
}
|
|
||||||
if (ctl is myGMAP)
|
|
||||||
{
|
|
||||||
newform.Text = "Map";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
return newform;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
void tabStatus_Resize(object sender, EventArgs e)
|
void tabStatus_Resize(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// localise it
|
// localise it
|
||||||
|
@ -760,7 +507,11 @@ namespace ArdupilotMega.GCSViews
|
||||||
if (comPort.BaseStream.IsOpen)
|
if (comPort.BaseStream.IsOpen)
|
||||||
{
|
{
|
||||||
MainV2.comPort.logreadmode = false;
|
MainV2.comPort.logreadmode = false;
|
||||||
|
try
|
||||||
|
{
|
||||||
MainV2.comPort.logplaybackfile.Close();
|
MainV2.comPort.logplaybackfile.Close();
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
MainV2.comPort.logplaybackfile = null;
|
MainV2.comPort.logplaybackfile = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1551,6 +1302,25 @@ namespace ArdupilotMega.GCSViews
|
||||||
{
|
{
|
||||||
MainV2.cam.camimage += new WebCamService.CamImage(cam_camimage);
|
MainV2.cam.camimage += new WebCamService.CamImage(cam_camimage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// QUAD
|
||||||
|
if (MainV2.comPort.param.ContainsKey("WP_SPEED_MAX"))
|
||||||
|
{
|
||||||
|
modifyandSetSpeed.Value = (decimal)(float)MainV2.comPort.param["WP_SPEED_MAX"];
|
||||||
|
} // plane with airspeed
|
||||||
|
else if (MainV2.comPort.param.ContainsKey("TRIM_ARSPD_CM") && MainV2.comPort.param.ContainsKey("ARSPD_ENABLE")
|
||||||
|
&& MainV2.comPort.param.ContainsKey("ARSPD_USE") && (float)MainV2.comPort.param["ARSPD_ENABLE"] == 1
|
||||||
|
&& (float)MainV2.comPort.param["ARSPD_USE"] == 1)
|
||||||
|
{
|
||||||
|
modifyandSetSpeed.Value = (decimal)(float)MainV2.comPort.param["TRIM_ARSPD_CM"];
|
||||||
|
} // plane without airspeed
|
||||||
|
else if (MainV2.comPort.param.ContainsKey("TRIM_THROTTLE") && MainV2.comPort.param.ContainsKey("ARSPD_USE")
|
||||||
|
&& (float)MainV2.comPort.param["ARSPD_USE"] == 0)
|
||||||
|
{
|
||||||
|
modifyandSetSpeed.Value = (decimal)(float)MainV2.comPort.param["TRIM_THROTTLE"];
|
||||||
|
}
|
||||||
|
|
||||||
|
comPort.ParamListChanged += FlightData_ParentChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cam_camimage(Image camimage)
|
void cam_camimage(Image camimage)
|
||||||
|
@ -2712,7 +2482,14 @@ print 'Roll complete'
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// arm the MAV
|
// arm the MAV
|
||||||
|
try
|
||||||
|
{
|
||||||
bool ans = MainV2.comPort.doARM(MainV2.cs.armed);
|
bool ans = MainV2.comPort.doARM(MainV2.cs.armed);
|
||||||
|
if (ans == false)
|
||||||
|
CustomMessageBox.Show("Error: Arm message rejected by MAV");
|
||||||
|
}
|
||||||
|
catch { CustomMessageBox.Show("Error: No responce from MAV"); }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2753,5 +2530,10 @@ print 'Roll complete'
|
||||||
MainV2.comPort.setParam("TRIM_THROTTLE", (float)modifyandSetSpeed.Value);
|
MainV2.comPort.setParam("TRIM_THROTTLE", (float)modifyandSetSpeed.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void modifyandSetSpeed_ParentChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -244,7 +244,7 @@
|
||||||
<value>hud1</value>
|
<value>hud1</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>hud1.Type" xml:space="preserve">
|
<data name=">>hud1.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.HUD, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.HUD, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>hud1.Parent" xml:space="preserve">
|
<data name=">>hud1.Parent" xml:space="preserve">
|
||||||
<value>SubMainLeft.Panel1</value>
|
<value>SubMainLeft.Panel1</value>
|
||||||
|
@ -283,7 +283,7 @@
|
||||||
<value>quickView6</value>
|
<value>quickView6</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView6.Type" xml:space="preserve">
|
<data name=">>quickView6.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView6.Parent" xml:space="preserve">
|
<data name=">>quickView6.Parent" xml:space="preserve">
|
||||||
<value>tabQuick</value>
|
<value>tabQuick</value>
|
||||||
|
@ -307,7 +307,7 @@
|
||||||
<value>quickView5</value>
|
<value>quickView5</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView5.Type" xml:space="preserve">
|
<data name=">>quickView5.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView5.Parent" xml:space="preserve">
|
<data name=">>quickView5.Parent" xml:space="preserve">
|
||||||
<value>tabQuick</value>
|
<value>tabQuick</value>
|
||||||
|
@ -331,7 +331,7 @@
|
||||||
<value>quickView4</value>
|
<value>quickView4</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView4.Type" xml:space="preserve">
|
<data name=">>quickView4.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView4.Parent" xml:space="preserve">
|
<data name=">>quickView4.Parent" xml:space="preserve">
|
||||||
<value>tabQuick</value>
|
<value>tabQuick</value>
|
||||||
|
@ -355,7 +355,7 @@
|
||||||
<value>quickView3</value>
|
<value>quickView3</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView3.Type" xml:space="preserve">
|
<data name=">>quickView3.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView3.Parent" xml:space="preserve">
|
<data name=">>quickView3.Parent" xml:space="preserve">
|
||||||
<value>tabQuick</value>
|
<value>tabQuick</value>
|
||||||
|
@ -379,7 +379,7 @@
|
||||||
<value>quickView2</value>
|
<value>quickView2</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView2.Type" xml:space="preserve">
|
<data name=">>quickView2.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView2.Parent" xml:space="preserve">
|
<data name=">>quickView2.Parent" xml:space="preserve">
|
||||||
<value>tabQuick</value>
|
<value>tabQuick</value>
|
||||||
|
@ -409,7 +409,7 @@
|
||||||
<value>quickView1</value>
|
<value>quickView1</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView1.Type" xml:space="preserve">
|
<data name=">>quickView1.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.QuickView, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>quickView1.Parent" xml:space="preserve">
|
<data name=">>quickView1.Parent" xml:space="preserve">
|
||||||
<value>tabQuick</value>
|
<value>tabQuick</value>
|
||||||
|
@ -444,9 +444,6 @@
|
||||||
<data name=">>tabQuick.ZOrder" xml:space="preserve">
|
<data name=">>tabQuick.ZOrder" xml:space="preserve">
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="modifyandSetSpeed.Enabled" type="System.Boolean, mscorlib">
|
|
||||||
<value>False</value>
|
|
||||||
</data>
|
|
||||||
<data name="modifyandSetSpeed.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="modifyandSetSpeed.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>275, 35</value>
|
<value>275, 35</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -460,7 +457,7 @@
|
||||||
<value>modifyandSetSpeed</value>
|
<value>modifyandSetSpeed</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>modifyandSetSpeed.Type" xml:space="preserve">
|
<data name=">>modifyandSetSpeed.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.ModifyandSet, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.ModifyandSet, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>modifyandSetSpeed.Parent" xml:space="preserve">
|
<data name=">>modifyandSetSpeed.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -481,7 +478,7 @@
|
||||||
<value>modifyandSetAlt</value>
|
<value>modifyandSetAlt</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>modifyandSetAlt.Type" xml:space="preserve">
|
<data name=">>modifyandSetAlt.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.ModifyandSet, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.ModifyandSet, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>modifyandSetAlt.Parent" xml:space="preserve">
|
<data name=">>modifyandSetAlt.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -514,7 +511,7 @@
|
||||||
<value>BUT_ARM</value>
|
<value>BUT_ARM</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_ARM.Type" xml:space="preserve">
|
<data name=">>BUT_ARM.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_ARM.Parent" xml:space="preserve">
|
<data name=">>BUT_ARM.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -541,7 +538,7 @@
|
||||||
<value>BUT_script</value>
|
<value>BUT_script</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_script.Type" xml:space="preserve">
|
<data name=">>BUT_script.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_script.Parent" xml:space="preserve">
|
<data name=">>BUT_script.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -571,7 +568,7 @@
|
||||||
<value>BUT_joystick</value>
|
<value>BUT_joystick</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_joystick.Type" xml:space="preserve">
|
<data name=">>BUT_joystick.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_joystick.Parent" xml:space="preserve">
|
<data name=">>BUT_joystick.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -601,7 +598,7 @@
|
||||||
<value>BUT_quickmanual</value>
|
<value>BUT_quickmanual</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_quickmanual.Type" xml:space="preserve">
|
<data name=">>BUT_quickmanual.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_quickmanual.Parent" xml:space="preserve">
|
<data name=">>BUT_quickmanual.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -631,7 +628,7 @@
|
||||||
<value>BUT_quickrtl</value>
|
<value>BUT_quickrtl</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_quickrtl.Type" xml:space="preserve">
|
<data name=">>BUT_quickrtl.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_quickrtl.Parent" xml:space="preserve">
|
<data name=">>BUT_quickrtl.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -661,7 +658,7 @@
|
||||||
<value>BUT_quickauto</value>
|
<value>BUT_quickauto</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_quickauto.Type" xml:space="preserve">
|
<data name=">>BUT_quickauto.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_quickauto.Parent" xml:space="preserve">
|
<data name=">>BUT_quickauto.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -715,7 +712,7 @@
|
||||||
<value>BUT_setwp</value>
|
<value>BUT_setwp</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_setwp.Type" xml:space="preserve">
|
<data name=">>BUT_setwp.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_setwp.Parent" xml:space="preserve">
|
<data name=">>BUT_setwp.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -766,7 +763,7 @@
|
||||||
<value>BUT_setmode</value>
|
<value>BUT_setmode</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_setmode.Type" xml:space="preserve">
|
<data name=">>BUT_setmode.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_setmode.Parent" xml:space="preserve">
|
<data name=">>BUT_setmode.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -796,7 +793,7 @@
|
||||||
<value>BUT_clear_track</value>
|
<value>BUT_clear_track</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_clear_track.Type" xml:space="preserve">
|
<data name=">>BUT_clear_track.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_clear_track.Parent" xml:space="preserve">
|
<data name=">>BUT_clear_track.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -847,7 +844,7 @@
|
||||||
<value>BUT_Homealt</value>
|
<value>BUT_Homealt</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_Homealt.Type" xml:space="preserve">
|
<data name=">>BUT_Homealt.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_Homealt.Parent" xml:space="preserve">
|
<data name=">>BUT_Homealt.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -877,7 +874,7 @@
|
||||||
<value>BUT_RAWSensor</value>
|
<value>BUT_RAWSensor</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_RAWSensor.Type" xml:space="preserve">
|
<data name=">>BUT_RAWSensor.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_RAWSensor.Parent" xml:space="preserve">
|
<data name=">>BUT_RAWSensor.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -907,7 +904,7 @@
|
||||||
<value>BUTrestartmission</value>
|
<value>BUTrestartmission</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUTrestartmission.Type" xml:space="preserve">
|
<data name=">>BUTrestartmission.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUTrestartmission.Parent" xml:space="preserve">
|
<data name=">>BUTrestartmission.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -937,7 +934,7 @@
|
||||||
<value>BUTactiondo</value>
|
<value>BUTactiondo</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUTactiondo.Type" xml:space="preserve">
|
<data name=">>BUTactiondo.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUTactiondo.Parent" xml:space="preserve">
|
<data name=">>BUTactiondo.Parent" xml:space="preserve">
|
||||||
<value>tabActions</value>
|
<value>tabActions</value>
|
||||||
|
@ -991,7 +988,7 @@
|
||||||
<value>Gvspeed</value>
|
<value>Gvspeed</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>Gvspeed.Type" xml:space="preserve">
|
<data name=">>Gvspeed.Type" xml:space="preserve">
|
||||||
<value>AGaugeApp.AGauge, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>AGaugeApp.AGauge, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>Gvspeed.Parent" xml:space="preserve">
|
<data name=">>Gvspeed.Parent" xml:space="preserve">
|
||||||
<value>tabGauges</value>
|
<value>tabGauges</value>
|
||||||
|
@ -1021,7 +1018,7 @@
|
||||||
<value>Gheading</value>
|
<value>Gheading</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>Gheading.Type" xml:space="preserve">
|
<data name=">>Gheading.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.HSI, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.HSI, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>Gheading.Parent" xml:space="preserve">
|
<data name=">>Gheading.Parent" xml:space="preserve">
|
||||||
<value>tabGauges</value>
|
<value>tabGauges</value>
|
||||||
|
@ -1051,7 +1048,7 @@
|
||||||
<value>Galt</value>
|
<value>Galt</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>Galt.Type" xml:space="preserve">
|
<data name=">>Galt.Type" xml:space="preserve">
|
||||||
<value>AGaugeApp.AGauge, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>AGaugeApp.AGauge, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>Galt.Parent" xml:space="preserve">
|
<data name=">>Galt.Parent" xml:space="preserve">
|
||||||
<value>tabGauges</value>
|
<value>tabGauges</value>
|
||||||
|
@ -1084,7 +1081,7 @@
|
||||||
<value>Gspeed</value>
|
<value>Gspeed</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>Gspeed.Type" xml:space="preserve">
|
<data name=">>Gspeed.Type" xml:space="preserve">
|
||||||
<value>AGaugeApp.AGauge, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>AGaugeApp.AGauge, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>Gspeed.Parent" xml:space="preserve">
|
<data name=">>Gspeed.Parent" xml:space="preserve">
|
||||||
<value>tabGauges</value>
|
<value>tabGauges</value>
|
||||||
|
@ -1168,7 +1165,7 @@
|
||||||
<value>lbl_playbackspeed</value>
|
<value>lbl_playbackspeed</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_playbackspeed.Type" xml:space="preserve">
|
<data name=">>lbl_playbackspeed.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_playbackspeed.Parent" xml:space="preserve">
|
<data name=">>lbl_playbackspeed.Parent" xml:space="preserve">
|
||||||
<value>tabTLogs</value>
|
<value>tabTLogs</value>
|
||||||
|
@ -1195,7 +1192,7 @@
|
||||||
<value>lbl_logpercent</value>
|
<value>lbl_logpercent</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_logpercent.Type" xml:space="preserve">
|
<data name=">>lbl_logpercent.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_logpercent.Parent" xml:space="preserve">
|
<data name=">>lbl_logpercent.Parent" xml:space="preserve">
|
||||||
<value>tabTLogs</value>
|
<value>tabTLogs</value>
|
||||||
|
@ -1222,7 +1219,7 @@
|
||||||
<value>NUM_playbackspeed</value>
|
<value>NUM_playbackspeed</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>NUM_playbackspeed.Type" xml:space="preserve">
|
<data name=">>NUM_playbackspeed.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyTrackBar, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyTrackBar, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>NUM_playbackspeed.Parent" xml:space="preserve">
|
<data name=">>NUM_playbackspeed.Parent" xml:space="preserve">
|
||||||
<value>tabTLogs</value>
|
<value>tabTLogs</value>
|
||||||
|
@ -1249,7 +1246,7 @@
|
||||||
<value>BUT_log2kml</value>
|
<value>BUT_log2kml</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_log2kml.Type" xml:space="preserve">
|
<data name=">>BUT_log2kml.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_log2kml.Parent" xml:space="preserve">
|
<data name=">>BUT_log2kml.Parent" xml:space="preserve">
|
||||||
<value>tabTLogs</value>
|
<value>tabTLogs</value>
|
||||||
|
@ -1303,7 +1300,7 @@
|
||||||
<value>BUT_playlog</value>
|
<value>BUT_playlog</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_playlog.Type" xml:space="preserve">
|
<data name=">>BUT_playlog.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_playlog.Parent" xml:space="preserve">
|
<data name=">>BUT_playlog.Parent" xml:space="preserve">
|
||||||
<value>tabTLogs</value>
|
<value>tabTLogs</value>
|
||||||
|
@ -1330,7 +1327,7 @@
|
||||||
<value>BUT_loadtelem</value>
|
<value>BUT_loadtelem</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_loadtelem.Type" xml:space="preserve">
|
<data name=">>BUT_loadtelem.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyButton, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>BUT_loadtelem.Parent" xml:space="preserve">
|
<data name=">>BUT_loadtelem.Parent" xml:space="preserve">
|
||||||
<value>tabTLogs</value>
|
<value>tabTLogs</value>
|
||||||
|
@ -1516,7 +1513,7 @@
|
||||||
<value>lbl_winddir</value>
|
<value>lbl_winddir</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_winddir.Type" xml:space="preserve">
|
<data name=">>lbl_winddir.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_winddir.Parent" xml:space="preserve">
|
<data name=">>lbl_winddir.Parent" xml:space="preserve">
|
||||||
<value>splitContainer1.Panel2</value>
|
<value>splitContainer1.Panel2</value>
|
||||||
|
@ -1546,7 +1543,7 @@
|
||||||
<value>lbl_windvel</value>
|
<value>lbl_windvel</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_windvel.Type" xml:space="preserve">
|
<data name=">>lbl_windvel.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_windvel.Parent" xml:space="preserve">
|
<data name=">>lbl_windvel.Parent" xml:space="preserve">
|
||||||
<value>splitContainer1.Panel2</value>
|
<value>splitContainer1.Panel2</value>
|
||||||
|
@ -1579,7 +1576,7 @@
|
||||||
<value>lbl_hdop</value>
|
<value>lbl_hdop</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_hdop.Type" xml:space="preserve">
|
<data name=">>lbl_hdop.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_hdop.Parent" xml:space="preserve">
|
<data name=">>lbl_hdop.Parent" xml:space="preserve">
|
||||||
<value>splitContainer1.Panel2</value>
|
<value>splitContainer1.Panel2</value>
|
||||||
|
@ -1612,7 +1609,7 @@
|
||||||
<value>lbl_sats</value>
|
<value>lbl_sats</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_sats.Type" xml:space="preserve">
|
<data name=">>lbl_sats.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>lbl_sats.Parent" xml:space="preserve">
|
<data name=">>lbl_sats.Parent" xml:space="preserve">
|
||||||
<value>splitContainer1.Panel2</value>
|
<value>splitContainer1.Panel2</value>
|
||||||
|
@ -1784,7 +1781,7 @@
|
||||||
<value>gMapControl1</value>
|
<value>gMapControl1</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>gMapControl1.Type" xml:space="preserve">
|
<data name=">>gMapControl1.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.myGMAP, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.myGMAP, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>gMapControl1.Parent" xml:space="preserve">
|
<data name=">>gMapControl1.Parent" xml:space="preserve">
|
||||||
<value>splitContainer1.Panel2</value>
|
<value>splitContainer1.Panel2</value>
|
||||||
|
@ -1847,7 +1844,7 @@
|
||||||
<value>TXT_lat</value>
|
<value>TXT_lat</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>TXT_lat.Type" xml:space="preserve">
|
<data name=">>TXT_lat.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>TXT_lat.Parent" xml:space="preserve">
|
<data name=">>TXT_lat.Parent" xml:space="preserve">
|
||||||
<value>panel1</value>
|
<value>panel1</value>
|
||||||
|
@ -1904,7 +1901,7 @@
|
||||||
<value>label1</value>
|
<value>label1</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.Type" xml:space="preserve">
|
<data name=">>label1.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.Parent" xml:space="preserve">
|
<data name=">>label1.Parent" xml:space="preserve">
|
||||||
<value>panel1</value>
|
<value>panel1</value>
|
||||||
|
@ -1934,7 +1931,7 @@
|
||||||
<value>TXT_long</value>
|
<value>TXT_long</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>TXT_long.Type" xml:space="preserve">
|
<data name=">>TXT_long.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>TXT_long.Parent" xml:space="preserve">
|
<data name=">>TXT_long.Parent" xml:space="preserve">
|
||||||
<value>panel1</value>
|
<value>panel1</value>
|
||||||
|
@ -1964,7 +1961,7 @@
|
||||||
<value>TXT_alt</value>
|
<value>TXT_alt</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>TXT_alt.Type" xml:space="preserve">
|
<data name=">>TXT_alt.Type" xml:space="preserve">
|
||||||
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>ArdupilotMega.Controls.MyLabel, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>TXT_alt.Parent" xml:space="preserve">
|
<data name=">>TXT_alt.Parent" xml:space="preserve">
|
||||||
<value>panel1</value>
|
<value>panel1</value>
|
||||||
|
@ -2279,6 +2276,6 @@
|
||||||
<value>FlightData</value>
|
<value>FlightData</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>$this.Type" xml:space="preserve">
|
<data name=">>$this.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.MyUserControl, ArdupilotMegaPlanner10, Version=1.1.4688.31829, Culture=neutral, PublicKeyToken=null</value>
|
<value>System.Windows.Forms.MyUserControl, ArdupilotMegaPlanner10, Version=1.1.4691.24648, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -306,8 +306,11 @@ namespace ArdupilotMega.GCSViews
|
||||||
threadrun = false;
|
threadrun = false;
|
||||||
|
|
||||||
comPort.DtrEnable = false;
|
comPort.DtrEnable = false;
|
||||||
|
try
|
||||||
|
{
|
||||||
comPort.Close();
|
comPort.Close();
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
|
||||||
Console.WriteLine("Comport thread close");
|
Console.WriteLine("Comport thread close");
|
||||||
});
|
});
|
||||||
|
|
|
@ -843,7 +843,8 @@ namespace ArdupilotMega
|
||||||
{
|
{
|
||||||
TXT_seriallog.AppendText("\n\nProcessing " + logfile + "\n");
|
TXT_seriallog.AppendText("\n\nProcessing " + logfile + "\n");
|
||||||
this.Refresh();
|
this.Refresh();
|
||||||
|
try
|
||||||
|
{
|
||||||
TextReader tr = new StreamReader(logfile);
|
TextReader tr = new StreamReader(logfile);
|
||||||
|
|
||||||
while (tr.Peek() != -1)
|
while (tr.Peek() != -1)
|
||||||
|
@ -852,6 +853,8 @@ namespace ArdupilotMega
|
||||||
}
|
}
|
||||||
|
|
||||||
tr.Close();
|
tr.Close();
|
||||||
|
}
|
||||||
|
catch (Exception ex) { CustomMessageBox.Show("Error processing file. Make sure the file is not in use.\n"+ex.ToString()); }
|
||||||
|
|
||||||
writeKML(logfile + ".kml");
|
writeKML(logfile + ".kml");
|
||||||
|
|
||||||
|
|
|
@ -228,6 +228,11 @@ namespace ArdupilotMega
|
||||||
ThemeManager.ApplyThemeTo(frmProgressReporter);
|
ThemeManager.ApplyThemeTo(frmProgressReporter);
|
||||||
|
|
||||||
frmProgressReporter.RunBackgroundOperationAsync();
|
frmProgressReporter.RunBackgroundOperationAsync();
|
||||||
|
|
||||||
|
if (ParamListChanged != null)
|
||||||
|
{
|
||||||
|
ParamListChanged(this,null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FrmProgressReporterDoWorkAndParams(object sender, ProgressWorkerEventArgs e)
|
void FrmProgressReporterDoWorkAndParams(object sender, ProgressWorkerEventArgs e)
|
||||||
|
@ -381,7 +386,9 @@ namespace ArdupilotMega
|
||||||
frmProgressReporter.UpdateProgressAndStatus(0, "Getting Params.. (sysid " + sysid + " compid " + compid + ") ");
|
frmProgressReporter.UpdateProgressAndStatus(0, "Getting Params.. (sysid " + sysid + " compid " + compid + ") ");
|
||||||
|
|
||||||
if (getparams)
|
if (getparams)
|
||||||
|
{
|
||||||
getParamListBG();
|
getParamListBG();
|
||||||
|
}
|
||||||
|
|
||||||
if (frmProgressReporter.doWorkArgs.CancelAcknowledged == true)
|
if (frmProgressReporter.doWorkArgs.CancelAcknowledged == true)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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.1.*")]
|
[assembly: AssemblyVersion("1.1.*")]
|
||||||
[assembly: AssemblyFileVersion("1.2.16")]
|
[assembly: AssemblyFileVersion("1.2.17")]
|
||||||
[assembly: NeutralResourcesLanguageAttribute("")]
|
[assembly: NeutralResourcesLanguageAttribute("")]
|
||||||
|
|
Loading…
Reference in New Issue