diff --git a/Tools/ArdupilotMegaPlanner/ArdupilotMega.csproj b/Tools/ArdupilotMegaPlanner/ArdupilotMega.csproj index 2be3e91e80..e781b8cbac 100644 --- a/Tools/ArdupilotMegaPlanner/ArdupilotMega.csproj +++ b/Tools/ArdupilotMegaPlanner/ArdupilotMega.csproj @@ -1039,6 +1039,9 @@ Always + + Always + Always diff --git a/Tools/ArdupilotMegaPlanner/Controls/CustomMessageBox.cs b/Tools/ArdupilotMegaPlanner/Controls/CustomMessageBox.cs index 47efdabef8..e26038bdcf 100644 --- a/Tools/ArdupilotMegaPlanner/Controls/CustomMessageBox.cs +++ b/Tools/ArdupilotMegaPlanner/Controls/CustomMessageBox.cs @@ -59,7 +59,7 @@ namespace System.Windows.Forms Width = textSize.Width + 50, Height = textSize.Height + 100, TopMost = true, - TopLevel = true + TopLevel = true, }; Rectangle screenRectangle = msgBoxFrm.RectangleToScreen(msgBoxFrm.ClientRectangle); diff --git a/Tools/ArdupilotMegaPlanner/Controls/MessageBox.cs b/Tools/ArdupilotMegaPlanner/Controls/MessageBox.cs deleted file mode 100644 index a399796751..0000000000 --- a/Tools/ArdupilotMegaPlanner/Controls/MessageBox.cs +++ /dev/null @@ -1,242 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using ArdupilotMega.Controls; -using System.Text; -using ArdupilotMega; - -namespace System.Windows.Forms -{ - public static class MessageBox - { - const int FORM_Y_MARGIN = 10; - const int FORM_X_MARGIN = 16; - - static DialogResult _state = DialogResult.None; - - public static DialogResult Show(string text) - { - return Show(text, string.Empty, MessageBoxButtons.OK, MessageBoxIcon.None); - } - - public static DialogResult Show(string text, string caption) - { - return Show(text, caption, MessageBoxButtons.OK, MessageBoxIcon.None); - } - - public static DialogResult Show(string text, string caption, MessageBoxButtons buttons) - { - return Show(text, caption, buttons, MessageBoxIcon.None); - } - - public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon) - { - if (text == null) - text = ""; - - if (caption == null) - caption = ""; - - // ensure we are always in a known state - _state = DialogResult.None; - - // convert to nice wrapped lines. - text = AddNewLinesToText(text); - // get pixel width and height - Size textSize = TextRenderer.MeasureText(text, SystemFonts.DefaultFont); - // allow for icon - if (icon != MessageBoxIcon.None) - textSize.Width += SystemIcons.Question.Width; - - var msgBoxFrm = new Form - { - FormBorderStyle = FormBorderStyle.FixedDialog, - ShowInTaskbar = false, - StartPosition = FormStartPosition.CenterScreen, - Text = caption, - MaximizeBox = false, - MinimizeBox = false, - Width = textSize.Width + 50, - Height = textSize.Height + 100, - TopMost = true, - }; - - Rectangle screenRectangle = msgBoxFrm.RectangleToScreen(msgBoxFrm.ClientRectangle); - int titleHeight = screenRectangle.Top - msgBoxFrm.Top; - - var lblMessage = new Label - { - Left = 58, - Top = 15, - Width = textSize.Width + 10, - Height = textSize.Height + 10, - Text = text - }; - - msgBoxFrm.Controls.Add(lblMessage); - - var actualIcon = getMessageBoxIcon(icon); - - if (actualIcon == null) - { - lblMessage.Location = new Point(FORM_X_MARGIN, FORM_Y_MARGIN); - } - else - { - var iconPbox = new PictureBox - { - Image = actualIcon.ToBitmap(), - Location = new Point(FORM_X_MARGIN, FORM_Y_MARGIN) - }; - msgBoxFrm.Controls.Add(iconPbox); - } - - - AddButtonsToForm(msgBoxFrm, buttons); - - // display even if theme fails - try - { - ThemeManager.ApplyThemeTo(msgBoxFrm); - } - catch { } - - if (System.Windows.Forms.Application.OpenForms.Count > 0) - { - msgBoxFrm.StartPosition = FormStartPosition.Manual; - Form parentForm = System.Windows.Forms.Application.OpenForms[0]; - // center of first form - msgBoxFrm.Location = new Point(parentForm.Location.X + parentForm.Width / 2 - msgBoxFrm.Width / 2, - parentForm.Location.Y + parentForm.Height / 2 - msgBoxFrm.Height / 2); - DialogResult test = msgBoxFrm.ShowDialog(); - } - else - { - DialogResult test = msgBoxFrm.ShowDialog(); - } - - DialogResult answer = _state; - - return answer; - } - - static void msgBoxFrm_FormClosing(object sender, FormClosingEventArgs e) - { - throw new NotImplementedException(); - } - - // from http://stackoverflow.com/questions/2512781/winforms-big-paragraph-tooltip/2512895#2512895 - private static int maximumSingleLineTooltipLength = 85; - - private static string AddNewLinesToText(string text) - { - if (text.Length < maximumSingleLineTooltipLength) - return text; - int lineLength = maximumSingleLineTooltipLength; - StringBuilder sb = new StringBuilder(); - int currentLinePosition = 0; - for (int textIndex = 0; textIndex < text.Length; textIndex++) - { - // If we have reached the target line length and the next - // character is whitespace then begin a new line. - if (currentLinePosition >= lineLength && - char.IsWhiteSpace(text[textIndex])) - { - sb.Append(Environment.NewLine); - currentLinePosition = 0; - } - // If we have just started a new line, skip all the whitespace. - if (currentLinePosition == 0) - while (textIndex < text.Length && char.IsWhiteSpace(text[textIndex])) - textIndex++; - // Append the next character. - if (textIndex < text.Length) sb.Append(text[textIndex]); - currentLinePosition++; - } - return sb.ToString(); - } - - private static void AddButtonsToForm(Form msgBoxFrm, MessageBoxButtons buttons) - { - Rectangle screenRectangle = msgBoxFrm.RectangleToScreen(msgBoxFrm.ClientRectangle); - int titleHeight = screenRectangle.Top - msgBoxFrm.Top; - - var t = Type.GetType("Mono.Runtime"); - if ((t != null)) - titleHeight = 25; - - switch (buttons) - { - case MessageBoxButtons.OK: - var but = new MyButton - { - Size = new Size(75, 23), - Text = "OK", - Left = msgBoxFrm.Width - 75 - FORM_X_MARGIN, - Top = msgBoxFrm.Height - 23 - FORM_Y_MARGIN - titleHeight - }; - - but.Click += delegate { _state = DialogResult.OK; msgBoxFrm.Close(); }; - msgBoxFrm.Controls.Add(but); - msgBoxFrm.AcceptButton = but; - break; - - case MessageBoxButtons.YesNo: - - if (msgBoxFrm.Width < (75 * 2 + FORM_X_MARGIN * 3)) - msgBoxFrm.Width = (75 * 2 + FORM_X_MARGIN * 3); - - var butyes = new MyButton - { - Size = new Size(75, 23), - Text = "Yes", - Left = msgBoxFrm.Width - 75 * 2 - FORM_X_MARGIN * 2, - Top = msgBoxFrm.Height - 23 - FORM_Y_MARGIN - titleHeight - }; - - butyes.Click += delegate { _state = DialogResult.Yes; msgBoxFrm.Close(); }; - msgBoxFrm.Controls.Add(butyes); - msgBoxFrm.AcceptButton = butyes; - - var butno = new MyButton - { - Size = new Size(75, 23), - Text = "No", - Left = msgBoxFrm.Width - 75 - FORM_X_MARGIN, - Top = msgBoxFrm.Height - 23 - FORM_Y_MARGIN - titleHeight - }; - - butno.Click += delegate { _state = DialogResult.No; msgBoxFrm.Close(); }; - msgBoxFrm.Controls.Add(butno); - msgBoxFrm.CancelButton = butno; - break; - - default: - throw new NotImplementedException("Only MessageBoxButtons.OK and YesNo supported at this time"); - } - } - - /// - /// Get system icon for MessageBoxIcon. - /// - /// The MessageBoxIcon value. - /// SystemIcon type Icon. - private static Icon getMessageBoxIcon(MessageBoxIcon icon) - { - switch (icon) - { - case MessageBoxIcon.Asterisk: - return SystemIcons.Asterisk; - case MessageBoxIcon.Error: - return SystemIcons.Error; - case MessageBoxIcon.Exclamation: - return SystemIcons.Exclamation; - case MessageBoxIcon.Question: - return SystemIcons.Question; - default: - return null; - } - } - - } -} \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/Setup.cs b/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/Setup.cs index 14d1887d77..0c9caa3b95 100644 --- a/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/Setup.cs +++ b/Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/Setup.cs @@ -28,6 +28,11 @@ namespace ArdupilotMega.GCSViews.ConfigurationView this.backstageView.AddPage(new BackstageView.BackstageViewPage(new ArdupilotMega.Antenna.Tracker(), "Antenna Tracker")); this.backstageView.ActivatePage(backstageView.Pages[0]); + + if (!MainV2.comPort.BaseStream.IsOpen) + { + CustomMessageBox.Show("Please connect (click Connect Button) before using setup!!"); + } } private void Setup_Load(object sender, EventArgs e) diff --git a/Tools/ArdupilotMegaPlanner/MainV2.cs b/Tools/ArdupilotMegaPlanner/MainV2.cs index 4a68586990..79e7d411e3 100644 --- a/Tools/ArdupilotMegaPlanner/MainV2.cs +++ b/Tools/ArdupilotMegaPlanner/MainV2.cs @@ -66,6 +66,8 @@ namespace ArdupilotMega public static MainV2 instance = null; + public string georefkml = ""; + public enum Firmwares { ArduPlane, @@ -1255,6 +1257,18 @@ namespace ArdupilotMega } } } + else if (url.Contains("georefnetwork.kml")) + { + string header = "HTTP/1.1 200 OK\r\nContent-Type: application/vnd.google-earth.kml+xml\n\n"; + byte[] temp = encoding.GetBytes(header); + stream.Write(temp, 0, temp.Length); + + byte[] buffer = Encoding.ASCII.GetBytes(georefkml); + + stream.Write(buffer, 0, buffer.Length); + + stream.Close(); + } else if (url.Contains("network.kml")) { string header = "HTTP/1.1 200 OK\r\nContent-Type: application/vnd.google-earth.kml+xml\n\n"; diff --git a/Tools/ArdupilotMegaPlanner/Msi/wix.pdb b/Tools/ArdupilotMegaPlanner/Msi/wix.pdb index 45802e56c4..fe0ea8f0ca 100644 Binary files a/Tools/ArdupilotMegaPlanner/Msi/wix.pdb and b/Tools/ArdupilotMegaPlanner/Msi/wix.pdb differ diff --git a/Tools/ArdupilotMegaPlanner/Properties/AssemblyInfo.cs b/Tools/ArdupilotMegaPlanner/Properties/AssemblyInfo.cs index 9ecdb5647d..72d948e968 100644 --- a/Tools/ArdupilotMegaPlanner/Properties/AssemblyInfo.cs +++ b/Tools/ArdupilotMegaPlanner/Properties/AssemblyInfo.cs @@ -34,5 +34,5 @@ using System.Resources; // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.1.*")] -[assembly: AssemblyFileVersion("1.1.66")] +[assembly: AssemblyFileVersion("1.1.67")] [assembly: NeutralResourcesLanguageAttribute("")] diff --git a/Tools/ArdupilotMegaPlanner/Setup/Setup.Designer.cs b/Tools/ArdupilotMegaPlanner/Setup/Setup.Designer.cs deleted file mode 100644 index 0adca95f80..0000000000 --- a/Tools/ArdupilotMegaPlanner/Setup/Setup.Designer.cs +++ /dev/null @@ -1,1829 +0,0 @@ -namespace ArdupilotMega.Setup -{ - partial class Setup - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Setup)); - this.Tabs = new System.Windows.Forms.TabControl(); - this.tabRadioIn = new System.Windows.Forms.TabPage(); - this.groupBoxElevons = new System.Windows.Forms.GroupBox(); - this.CHK_mixmode = new System.Windows.Forms.CheckBox(); - this.CHK_elevonch2rev = new System.Windows.Forms.CheckBox(); - this.CHK_elevonrev = new System.Windows.Forms.CheckBox(); - this.CHK_elevonch1rev = new System.Windows.Forms.CheckBox(); - this.CHK_revch3 = new System.Windows.Forms.CheckBox(); - this.CHK_revch4 = new System.Windows.Forms.CheckBox(); - this.CHK_revch2 = new System.Windows.Forms.CheckBox(); - this.CHK_revch1 = new System.Windows.Forms.CheckBox(); - this.BUT_Calibrateradio = new ArdupilotMega.MyButton(); - this.BAR8 = new ArdupilotMega.HorizontalProgressBar2(); - this.currentStateBindingSource = new System.Windows.Forms.BindingSource(this.components); - this.BAR7 = new ArdupilotMega.HorizontalProgressBar2(); - this.BAR6 = new ArdupilotMega.HorizontalProgressBar2(); - this.BAR5 = new ArdupilotMega.HorizontalProgressBar2(); - this.BARpitch = new ArdupilotMega.VerticalProgressBar2(); - this.BARthrottle = new ArdupilotMega.VerticalProgressBar2(); - this.BARyaw = new ArdupilotMega.HorizontalProgressBar2(); - this.BARroll = new ArdupilotMega.HorizontalProgressBar2(); - this.tabModes = new System.Windows.Forms.TabPage(); - this.CB_simple6 = new System.Windows.Forms.CheckBox(); - this.CB_simple5 = new System.Windows.Forms.CheckBox(); - this.CB_simple4 = new System.Windows.Forms.CheckBox(); - this.CB_simple3 = new System.Windows.Forms.CheckBox(); - this.CB_simple2 = new System.Windows.Forms.CheckBox(); - this.CB_simple1 = new System.Windows.Forms.CheckBox(); - this.label14 = new System.Windows.Forms.Label(); - this.LBL_flightmodepwm = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); - this.lbl_currentmode = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.label10 = new System.Windows.Forms.Label(); - this.label9 = new System.Windows.Forms.Label(); - this.label8 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.CMB_fmode6 = new System.Windows.Forms.ComboBox(); - this.label5 = new System.Windows.Forms.Label(); - this.CMB_fmode5 = new System.Windows.Forms.ComboBox(); - this.label4 = new System.Windows.Forms.Label(); - this.CMB_fmode4 = new System.Windows.Forms.ComboBox(); - this.label3 = new System.Windows.Forms.Label(); - this.CMB_fmode3 = new System.Windows.Forms.ComboBox(); - this.label2 = new System.Windows.Forms.Label(); - this.CMB_fmode2 = new System.Windows.Forms.ComboBox(); - this.label1 = new System.Windows.Forms.Label(); - this.CMB_fmode1 = new System.Windows.Forms.ComboBox(); - this.BUT_SaveModes = new ArdupilotMega.MyButton(); - this.tabHardware = new System.Windows.Forms.TabPage(); - this.BUT_MagCalibration = new ArdupilotMega.MyButton(); - this.label27 = new System.Windows.Forms.Label(); - this.CMB_sonartype = new System.Windows.Forms.ComboBox(); - this.CHK_enableoptflow = new System.Windows.Forms.CheckBox(); - this.pictureBox2 = new System.Windows.Forms.PictureBox(); - this.linkLabelmagdec = new System.Windows.Forms.LinkLabel(); - this.label100 = new System.Windows.Forms.Label(); - this.TXT_declination = new System.Windows.Forms.TextBox(); - this.CHK_enableairspeed = new System.Windows.Forms.CheckBox(); - this.CHK_enablesonar = new System.Windows.Forms.CheckBox(); - this.CHK_enablecompass = new System.Windows.Forms.CheckBox(); - this.pictureBox4 = new System.Windows.Forms.PictureBox(); - this.pictureBox3 = new System.Windows.Forms.PictureBox(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.tabBattery = new System.Windows.Forms.TabPage(); - this.groupBox4 = new System.Windows.Forms.GroupBox(); - this.label31 = new System.Windows.Forms.Label(); - this.label32 = new System.Windows.Forms.Label(); - this.label33 = new System.Windows.Forms.Label(); - this.TXT_ampspervolt = new System.Windows.Forms.TextBox(); - this.label34 = new System.Windows.Forms.Label(); - this.TXT_divider = new System.Windows.Forms.TextBox(); - this.label35 = new System.Windows.Forms.Label(); - this.TXT_voltage = new System.Windows.Forms.TextBox(); - this.TXT_inputvoltage = new System.Windows.Forms.TextBox(); - this.TXT_measuredvoltage = new System.Windows.Forms.TextBox(); - this.label47 = new System.Windows.Forms.Label(); - this.CMB_batmonsensortype = new System.Windows.Forms.ComboBox(); - this.textBox3 = new System.Windows.Forms.TextBox(); - this.label29 = new System.Windows.Forms.Label(); - this.label30 = new System.Windows.Forms.Label(); - this.TXT_battcapacity = new System.Windows.Forms.TextBox(); - this.CMB_batmontype = new System.Windows.Forms.ComboBox(); - this.pictureBox5 = new System.Windows.Forms.PictureBox(); - this.tabArduplane = new System.Windows.Forms.TabPage(); - this.label48 = new System.Windows.Forms.Label(); - this.BUT_levelplane = new ArdupilotMega.MyButton(); - this.tabArducopter = new System.Windows.Forms.TabPage(); - this.label28 = new System.Windows.Forms.Label(); - this.label16 = new System.Windows.Forms.Label(); - this.label15 = new System.Windows.Forms.Label(); - this.pictureBoxQuadX = new System.Windows.Forms.PictureBox(); - this.pictureBoxQuad = new System.Windows.Forms.PictureBox(); - this.BUT_levelac2 = new ArdupilotMega.MyButton(); - this.tabHeli = new System.Windows.Forms.TabPage(); - this.groupBox5 = new System.Windows.Forms.GroupBox(); - this.H1_ENABLE = new System.Windows.Forms.RadioButton(); - this.CCPM = new System.Windows.Forms.RadioButton(); - this.BUT_HS4save = new ArdupilotMega.MyButton(); - this.BUT_swash_manual = new ArdupilotMega.MyButton(); - this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.label46 = new System.Windows.Forms.Label(); - this.label45 = new System.Windows.Forms.Label(); - this.GYR_ENABLE = new System.Windows.Forms.CheckBox(); - this.GYR_GAIN = new System.Windows.Forms.TextBox(); - this.label44 = new System.Windows.Forms.Label(); - this.label43 = new System.Windows.Forms.Label(); - this.label42 = new System.Windows.Forms.Label(); - 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.groupBox1 = new System.Windows.Forms.GroupBox(); - this.label41 = new System.Windows.Forms.Label(); - this.label21 = new System.Windows.Forms.Label(); - this.COL_MIN = new System.Windows.Forms.TextBox(); - this.COL_MID = new System.Windows.Forms.TextBox(); - this.COL_MAX = new System.Windows.Forms.TextBox(); - this.BUT_0collective = new ArdupilotMega.MyButton(); - this.HS4_TRIM = new System.Windows.Forms.NumericUpDown(); - this.HS3_TRIM = new System.Windows.Forms.NumericUpDown(); - this.HS2_TRIM = new System.Windows.Forms.NumericUpDown(); - this.HS1_TRIM = new System.Windows.Forms.NumericUpDown(); - this.label39 = new System.Windows.Forms.Label(); - this.label38 = new System.Windows.Forms.Label(); - this.label37 = new System.Windows.Forms.Label(); - this.label36 = new System.Windows.Forms.Label(); - this.label26 = new System.Windows.Forms.Label(); - this.PIT_MAX = new System.Windows.Forms.TextBox(); - this.label25 = new System.Windows.Forms.Label(); - this.ROL_MAX = new System.Windows.Forms.TextBox(); - this.label23 = new System.Windows.Forms.Label(); - this.label22 = new System.Windows.Forms.Label(); - this.HS4_REV = new System.Windows.Forms.CheckBox(); - this.label20 = new System.Windows.Forms.Label(); - this.label19 = new System.Windows.Forms.Label(); - this.label18 = new System.Windows.Forms.Label(); - this.SV3_POS = new System.Windows.Forms.TextBox(); - this.SV2_POS = new System.Windows.Forms.TextBox(); - this.SV1_POS = new System.Windows.Forms.TextBox(); - this.HS3_REV = new System.Windows.Forms.CheckBox(); - this.HS2_REV = new System.Windows.Forms.CheckBox(); - this.HS1_REV = new System.Windows.Forms.CheckBox(); - this.label17 = new System.Windows.Forms.Label(); - this.HS4 = new ArdupilotMega.HorizontalProgressBar2(); - this.HS3 = new ArdupilotMega.VerticalProgressBar2(); - this.Gservoloc = new AGaugeApp.AGauge(); - this.tabReset = new System.Windows.Forms.TabPage(); - this.BUT_reset = new ArdupilotMega.MyButton(); - this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); - this.Tabs.SuspendLayout(); - this.tabRadioIn.SuspendLayout(); - this.groupBoxElevons.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.currentStateBindingSource)).BeginInit(); - this.tabModes.SuspendLayout(); - this.tabHardware.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - this.tabBattery.SuspendLayout(); - this.groupBox4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit(); - this.tabArduplane.SuspendLayout(); - this.tabArducopter.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuadX)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuad)).BeginInit(); - this.tabHeli.SuspendLayout(); - this.groupBox5.SuspendLayout(); - this.groupBox3.SuspendLayout(); - this.groupBox2.SuspendLayout(); - this.groupBox1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.HS4_TRIM)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.HS3_TRIM)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.HS2_TRIM)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.HS1_TRIM)).BeginInit(); - this.tabReset.SuspendLayout(); - this.SuspendLayout(); - // - // Tabs - // - this.Tabs.Controls.Add(this.tabRadioIn); - this.Tabs.Controls.Add(this.tabModes); - this.Tabs.Controls.Add(this.tabHardware); - this.Tabs.Controls.Add(this.tabBattery); - this.Tabs.Controls.Add(this.tabArduplane); - this.Tabs.Controls.Add(this.tabArducopter); - this.Tabs.Controls.Add(this.tabHeli); - resources.ApplyResources(this.Tabs, "Tabs"); - this.Tabs.Name = "Tabs"; - this.Tabs.SelectedIndex = 0; - this.Tabs.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged); - // - // tabRadioIn - // - this.tabRadioIn.Controls.Add(this.groupBoxElevons); - this.tabRadioIn.Controls.Add(this.CHK_revch3); - this.tabRadioIn.Controls.Add(this.CHK_revch4); - this.tabRadioIn.Controls.Add(this.CHK_revch2); - this.tabRadioIn.Controls.Add(this.CHK_revch1); - this.tabRadioIn.Controls.Add(this.BUT_Calibrateradio); - this.tabRadioIn.Controls.Add(this.BAR8); - this.tabRadioIn.Controls.Add(this.BAR7); - this.tabRadioIn.Controls.Add(this.BAR6); - this.tabRadioIn.Controls.Add(this.BAR5); - this.tabRadioIn.Controls.Add(this.BARpitch); - this.tabRadioIn.Controls.Add(this.BARthrottle); - this.tabRadioIn.Controls.Add(this.BARyaw); - this.tabRadioIn.Controls.Add(this.BARroll); - resources.ApplyResources(this.tabRadioIn, "tabRadioIn"); - this.tabRadioIn.Name = "tabRadioIn"; - this.tabRadioIn.UseVisualStyleBackColor = true; - // - // groupBoxElevons - // - this.groupBoxElevons.Controls.Add(this.CHK_mixmode); - this.groupBoxElevons.Controls.Add(this.CHK_elevonch2rev); - this.groupBoxElevons.Controls.Add(this.CHK_elevonrev); - this.groupBoxElevons.Controls.Add(this.CHK_elevonch1rev); - resources.ApplyResources(this.groupBoxElevons, "groupBoxElevons"); - this.groupBoxElevons.Name = "groupBoxElevons"; - this.groupBoxElevons.TabStop = false; - // - // CHK_mixmode - // - resources.ApplyResources(this.CHK_mixmode, "CHK_mixmode"); - this.CHK_mixmode.Name = "CHK_mixmode"; - this.toolTip1.SetToolTip(this.CHK_mixmode, resources.GetString("CHK_mixmode.ToolTip")); - this.CHK_mixmode.UseVisualStyleBackColor = true; - this.CHK_mixmode.CheckedChanged += new System.EventHandler(this.CHK_mixmode_CheckedChanged); - // - // CHK_elevonch2rev - // - resources.ApplyResources(this.CHK_elevonch2rev, "CHK_elevonch2rev"); - this.CHK_elevonch2rev.Name = "CHK_elevonch2rev"; - this.toolTip1.SetToolTip(this.CHK_elevonch2rev, resources.GetString("CHK_elevonch2rev.ToolTip")); - this.CHK_elevonch2rev.UseVisualStyleBackColor = true; - this.CHK_elevonch2rev.CheckedChanged += new System.EventHandler(this.CHK_elevonch2rev_CheckedChanged); - // - // CHK_elevonrev - // - resources.ApplyResources(this.CHK_elevonrev, "CHK_elevonrev"); - this.CHK_elevonrev.Name = "CHK_elevonrev"; - this.toolTip1.SetToolTip(this.CHK_elevonrev, resources.GetString("CHK_elevonrev.ToolTip")); - this.CHK_elevonrev.UseVisualStyleBackColor = true; - this.CHK_elevonrev.CheckedChanged += new System.EventHandler(this.CHK_elevonrev_CheckedChanged); - // - // CHK_elevonch1rev - // - resources.ApplyResources(this.CHK_elevonch1rev, "CHK_elevonch1rev"); - this.CHK_elevonch1rev.Name = "CHK_elevonch1rev"; - this.toolTip1.SetToolTip(this.CHK_elevonch1rev, resources.GetString("CHK_elevonch1rev.ToolTip")); - this.CHK_elevonch1rev.UseVisualStyleBackColor = true; - this.CHK_elevonch1rev.CheckedChanged += new System.EventHandler(this.CHK_elevonch1rev_CheckedChanged); - // - // CHK_revch3 - // - resources.ApplyResources(this.CHK_revch3, "CHK_revch3"); - this.CHK_revch3.Name = "CHK_revch3"; - this.CHK_revch3.UseVisualStyleBackColor = true; - this.CHK_revch3.CheckedChanged += new System.EventHandler(this.CHK_revch3_CheckedChanged); - // - // CHK_revch4 - // - resources.ApplyResources(this.CHK_revch4, "CHK_revch4"); - this.CHK_revch4.Name = "CHK_revch4"; - this.CHK_revch4.UseVisualStyleBackColor = true; - this.CHK_revch4.CheckedChanged += new System.EventHandler(this.CHK_revch4_CheckedChanged); - // - // CHK_revch2 - // - resources.ApplyResources(this.CHK_revch2, "CHK_revch2"); - this.CHK_revch2.Name = "CHK_revch2"; - this.CHK_revch2.UseVisualStyleBackColor = true; - this.CHK_revch2.CheckedChanged += new System.EventHandler(this.CHK_revch2_CheckedChanged); - // - // CHK_revch1 - // - resources.ApplyResources(this.CHK_revch1, "CHK_revch1"); - this.CHK_revch1.Name = "CHK_revch1"; - this.CHK_revch1.UseVisualStyleBackColor = true; - this.CHK_revch1.CheckedChanged += new System.EventHandler(this.CHK_revch1_CheckedChanged); - // - // BUT_Calibrateradio - // - resources.ApplyResources(this.BUT_Calibrateradio, "BUT_Calibrateradio"); - this.BUT_Calibrateradio.Name = "BUT_Calibrateradio"; - this.BUT_Calibrateradio.UseVisualStyleBackColor = true; - this.BUT_Calibrateradio.Click += new System.EventHandler(this.BUT_Calibrateradio_Click); - // - // BAR8 - // - this.BAR8.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(255))))); - this.BAR8.BorderColor = System.Drawing.SystemColors.ActiveBorder; - this.BAR8.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.currentStateBindingSource, "ch8in", true)); - this.BAR8.Label = "Radio 8"; - resources.ApplyResources(this.BAR8, "BAR8"); - this.BAR8.Maximum = 2200; - this.BAR8.maxline = 0; - this.BAR8.Minimum = 800; - this.BAR8.minline = 0; - this.BAR8.Name = "BAR8"; - this.BAR8.Value = 1500; - this.BAR8.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); - // - // currentStateBindingSource - // - this.currentStateBindingSource.DataSource = typeof(ArdupilotMega.CurrentState); - // - // BAR7 - // - this.BAR7.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(255))))); - this.BAR7.BorderColor = System.Drawing.SystemColors.ActiveBorder; - this.BAR7.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.currentStateBindingSource, "ch7in", true)); - this.BAR7.Label = "Radio 7"; - resources.ApplyResources(this.BAR7, "BAR7"); - this.BAR7.Maximum = 2200; - this.BAR7.maxline = 0; - this.BAR7.Minimum = 800; - this.BAR7.minline = 0; - this.BAR7.Name = "BAR7"; - this.BAR7.Value = 1500; - this.BAR7.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); - // - // BAR6 - // - this.BAR6.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(255))))); - this.BAR6.BorderColor = System.Drawing.SystemColors.ActiveBorder; - this.BAR6.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.currentStateBindingSource, "ch6in", true)); - this.BAR6.Label = "Radio 6"; - resources.ApplyResources(this.BAR6, "BAR6"); - this.BAR6.Maximum = 2200; - this.BAR6.maxline = 0; - this.BAR6.Minimum = 800; - this.BAR6.minline = 0; - this.BAR6.Name = "BAR6"; - this.BAR6.Value = 1500; - this.BAR6.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); - // - // BAR5 - // - this.BAR5.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(255))))); - this.BAR5.BorderColor = System.Drawing.SystemColors.ActiveBorder; - this.BAR5.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.currentStateBindingSource, "ch5in", true)); - this.BAR5.Label = "Radio 5"; - resources.ApplyResources(this.BAR5, "BAR5"); - this.BAR5.Maximum = 2200; - this.BAR5.maxline = 0; - this.BAR5.Minimum = 800; - this.BAR5.minline = 0; - this.BAR5.Name = "BAR5"; - this.BAR5.Value = 1500; - this.BAR5.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); - // - // BARpitch - // - this.BARpitch.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(255))))); - this.BARpitch.BorderColor = System.Drawing.SystemColors.ActiveBorder; - this.BARpitch.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.currentStateBindingSource, "ch2in", true)); - this.BARpitch.Label = "Pitch"; - resources.ApplyResources(this.BARpitch, "BARpitch"); - this.BARpitch.Maximum = 2200; - this.BARpitch.maxline = 0; - this.BARpitch.Minimum = 800; - this.BARpitch.minline = 0; - this.BARpitch.Name = "BARpitch"; - this.BARpitch.Value = 1500; - this.BARpitch.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); - // - // BARthrottle - // - this.BARthrottle.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(67)))), ((int)(((byte)(68)))), ((int)(((byte)(69))))); - this.BARthrottle.BorderColor = System.Drawing.SystemColors.ActiveBorder; - this.BARthrottle.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.currentStateBindingSource, "ch3in", true)); - this.BARthrottle.Label = "Throttle"; - resources.ApplyResources(this.BARthrottle, "BARthrottle"); - this.BARthrottle.Maximum = 2200; - this.BARthrottle.maxline = 0; - this.BARthrottle.Minimum = 800; - this.BARthrottle.minline = 0; - this.BARthrottle.Name = "BARthrottle"; - this.BARthrottle.Value = 1000; - this.BARthrottle.ValueColor = System.Drawing.Color.Magenta; - // - // BARyaw - // - this.BARyaw.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(255))))); - this.BARyaw.BorderColor = System.Drawing.SystemColors.ActiveBorder; - this.BARyaw.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.currentStateBindingSource, "ch4in", true)); - this.BARyaw.Label = "Yaw"; - resources.ApplyResources(this.BARyaw, "BARyaw"); - this.BARyaw.Maximum = 2200; - this.BARyaw.maxline = 0; - this.BARyaw.Minimum = 800; - this.BARyaw.minline = 0; - this.BARyaw.Name = "BARyaw"; - this.BARyaw.Value = 1500; - this.BARyaw.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); - // - // BARroll - // - this.BARroll.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(255))))); - this.BARroll.BorderColor = System.Drawing.SystemColors.ActiveBorder; - this.BARroll.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.currentStateBindingSource, "ch1in", true)); - this.BARroll.Label = "Roll"; - resources.ApplyResources(this.BARroll, "BARroll"); - this.BARroll.Maximum = 2200; - this.BARroll.maxline = 0; - this.BARroll.Minimum = 800; - this.BARroll.minline = 0; - this.BARroll.Name = "BARroll"; - this.BARroll.Value = 1500; - this.BARroll.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); - // - // tabModes - // - this.tabModes.Controls.Add(this.CB_simple6); - this.tabModes.Controls.Add(this.CB_simple5); - this.tabModes.Controls.Add(this.CB_simple4); - this.tabModes.Controls.Add(this.CB_simple3); - this.tabModes.Controls.Add(this.CB_simple2); - this.tabModes.Controls.Add(this.CB_simple1); - this.tabModes.Controls.Add(this.label14); - this.tabModes.Controls.Add(this.LBL_flightmodepwm); - this.tabModes.Controls.Add(this.label13); - this.tabModes.Controls.Add(this.lbl_currentmode); - this.tabModes.Controls.Add(this.label12); - this.tabModes.Controls.Add(this.label11); - this.tabModes.Controls.Add(this.label10); - this.tabModes.Controls.Add(this.label9); - this.tabModes.Controls.Add(this.label8); - this.tabModes.Controls.Add(this.label7); - this.tabModes.Controls.Add(this.label6); - this.tabModes.Controls.Add(this.CMB_fmode6); - this.tabModes.Controls.Add(this.label5); - this.tabModes.Controls.Add(this.CMB_fmode5); - this.tabModes.Controls.Add(this.label4); - this.tabModes.Controls.Add(this.CMB_fmode4); - this.tabModes.Controls.Add(this.label3); - this.tabModes.Controls.Add(this.CMB_fmode3); - this.tabModes.Controls.Add(this.label2); - this.tabModes.Controls.Add(this.CMB_fmode2); - this.tabModes.Controls.Add(this.label1); - this.tabModes.Controls.Add(this.CMB_fmode1); - this.tabModes.Controls.Add(this.BUT_SaveModes); - resources.ApplyResources(this.tabModes, "tabModes"); - this.tabModes.Name = "tabModes"; - this.tabModes.UseVisualStyleBackColor = true; - // - // CB_simple6 - // - resources.ApplyResources(this.CB_simple6, "CB_simple6"); - this.CB_simple6.Name = "CB_simple6"; - this.CB_simple6.UseVisualStyleBackColor = true; - // - // CB_simple5 - // - resources.ApplyResources(this.CB_simple5, "CB_simple5"); - this.CB_simple5.Name = "CB_simple5"; - this.CB_simple5.UseVisualStyleBackColor = true; - // - // CB_simple4 - // - resources.ApplyResources(this.CB_simple4, "CB_simple4"); - this.CB_simple4.Name = "CB_simple4"; - this.CB_simple4.UseVisualStyleBackColor = true; - // - // CB_simple3 - // - resources.ApplyResources(this.CB_simple3, "CB_simple3"); - this.CB_simple3.Name = "CB_simple3"; - this.CB_simple3.UseVisualStyleBackColor = true; - // - // CB_simple2 - // - resources.ApplyResources(this.CB_simple2, "CB_simple2"); - this.CB_simple2.Name = "CB_simple2"; - this.CB_simple2.UseVisualStyleBackColor = true; - // - // CB_simple1 - // - resources.ApplyResources(this.CB_simple1, "CB_simple1"); - this.CB_simple1.Name = "CB_simple1"; - this.CB_simple1.UseVisualStyleBackColor = true; - // - // label14 - // - resources.ApplyResources(this.label14, "label14"); - this.label14.Name = "label14"; - // - // LBL_flightmodepwm - // - resources.ApplyResources(this.LBL_flightmodepwm, "LBL_flightmodepwm"); - this.LBL_flightmodepwm.Name = "LBL_flightmodepwm"; - // - // label13 - // - resources.ApplyResources(this.label13, "label13"); - this.label13.Name = "label13"; - // - // lbl_currentmode - // - resources.ApplyResources(this.lbl_currentmode, "lbl_currentmode"); - this.lbl_currentmode.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.currentStateBindingSource, "mode", true)); - this.lbl_currentmode.Name = "lbl_currentmode"; - // - // label12 - // - resources.ApplyResources(this.label12, "label12"); - this.label12.Name = "label12"; - // - // label11 - // - resources.ApplyResources(this.label11, "label11"); - this.label11.Name = "label11"; - // - // label10 - // - resources.ApplyResources(this.label10, "label10"); - this.label10.Name = "label10"; - // - // label9 - // - resources.ApplyResources(this.label9, "label9"); - this.label9.Name = "label9"; - // - // label8 - // - resources.ApplyResources(this.label8, "label8"); - this.label8.Name = "label8"; - // - // label7 - // - resources.ApplyResources(this.label7, "label7"); - this.label7.Name = "label7"; - // - // label6 - // - resources.ApplyResources(this.label6, "label6"); - this.label6.Name = "label6"; - // - // CMB_fmode6 - // - this.CMB_fmode6.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.CMB_fmode6.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.CMB_fmode6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.CMB_fmode6.FormattingEnabled = true; - resources.ApplyResources(this.CMB_fmode6, "CMB_fmode6"); - this.CMB_fmode6.Name = "CMB_fmode6"; - // - // label5 - // - resources.ApplyResources(this.label5, "label5"); - this.label5.Name = "label5"; - // - // CMB_fmode5 - // - this.CMB_fmode5.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.CMB_fmode5.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.CMB_fmode5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.CMB_fmode5.FormattingEnabled = true; - resources.ApplyResources(this.CMB_fmode5, "CMB_fmode5"); - this.CMB_fmode5.Name = "CMB_fmode5"; - // - // label4 - // - resources.ApplyResources(this.label4, "label4"); - this.label4.Name = "label4"; - // - // CMB_fmode4 - // - this.CMB_fmode4.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.CMB_fmode4.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.CMB_fmode4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.CMB_fmode4.FormattingEnabled = true; - resources.ApplyResources(this.CMB_fmode4, "CMB_fmode4"); - this.CMB_fmode4.Name = "CMB_fmode4"; - // - // label3 - // - resources.ApplyResources(this.label3, "label3"); - this.label3.Name = "label3"; - // - // CMB_fmode3 - // - this.CMB_fmode3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.CMB_fmode3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.CMB_fmode3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.CMB_fmode3.FormattingEnabled = true; - resources.ApplyResources(this.CMB_fmode3, "CMB_fmode3"); - this.CMB_fmode3.Name = "CMB_fmode3"; - // - // label2 - // - resources.ApplyResources(this.label2, "label2"); - this.label2.Name = "label2"; - // - // CMB_fmode2 - // - this.CMB_fmode2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.CMB_fmode2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.CMB_fmode2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.CMB_fmode2.FormattingEnabled = true; - resources.ApplyResources(this.CMB_fmode2, "CMB_fmode2"); - this.CMB_fmode2.Name = "CMB_fmode2"; - // - // label1 - // - resources.ApplyResources(this.label1, "label1"); - this.label1.Name = "label1"; - // - // CMB_fmode1 - // - this.CMB_fmode1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.CMB_fmode1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; - this.CMB_fmode1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.CMB_fmode1.FormattingEnabled = true; - resources.ApplyResources(this.CMB_fmode1, "CMB_fmode1"); - this.CMB_fmode1.Name = "CMB_fmode1"; - // - // BUT_SaveModes - // - resources.ApplyResources(this.BUT_SaveModes, "BUT_SaveModes"); - this.BUT_SaveModes.Name = "BUT_SaveModes"; - this.BUT_SaveModes.UseVisualStyleBackColor = true; - this.BUT_SaveModes.Click += new System.EventHandler(this.BUT_SaveModes_Click); - // - // tabHardware - // - this.tabHardware.BackColor = System.Drawing.Color.Transparent; - this.tabHardware.Controls.Add(this.BUT_MagCalibration); - this.tabHardware.Controls.Add(this.label27); - this.tabHardware.Controls.Add(this.CMB_sonartype); - this.tabHardware.Controls.Add(this.CHK_enableoptflow); - this.tabHardware.Controls.Add(this.pictureBox2); - this.tabHardware.Controls.Add(this.linkLabelmagdec); - this.tabHardware.Controls.Add(this.label100); - this.tabHardware.Controls.Add(this.TXT_declination); - this.tabHardware.Controls.Add(this.CHK_enableairspeed); - this.tabHardware.Controls.Add(this.CHK_enablesonar); - this.tabHardware.Controls.Add(this.CHK_enablecompass); - this.tabHardware.Controls.Add(this.pictureBox4); - this.tabHardware.Controls.Add(this.pictureBox3); - this.tabHardware.Controls.Add(this.pictureBox1); - resources.ApplyResources(this.tabHardware, "tabHardware"); - this.tabHardware.Name = "tabHardware"; - // - // BUT_MagCalibration - // - resources.ApplyResources(this.BUT_MagCalibration, "BUT_MagCalibration"); - this.BUT_MagCalibration.Name = "BUT_MagCalibration"; - this.BUT_MagCalibration.UseVisualStyleBackColor = true; - this.BUT_MagCalibration.Click += new System.EventHandler(this.BUT_MagCalibration_Click); - // - // label27 - // - resources.ApplyResources(this.label27, "label27"); - this.label27.Name = "label27"; - // - // CMB_sonartype - // - this.CMB_sonartype.FormattingEnabled = true; - this.CMB_sonartype.Items.AddRange(new object[] { - resources.GetString("CMB_sonartype.Items"), - resources.GetString("CMB_sonartype.Items1"), - resources.GetString("CMB_sonartype.Items2")}); - resources.ApplyResources(this.CMB_sonartype, "CMB_sonartype"); - this.CMB_sonartype.Name = "CMB_sonartype"; - this.CMB_sonartype.SelectedIndexChanged += new System.EventHandler(this.CMB_sonartype_SelectedIndexChanged); - // - // CHK_enableoptflow - // - resources.ApplyResources(this.CHK_enableoptflow, "CHK_enableoptflow"); - this.CHK_enableoptflow.Name = "CHK_enableoptflow"; - this.CHK_enableoptflow.UseVisualStyleBackColor = true; - this.CHK_enableoptflow.CheckedChanged += new System.EventHandler(this.CHK_enableoptflow_CheckedChanged); - // - // pictureBox2 - // - this.pictureBox2.BackColor = System.Drawing.Color.White; - this.pictureBox2.BackgroundImage = global::ArdupilotMega.Properties.Resources.opticalflow; - resources.ApplyResources(this.pictureBox2, "pictureBox2"); - this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBox2.Name = "pictureBox2"; - this.pictureBox2.TabStop = false; - // - // linkLabelmagdec - // - resources.ApplyResources(this.linkLabelmagdec, "linkLabelmagdec"); - this.linkLabelmagdec.Name = "linkLabelmagdec"; - this.linkLabelmagdec.TabStop = true; - this.linkLabelmagdec.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); - // - // label100 - // - resources.ApplyResources(this.label100, "label100"); - this.label100.Name = "label100"; - // - // TXT_declination - // - resources.ApplyResources(this.TXT_declination, "TXT_declination"); - this.TXT_declination.Name = "TXT_declination"; - this.toolTip1.SetToolTip(this.TXT_declination, resources.GetString("TXT_declination.ToolTip")); - this.TXT_declination.Validated += new System.EventHandler(this.TXT_declination_Validated); - // - // CHK_enableairspeed - // - resources.ApplyResources(this.CHK_enableairspeed, "CHK_enableairspeed"); - this.CHK_enableairspeed.Name = "CHK_enableairspeed"; - this.CHK_enableairspeed.UseVisualStyleBackColor = true; - this.CHK_enableairspeed.CheckedChanged += new System.EventHandler(this.CHK_enableairspeed_CheckedChanged); - // - // CHK_enablesonar - // - resources.ApplyResources(this.CHK_enablesonar, "CHK_enablesonar"); - this.CHK_enablesonar.Name = "CHK_enablesonar"; - this.CHK_enablesonar.UseVisualStyleBackColor = true; - this.CHK_enablesonar.CheckedChanged += new System.EventHandler(this.CHK_enablesonar_CheckedChanged); - // - // CHK_enablecompass - // - resources.ApplyResources(this.CHK_enablecompass, "CHK_enablecompass"); - this.CHK_enablecompass.Name = "CHK_enablecompass"; - this.CHK_enablecompass.UseVisualStyleBackColor = true; - this.CHK_enablecompass.CheckedChanged += new System.EventHandler(this.CHK_enablecompass_CheckedChanged); - // - // pictureBox4 - // - this.pictureBox4.BackColor = System.Drawing.Color.White; - this.pictureBox4.BackgroundImage = global::ArdupilotMega.Properties.Resources.airspeed; - resources.ApplyResources(this.pictureBox4, "pictureBox4"); - this.pictureBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBox4.Name = "pictureBox4"; - this.pictureBox4.TabStop = false; - // - // pictureBox3 - // - this.pictureBox3.BackColor = System.Drawing.Color.White; - this.pictureBox3.BackgroundImage = global::ArdupilotMega.Properties.Resources.sonar; - resources.ApplyResources(this.pictureBox3, "pictureBox3"); - this.pictureBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBox3.Name = "pictureBox3"; - this.pictureBox3.TabStop = false; - // - // pictureBox1 - // - this.pictureBox1.BackgroundImage = global::ArdupilotMega.Properties.Resources.compass; - resources.ApplyResources(this.pictureBox1, "pictureBox1"); - this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.TabStop = false; - // - // tabBattery - // - this.tabBattery.Controls.Add(this.groupBox4); - this.tabBattery.Controls.Add(this.label47); - this.tabBattery.Controls.Add(this.CMB_batmonsensortype); - this.tabBattery.Controls.Add(this.textBox3); - this.tabBattery.Controls.Add(this.label29); - this.tabBattery.Controls.Add(this.label30); - this.tabBattery.Controls.Add(this.TXT_battcapacity); - this.tabBattery.Controls.Add(this.CMB_batmontype); - this.tabBattery.Controls.Add(this.pictureBox5); - resources.ApplyResources(this.tabBattery, "tabBattery"); - this.tabBattery.Name = "tabBattery"; - this.tabBattery.UseVisualStyleBackColor = true; - // - // groupBox4 - // - this.groupBox4.Controls.Add(this.label31); - this.groupBox4.Controls.Add(this.label32); - this.groupBox4.Controls.Add(this.label33); - this.groupBox4.Controls.Add(this.TXT_ampspervolt); - this.groupBox4.Controls.Add(this.label34); - this.groupBox4.Controls.Add(this.TXT_divider); - this.groupBox4.Controls.Add(this.label35); - this.groupBox4.Controls.Add(this.TXT_voltage); - this.groupBox4.Controls.Add(this.TXT_inputvoltage); - this.groupBox4.Controls.Add(this.TXT_measuredvoltage); - resources.ApplyResources(this.groupBox4, "groupBox4"); - this.groupBox4.Name = "groupBox4"; - this.groupBox4.TabStop = false; - // - // label31 - // - resources.ApplyResources(this.label31, "label31"); - this.label31.Name = "label31"; - // - // label32 - // - resources.ApplyResources(this.label32, "label32"); - this.label32.Name = "label32"; - // - // label33 - // - resources.ApplyResources(this.label33, "label33"); - this.label33.Name = "label33"; - // - // TXT_ampspervolt - // - resources.ApplyResources(this.TXT_ampspervolt, "TXT_ampspervolt"); - this.TXT_ampspervolt.Name = "TXT_ampspervolt"; - this.TXT_ampspervolt.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_ampspervolt_Validating); - this.TXT_ampspervolt.Validated += new System.EventHandler(this.TXT_ampspervolt_Validated); - // - // label34 - // - resources.ApplyResources(this.label34, "label34"); - this.label34.Name = "label34"; - // - // TXT_divider - // - resources.ApplyResources(this.TXT_divider, "TXT_divider"); - this.TXT_divider.Name = "TXT_divider"; - this.TXT_divider.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_divider_Validating); - this.TXT_divider.Validated += new System.EventHandler(this.TXT_divider_Validated); - // - // label35 - // - resources.ApplyResources(this.label35, "label35"); - this.label35.Name = "label35"; - // - // TXT_voltage - // - this.TXT_voltage.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.currentStateBindingSource, "battery_voltage", true)); - resources.ApplyResources(this.TXT_voltage, "TXT_voltage"); - this.TXT_voltage.Name = "TXT_voltage"; - this.TXT_voltage.ReadOnly = true; - // - // TXT_inputvoltage - // - resources.ApplyResources(this.TXT_inputvoltage, "TXT_inputvoltage"); - this.TXT_inputvoltage.Name = "TXT_inputvoltage"; - this.TXT_inputvoltage.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_inputvoltage_Validating); - this.TXT_inputvoltage.Validated += new System.EventHandler(this.TXT_inputvoltage_Validated); - // - // TXT_measuredvoltage - // - resources.ApplyResources(this.TXT_measuredvoltage, "TXT_measuredvoltage"); - this.TXT_measuredvoltage.Name = "TXT_measuredvoltage"; - this.TXT_measuredvoltage.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_measuredvoltage_Validating); - this.TXT_measuredvoltage.Validated += new System.EventHandler(this.TXT_measuredvoltage_Validated); - // - // label47 - // - resources.ApplyResources(this.label47, "label47"); - this.label47.Name = "label47"; - // - // CMB_batmonsensortype - // - this.CMB_batmonsensortype.FormattingEnabled = true; - this.CMB_batmonsensortype.Items.AddRange(new object[] { - resources.GetString("CMB_batmonsensortype.Items"), - resources.GetString("CMB_batmonsensortype.Items1"), - resources.GetString("CMB_batmonsensortype.Items2"), - resources.GetString("CMB_batmonsensortype.Items3")}); - resources.ApplyResources(this.CMB_batmonsensortype, "CMB_batmonsensortype"); - this.CMB_batmonsensortype.Name = "CMB_batmonsensortype"; - this.CMB_batmonsensortype.SelectedIndexChanged += new System.EventHandler(this.CMB_batmonsensortype_SelectedIndexChanged); - // - // textBox3 - // - resources.ApplyResources(this.textBox3, "textBox3"); - this.textBox3.Name = "textBox3"; - this.textBox3.ReadOnly = true; - // - // label29 - // - resources.ApplyResources(this.label29, "label29"); - this.label29.Name = "label29"; - // - // label30 - // - resources.ApplyResources(this.label30, "label30"); - this.label30.Name = "label30"; - // - // TXT_battcapacity - // - resources.ApplyResources(this.TXT_battcapacity, "TXT_battcapacity"); - this.TXT_battcapacity.Name = "TXT_battcapacity"; - this.TXT_battcapacity.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_battcapacity_Validating); - this.TXT_battcapacity.Validated += new System.EventHandler(this.TXT_battcapacity_Validated); - // - // CMB_batmontype - // - this.CMB_batmontype.FormattingEnabled = true; - this.CMB_batmontype.Items.AddRange(new object[] { - resources.GetString("CMB_batmontype.Items"), - resources.GetString("CMB_batmontype.Items1"), - resources.GetString("CMB_batmontype.Items2")}); - resources.ApplyResources(this.CMB_batmontype, "CMB_batmontype"); - this.CMB_batmontype.Name = "CMB_batmontype"; - this.CMB_batmontype.SelectedIndexChanged += new System.EventHandler(this.CMB_batmontype_SelectedIndexChanged); - // - // pictureBox5 - // - this.pictureBox5.BackColor = System.Drawing.Color.White; - this.pictureBox5.BackgroundImage = global::ArdupilotMega.Properties.Resources.attocurrent; - resources.ApplyResources(this.pictureBox5, "pictureBox5"); - this.pictureBox5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBox5.Name = "pictureBox5"; - this.pictureBox5.TabStop = false; - // - // tabArduplane - // - this.tabArduplane.Controls.Add(this.label48); - this.tabArduplane.Controls.Add(this.BUT_levelplane); - resources.ApplyResources(this.tabArduplane, "tabArduplane"); - this.tabArduplane.Name = "tabArduplane"; - this.tabArduplane.UseVisualStyleBackColor = true; - // - // label48 - // - resources.ApplyResources(this.label48, "label48"); - this.label48.Name = "label48"; - // - // BUT_levelplane - // - resources.ApplyResources(this.BUT_levelplane, "BUT_levelplane"); - this.BUT_levelplane.Name = "BUT_levelplane"; - this.BUT_levelplane.UseVisualStyleBackColor = true; - this.BUT_levelplane.Click += new System.EventHandler(this.BUT_levelplane_Click); - // - // tabArducopter - // - this.tabArducopter.Controls.Add(this.label28); - this.tabArducopter.Controls.Add(this.label16); - this.tabArducopter.Controls.Add(this.label15); - this.tabArducopter.Controls.Add(this.pictureBoxQuadX); - this.tabArducopter.Controls.Add(this.pictureBoxQuad); - this.tabArducopter.Controls.Add(this.BUT_levelac2); - resources.ApplyResources(this.tabArducopter, "tabArducopter"); - this.tabArducopter.Name = "tabArducopter"; - this.tabArducopter.UseVisualStyleBackColor = true; - // - // label28 - // - resources.ApplyResources(this.label28, "label28"); - this.label28.Name = "label28"; - // - // label16 - // - resources.ApplyResources(this.label16, "label16"); - this.label16.Name = "label16"; - // - // label15 - // - resources.ApplyResources(this.label15, "label15"); - this.label15.Name = "label15"; - // - // pictureBoxQuadX - // - this.pictureBoxQuadX.Cursor = System.Windows.Forms.Cursors.Hand; - this.pictureBoxQuadX.Image = global::ArdupilotMega.Properties.Resources.quadx; - resources.ApplyResources(this.pictureBoxQuadX, "pictureBoxQuadX"); - this.pictureBoxQuadX.Name = "pictureBoxQuadX"; - this.pictureBoxQuadX.TabStop = false; - this.pictureBoxQuadX.Click += new System.EventHandler(this.pictureBoxQuadX_Click); - // - // pictureBoxQuad - // - this.pictureBoxQuad.Cursor = System.Windows.Forms.Cursors.Hand; - this.pictureBoxQuad.Image = global::ArdupilotMega.Properties.Resources.quad; - resources.ApplyResources(this.pictureBoxQuad, "pictureBoxQuad"); - this.pictureBoxQuad.Name = "pictureBoxQuad"; - this.pictureBoxQuad.TabStop = false; - this.pictureBoxQuad.Click += new System.EventHandler(this.pictureBoxQuad_Click); - // - // BUT_levelac2 - // - resources.ApplyResources(this.BUT_levelac2, "BUT_levelac2"); - this.BUT_levelac2.Name = "BUT_levelac2"; - this.BUT_levelac2.UseVisualStyleBackColor = true; - this.BUT_levelac2.Click += new System.EventHandler(this.BUT_levelac2_Click); - // - // tabHeli - // - this.tabHeli.Controls.Add(this.groupBox5); - this.tabHeli.Controls.Add(this.BUT_HS4save); - this.tabHeli.Controls.Add(this.BUT_swash_manual); - this.tabHeli.Controls.Add(this.groupBox3); - this.tabHeli.Controls.Add(this.label44); - this.tabHeli.Controls.Add(this.label43); - this.tabHeli.Controls.Add(this.label42); - this.tabHeli.Controls.Add(this.groupBox2); - this.tabHeli.Controls.Add(this.groupBox1); - this.tabHeli.Controls.Add(this.HS4_TRIM); - this.tabHeli.Controls.Add(this.HS3_TRIM); - this.tabHeli.Controls.Add(this.HS2_TRIM); - this.tabHeli.Controls.Add(this.HS1_TRIM); - this.tabHeli.Controls.Add(this.label39); - this.tabHeli.Controls.Add(this.label38); - this.tabHeli.Controls.Add(this.label37); - this.tabHeli.Controls.Add(this.label36); - this.tabHeli.Controls.Add(this.label26); - this.tabHeli.Controls.Add(this.PIT_MAX); - this.tabHeli.Controls.Add(this.label25); - this.tabHeli.Controls.Add(this.ROL_MAX); - this.tabHeli.Controls.Add(this.label23); - this.tabHeli.Controls.Add(this.label22); - this.tabHeli.Controls.Add(this.HS4_REV); - this.tabHeli.Controls.Add(this.label20); - this.tabHeli.Controls.Add(this.label19); - this.tabHeli.Controls.Add(this.label18); - this.tabHeli.Controls.Add(this.SV3_POS); - this.tabHeli.Controls.Add(this.SV2_POS); - this.tabHeli.Controls.Add(this.SV1_POS); - this.tabHeli.Controls.Add(this.HS3_REV); - 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.HS4); - this.tabHeli.Controls.Add(this.HS3); - this.tabHeli.Controls.Add(this.Gservoloc); - resources.ApplyResources(this.tabHeli, "tabHeli"); - this.tabHeli.Name = "tabHeli"; - this.tabHeli.UseVisualStyleBackColor = true; - this.tabHeli.Click += new System.EventHandler(this.tabHeli_Click); - // - // groupBox5 - // - this.groupBox5.Controls.Add(this.H1_ENABLE); - this.groupBox5.Controls.Add(this.CCPM); - resources.ApplyResources(this.groupBox5, "groupBox5"); - this.groupBox5.Name = "groupBox5"; - this.groupBox5.TabStop = false; - // - // H1_ENABLE - // - resources.ApplyResources(this.H1_ENABLE, "H1_ENABLE"); - this.H1_ENABLE.Name = "H1_ENABLE"; - this.H1_ENABLE.TabStop = true; - this.H1_ENABLE.UseVisualStyleBackColor = true; - this.H1_ENABLE.CheckedChanged += new System.EventHandler(this.H1_ENABLE_CheckedChanged); - // - // CCPM - // - resources.ApplyResources(this.CCPM, "CCPM"); - this.CCPM.Name = "CCPM"; - this.CCPM.TabStop = true; - this.CCPM.UseVisualStyleBackColor = true; - // - // 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); - // - // groupBox3 - // - this.groupBox3.Controls.Add(this.label46); - this.groupBox3.Controls.Add(this.label45); - this.groupBox3.Controls.Add(this.GYR_ENABLE); - this.groupBox3.Controls.Add(this.GYR_GAIN); - resources.ApplyResources(this.groupBox3, "groupBox3"); - this.groupBox3.Name = "groupBox3"; - this.groupBox3.TabStop = false; - // - // label46 - // - resources.ApplyResources(this.label46, "label46"); - this.label46.Name = "label46"; - // - // label45 - // - resources.ApplyResources(this.label45, "label45"); - this.label45.Name = "label45"; - // - // GYR_ENABLE - // - resources.ApplyResources(this.GYR_ENABLE, "GYR_ENABLE"); - this.GYR_ENABLE.Name = "GYR_ENABLE"; - this.GYR_ENABLE.UseVisualStyleBackColor = true; - this.GYR_ENABLE.CheckedChanged += new System.EventHandler(this.GYR_ENABLE__CheckedChanged); - // - // GYR_GAIN - // - resources.ApplyResources(this.GYR_GAIN, "GYR_GAIN"); - this.GYR_GAIN.Name = "GYR_GAIN"; - this.GYR_GAIN.Validating += new System.ComponentModel.CancelEventHandler(this.GYR_GAIN__Validating); - // - // label44 - // - resources.ApplyResources(this.label44, "label44"); - this.label44.Name = "label44"; - // - // label43 - // - resources.ApplyResources(this.label43, "label43"); - this.label43.Name = "label43"; - // - // label42 - // - resources.ApplyResources(this.label42, "label42"); - this.label42.Name = "label42"; - // - // groupBox2 - // - this.groupBox2.Controls.Add(this.label24); - this.groupBox2.Controls.Add(this.HS4_MIN); - this.groupBox2.Controls.Add(this.HS4_MAX); - this.groupBox2.Controls.Add(this.label40); - resources.ApplyResources(this.groupBox2, "groupBox2"); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.TabStop = false; - // - // label24 - // - resources.ApplyResources(this.label24, "label24"); - this.label24.Name = "label24"; - // - // HS4_MIN - // - resources.ApplyResources(this.HS4_MIN, "HS4_MIN"); - this.HS4_MIN.Name = "HS4_MIN"; - this.HS4_MIN.Enter += new System.EventHandler(this.HS4_MIN_Enter); - this.HS4_MIN.Leave += new System.EventHandler(this.HS4_MIN_Leave); - this.HS4_MIN.Validating += new System.ComponentModel.CancelEventHandler(this.PWM_Validating); - // - // HS4_MAX - // - resources.ApplyResources(this.HS4_MAX, "HS4_MAX"); - this.HS4_MAX.Name = "HS4_MAX"; - this.HS4_MAX.Enter += new System.EventHandler(this.HS4_MAX_Enter); - this.HS4_MAX.Leave += new System.EventHandler(this.HS4_MAX_Leave); - this.HS4_MAX.Validating += new System.ComponentModel.CancelEventHandler(this.PWM_Validating); - // - // label40 - // - resources.ApplyResources(this.label40, "label40"); - this.label40.Name = "label40"; - // - // groupBox1 - // - this.groupBox1.Controls.Add(this.label41); - this.groupBox1.Controls.Add(this.label21); - this.groupBox1.Controls.Add(this.COL_MIN); - this.groupBox1.Controls.Add(this.COL_MID); - this.groupBox1.Controls.Add(this.COL_MAX); - this.groupBox1.Controls.Add(this.BUT_0collective); - resources.ApplyResources(this.groupBox1, "groupBox1"); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.TabStop = false; - // - // label41 - // - resources.ApplyResources(this.label41, "label41"); - this.label41.Name = "label41"; - // - // label21 - // - resources.ApplyResources(this.label21, "label21"); - this.label21.Name = "label21"; - // - // COL_MIN - // - resources.ApplyResources(this.COL_MIN, "COL_MIN"); - this.COL_MIN.Name = "COL_MIN"; - this.COL_MIN.Enter += new System.EventHandler(this.COL_MIN__Enter); - this.COL_MIN.Leave += new System.EventHandler(this.COL_MIN__Leave); - this.COL_MIN.Validating += new System.ComponentModel.CancelEventHandler(this.PWM_Validating); - // - // COL_MID - // - resources.ApplyResources(this.COL_MID, "COL_MID"); - this.COL_MID.Name = "COL_MID"; - this.COL_MID.Validating += new System.ComponentModel.CancelEventHandler(this.PWM_Validating); - // - // COL_MAX - // - resources.ApplyResources(this.COL_MAX, "COL_MAX"); - this.COL_MAX.Name = "COL_MAX"; - this.COL_MAX.Enter += new System.EventHandler(this.COL_MAX__Enter); - this.COL_MAX.Leave += new System.EventHandler(this.COL_MAX__Leave); - this.COL_MAX.Validating += new System.ComponentModel.CancelEventHandler(this.PWM_Validating); - // - // BUT_0collective - // - resources.ApplyResources(this.BUT_0collective, "BUT_0collective"); - this.BUT_0collective.Name = "BUT_0collective"; - this.BUT_0collective.UseVisualStyleBackColor = true; - this.BUT_0collective.Click += new System.EventHandler(this.BUT_0collective_Click); - // - // HS4_TRIM - // - resources.ApplyResources(this.HS4_TRIM, "HS4_TRIM"); - this.HS4_TRIM.Maximum = new decimal(new int[] { - 2000, - 0, - 0, - 0}); - this.HS4_TRIM.Minimum = new decimal(new int[] { - 1000, - 0, - 0, - 0}); - this.HS4_TRIM.Name = "HS4_TRIM"; - this.HS4_TRIM.Value = new decimal(new int[] { - 1500, - 0, - 0, - 0}); - this.HS4_TRIM.ValueChanged += new System.EventHandler(this.HS4_TRIM_ValueChanged); - // - // HS3_TRIM - // - resources.ApplyResources(this.HS3_TRIM, "HS3_TRIM"); - this.HS3_TRIM.Maximum = new decimal(new int[] { - 2000, - 0, - 0, - 0}); - this.HS3_TRIM.Minimum = new decimal(new int[] { - 1000, - 0, - 0, - 0}); - this.HS3_TRIM.Name = "HS3_TRIM"; - this.HS3_TRIM.Value = new decimal(new int[] { - 1500, - 0, - 0, - 0}); - this.HS3_TRIM.ValueChanged += new System.EventHandler(this.HS3_TRIM_ValueChanged); - // - // HS2_TRIM - // - resources.ApplyResources(this.HS2_TRIM, "HS2_TRIM"); - this.HS2_TRIM.Maximum = new decimal(new int[] { - 2000, - 0, - 0, - 0}); - this.HS2_TRIM.Minimum = new decimal(new int[] { - 1000, - 0, - 0, - 0}); - this.HS2_TRIM.Name = "HS2_TRIM"; - this.HS2_TRIM.Value = new decimal(new int[] { - 1500, - 0, - 0, - 0}); - this.HS2_TRIM.ValueChanged += new System.EventHandler(this.HS2_TRIM_ValueChanged); - // - // HS1_TRIM - // - resources.ApplyResources(this.HS1_TRIM, "HS1_TRIM"); - this.HS1_TRIM.Maximum = new decimal(new int[] { - 2000, - 0, - 0, - 0}); - this.HS1_TRIM.Minimum = new decimal(new int[] { - 1000, - 0, - 0, - 0}); - this.HS1_TRIM.Name = "HS1_TRIM"; - this.HS1_TRIM.Value = new decimal(new int[] { - 1500, - 0, - 0, - 0}); - this.HS1_TRIM.ValueChanged += new System.EventHandler(this.HS1_TRIM_ValueChanged); - // - // label39 - // - resources.ApplyResources(this.label39, "label39"); - this.label39.Name = "label39"; - // - // label38 - // - resources.ApplyResources(this.label38, "label38"); - this.label38.Name = "label38"; - // - // label37 - // - resources.ApplyResources(this.label37, "label37"); - this.label37.Name = "label37"; - // - // label36 - // - resources.ApplyResources(this.label36, "label36"); - this.label36.Name = "label36"; - // - // label26 - // - resources.ApplyResources(this.label26, "label26"); - this.label26.Name = "label26"; - // - // PIT_MAX - // - resources.ApplyResources(this.PIT_MAX, "PIT_MAX"); - this.PIT_MAX.Name = "PIT_MAX"; - this.PIT_MAX.Validating += new System.ComponentModel.CancelEventHandler(this.PIT_MAX__Validating); - // - // label25 - // - resources.ApplyResources(this.label25, "label25"); - this.label25.Name = "label25"; - // - // ROL_MAX - // - resources.ApplyResources(this.ROL_MAX, "ROL_MAX"); - this.ROL_MAX.Name = "ROL_MAX"; - this.ROL_MAX.Validating += new System.ComponentModel.CancelEventHandler(this.ROL_MAX__Validating); - // - // label23 - // - resources.ApplyResources(this.label23, "label23"); - this.label23.Name = "label23"; - // - // label22 - // - resources.ApplyResources(this.label22, "label22"); - this.label22.Name = "label22"; - // - // HS4_REV - // - resources.ApplyResources(this.HS4_REV, "HS4_REV"); - this.HS4_REV.Name = "HS4_REV"; - this.HS4_REV.UseVisualStyleBackColor = true; - this.HS4_REV.CheckedChanged += new System.EventHandler(this.HS4_REV_CheckedChanged); - // - // label20 - // - resources.ApplyResources(this.label20, "label20"); - this.label20.Name = "label20"; - // - // label19 - // - resources.ApplyResources(this.label19, "label19"); - this.label19.Name = "label19"; - // - // label18 - // - resources.ApplyResources(this.label18, "label18"); - this.label18.Name = "label18"; - // - // SV3_POS - // - resources.ApplyResources(this.SV3_POS, "SV3_POS"); - this.SV3_POS.Name = "SV3_POS"; - this.SV3_POS.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_srvpos3_Validating); - // - // SV2_POS - // - resources.ApplyResources(this.SV2_POS, "SV2_POS"); - this.SV2_POS.Name = "SV2_POS"; - this.SV2_POS.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_srvpos2_Validating); - // - // SV1_POS - // - resources.ApplyResources(this.SV1_POS, "SV1_POS"); - this.SV1_POS.Name = "SV1_POS"; - this.SV1_POS.Validating += new System.ComponentModel.CancelEventHandler(this.TXT_srvpos1_Validating); - // - // HS3_REV - // - resources.ApplyResources(this.HS3_REV, "HS3_REV"); - this.HS3_REV.Name = "HS3_REV"; - this.HS3_REV.UseVisualStyleBackColor = true; - this.HS3_REV.CheckedChanged += new System.EventHandler(this.HS3_REV_CheckedChanged); - // - // HS2_REV - // - resources.ApplyResources(this.HS2_REV, "HS2_REV"); - this.HS2_REV.Name = "HS2_REV"; - this.HS2_REV.UseVisualStyleBackColor = true; - this.HS2_REV.CheckedChanged += new System.EventHandler(this.HS2_REV_CheckedChanged); - // - // HS1_REV - // - resources.ApplyResources(this.HS1_REV, "HS1_REV"); - this.HS1_REV.Name = "HS1_REV"; - this.HS1_REV.UseVisualStyleBackColor = true; - this.HS1_REV.CheckedChanged += new System.EventHandler(this.HS1_REV_CheckedChanged); - // - // label17 - // - resources.ApplyResources(this.label17, "label17"); - this.label17.Name = "label17"; - // - // HS4 - // - this.HS4.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(67)))), ((int)(((byte)(68)))), ((int)(((byte)(69))))); - this.HS4.BorderColor = System.Drawing.SystemColors.ActiveBorder; - this.HS4.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.currentStateBindingSource, "ch4in", true)); - this.HS4.Label = "Rudder"; - resources.ApplyResources(this.HS4, "HS4"); - this.HS4.Maximum = 2200; - this.HS4.maxline = 0; - this.HS4.Minimum = 800; - this.HS4.minline = 0; - this.HS4.Name = "HS4"; - this.HS4.Value = 1500; - this.HS4.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(193)))), ((int)(((byte)(31))))); - this.HS4.Paint += new System.Windows.Forms.PaintEventHandler(this.HS4_Paint); - // - // HS3 - // - this.HS3.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(67)))), ((int)(((byte)(68)))), ((int)(((byte)(69))))); - this.HS3.BorderColor = System.Drawing.SystemColors.ActiveBorder; - this.HS3.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.currentStateBindingSource, "ch3in", true)); - this.HS3.Label = "Collective"; - resources.ApplyResources(this.HS3, "HS3"); - this.HS3.Maximum = 2200; - this.HS3.maxline = 0; - this.HS3.Minimum = 800; - this.HS3.minline = 0; - this.HS3.Name = "HS3"; - this.HS3.Value = 1500; - this.HS3.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(193)))), ((int)(((byte)(31))))); - this.HS3.Paint += new System.Windows.Forms.PaintEventHandler(this.HS3_Paint); - // - // Gservoloc - // - this.Gservoloc.BackColor = System.Drawing.Color.Transparent; - this.Gservoloc.BackgroundImage = global::ArdupilotMega.Properties.Resources.Gaugebg; - resources.ApplyResources(this.Gservoloc, "Gservoloc"); - this.Gservoloc.BaseArcColor = System.Drawing.Color.Transparent; - this.Gservoloc.BaseArcRadius = 60; - this.Gservoloc.BaseArcStart = 90; - this.Gservoloc.BaseArcSweep = 360; - this.Gservoloc.BaseArcWidth = 2; - this.Gservoloc.basesize = new System.Drawing.Size(150, 150); - this.Gservoloc.Cap_Idx = ((byte)(0)); - this.Gservoloc.CapColor = System.Drawing.Color.White; - this.Gservoloc.CapColors = new System.Drawing.Color[] { - System.Drawing.Color.White, - System.Drawing.Color.Black, - System.Drawing.Color.Black, - System.Drawing.Color.Black, - System.Drawing.Color.Black}; - this.Gservoloc.CapPosition = new System.Drawing.Point(55, 85); - this.Gservoloc.CapsPosition = new System.Drawing.Point[] { - new System.Drawing.Point(55, 85), - new System.Drawing.Point(40, 67), - new System.Drawing.Point(10, 10), - new System.Drawing.Point(10, 10), - new System.Drawing.Point(10, 10)}; - this.Gservoloc.CapsText = new string[] { - "Position", - "", - "", - "", - ""}; - this.Gservoloc.CapText = "Position"; - this.Gservoloc.Center = new System.Drawing.Point(75, 75); - this.Gservoloc.MaxValue = 180F; - this.Gservoloc.MinValue = -180F; - this.Gservoloc.Name = "Gservoloc"; - this.Gservoloc.Need_Idx = ((byte)(3)); - this.Gservoloc.NeedleColor1 = AGaugeApp.AGauge.NeedleColorEnum.Gray; - this.Gservoloc.NeedleColor2 = System.Drawing.Color.White; - this.Gservoloc.NeedleEnabled = false; - this.Gservoloc.NeedleRadius = 80; - this.Gservoloc.NeedlesColor1 = new AGaugeApp.AGauge.NeedleColorEnum[] { - AGaugeApp.AGauge.NeedleColorEnum.Gray, - AGaugeApp.AGauge.NeedleColorEnum.Red, - AGaugeApp.AGauge.NeedleColorEnum.Green, - AGaugeApp.AGauge.NeedleColorEnum.Gray}; - this.Gservoloc.NeedlesColor2 = new System.Drawing.Color[] { - System.Drawing.Color.White, - System.Drawing.Color.White, - System.Drawing.Color.White, - System.Drawing.Color.White}; - this.Gservoloc.NeedlesEnabled = new bool[] { - true, - true, - true, - false}; - this.Gservoloc.NeedlesRadius = new int[] { - 60, - 60, - 60, - 80}; - this.Gservoloc.NeedlesType = new int[] { - 0, - 0, - 0, - 0}; - this.Gservoloc.NeedlesWidth = new int[] { - 2, - 2, - 2, - 2}; - this.Gservoloc.NeedleType = 0; - this.Gservoloc.NeedleWidth = 2; - this.Gservoloc.Range_Idx = ((byte)(0)); - this.Gservoloc.RangeColor = System.Drawing.Color.LightGreen; - this.Gservoloc.RangeEnabled = false; - this.Gservoloc.RangeEndValue = 360F; - this.Gservoloc.RangeInnerRadius = 1; - this.Gservoloc.RangeOuterRadius = 60; - this.Gservoloc.RangesColor = new System.Drawing.Color[] { - System.Drawing.Color.LightGreen, - System.Drawing.Color.Red, - System.Drawing.Color.Orange, - System.Drawing.SystemColors.Control, - System.Drawing.SystemColors.Control}; - this.Gservoloc.RangesEnabled = new bool[] { - false, - false, - false, - false, - false}; - this.Gservoloc.RangesEndValue = new float[] { - 360F, - 200F, - 150F, - 0F, - 0F}; - this.Gservoloc.RangesInnerRadius = new int[] { - 1, - 1, - 1, - 70, - 70}; - this.Gservoloc.RangesOuterRadius = new int[] { - 60, - 60, - 60, - 80, - 80}; - this.Gservoloc.RangesStartValue = new float[] { - 0F, - 150F, - 75F, - 0F, - 0F}; - this.Gservoloc.RangeStartValue = 0F; - this.Gservoloc.ScaleLinesInterColor = System.Drawing.Color.White; - this.Gservoloc.ScaleLinesInterInnerRadius = 52; - this.Gservoloc.ScaleLinesInterOuterRadius = 60; - this.Gservoloc.ScaleLinesInterWidth = 1; - this.Gservoloc.ScaleLinesMajorColor = System.Drawing.Color.White; - this.Gservoloc.ScaleLinesMajorInnerRadius = 50; - this.Gservoloc.ScaleLinesMajorOuterRadius = 60; - this.Gservoloc.ScaleLinesMajorStepValue = 30F; - this.Gservoloc.ScaleLinesMajorWidth = 2; - this.Gservoloc.ScaleLinesMinorColor = System.Drawing.Color.White; - this.Gservoloc.ScaleLinesMinorInnerRadius = 55; - this.Gservoloc.ScaleLinesMinorNumOf = 2; - this.Gservoloc.ScaleLinesMinorOuterRadius = 60; - this.Gservoloc.ScaleLinesMinorWidth = 1; - this.Gservoloc.ScaleNumbersColor = System.Drawing.Color.White; - this.Gservoloc.ScaleNumbersFormat = null; - this.Gservoloc.ScaleNumbersRadius = 44; - this.Gservoloc.ScaleNumbersRotation = 45; - this.Gservoloc.ScaleNumbersStartScaleLine = 2; - this.Gservoloc.ScaleNumbersStepScaleLines = 1; - this.Gservoloc.Value = 0F; - this.Gservoloc.Value0 = -60F; - this.Gservoloc.Value1 = 60F; - this.Gservoloc.Value2 = 180F; - this.Gservoloc.Value3 = 0F; - // - // tabReset - // - this.tabReset.Controls.Add(this.BUT_reset); - resources.ApplyResources(this.tabReset, "tabReset"); - this.tabReset.Name = "tabReset"; - this.tabReset.UseVisualStyleBackColor = true; - // - // BUT_reset - // - resources.ApplyResources(this.BUT_reset, "BUT_reset"); - this.BUT_reset.Name = "BUT_reset"; - this.BUT_reset.Tag = ""; - this.BUT_reset.UseVisualStyleBackColor = true; - this.BUT_reset.Click += new System.EventHandler(this.BUT_reset_Click); - // - // Setup - // - resources.ApplyResources(this, "$this"); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.Tabs); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; - this.Name = "Setup"; - this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Setup_FormClosing); - this.Load += new System.EventHandler(this.Setup_Load); - this.Tabs.ResumeLayout(false); - this.tabRadioIn.ResumeLayout(false); - this.tabRadioIn.PerformLayout(); - this.groupBoxElevons.ResumeLayout(false); - this.groupBoxElevons.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.currentStateBindingSource)).EndInit(); - this.tabModes.ResumeLayout(false); - this.tabModes.PerformLayout(); - this.tabHardware.ResumeLayout(false); - this.tabHardware.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); - this.tabBattery.ResumeLayout(false); - this.tabBattery.PerformLayout(); - this.groupBox4.ResumeLayout(false); - this.groupBox4.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit(); - this.tabArduplane.ResumeLayout(false); - this.tabArduplane.PerformLayout(); - this.tabArducopter.ResumeLayout(false); - this.tabArducopter.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuadX)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxQuad)).EndInit(); - this.tabHeli.ResumeLayout(false); - this.tabHeli.PerformLayout(); - this.groupBox5.ResumeLayout(false); - this.groupBox5.PerformLayout(); - this.groupBox3.ResumeLayout(false); - this.groupBox3.PerformLayout(); - this.groupBox2.ResumeLayout(false); - this.groupBox2.PerformLayout(); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.HS4_TRIM)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.HS3_TRIM)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.HS2_TRIM)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.HS1_TRIM)).EndInit(); - this.tabReset.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.TabControl Tabs; - private System.Windows.Forms.TabPage tabRadioIn; - private HorizontalProgressBar2 BAR8; - private HorizontalProgressBar2 BAR7; - private HorizontalProgressBar2 BAR6; - private HorizontalProgressBar2 BAR5; - private VerticalProgressBar2 BARpitch; - private VerticalProgressBar2 BARthrottle; - private HorizontalProgressBar2 BARyaw; - private HorizontalProgressBar2 BARroll; - private System.Windows.Forms.TabPage tabHardware; - private System.Windows.Forms.TabPage tabArducopter; - private MyButton BUT_Calibrateradio; - private System.Windows.Forms.BindingSource currentStateBindingSource; - private System.Windows.Forms.TabPage tabModes; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.ComboBox CMB_fmode6; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.ComboBox CMB_fmode5; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.ComboBox CMB_fmode4; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.ComboBox CMB_fmode3; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.ComboBox CMB_fmode2; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.ComboBox CMB_fmode1; - private MyButton BUT_SaveModes; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label lbl_currentmode; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.Label label14; - private System.Windows.Forms.Label LBL_flightmodepwm; - private System.Windows.Forms.PictureBox pictureBox4; - private System.Windows.Forms.PictureBox pictureBox3; - private System.Windows.Forms.PictureBox pictureBox1; - private System.Windows.Forms.Label label100; - private System.Windows.Forms.TextBox TXT_declination; - private System.Windows.Forms.CheckBox CHK_enableairspeed; - private System.Windows.Forms.CheckBox CHK_enablesonar; - private System.Windows.Forms.CheckBox CHK_enablecompass; - private System.Windows.Forms.TabPage tabReset; - private MyButton BUT_reset; - private System.Windows.Forms.PictureBox pictureBoxQuadX; - private System.Windows.Forms.PictureBox pictureBoxQuad; - private System.Windows.Forms.Label label15; - private System.Windows.Forms.Label label16; - private System.Windows.Forms.TabPage tabHeli; - private AGaugeApp.AGauge Gservoloc; - private System.Windows.Forms.Label label17; - private System.Windows.Forms.CheckBox HS3_REV; - private System.Windows.Forms.CheckBox HS2_REV; - private System.Windows.Forms.CheckBox HS1_REV; - private System.Windows.Forms.Label label20; - private System.Windows.Forms.Label label19; - private System.Windows.Forms.Label label18; - private System.Windows.Forms.TextBox SV3_POS; - private System.Windows.Forms.TextBox SV2_POS; - private System.Windows.Forms.TextBox SV1_POS; - private System.Windows.Forms.CheckBox HS4_REV; - private System.Windows.Forms.Label label22; - private System.Windows.Forms.Label label23; - private HorizontalProgressBar2 HS4; - private VerticalProgressBar2 HS3; - private MyButton BUT_0collective; - private System.Windows.Forms.Label label25; - private System.Windows.Forms.TextBox ROL_MAX; - private System.Windows.Forms.Label label26; - private System.Windows.Forms.TextBox PIT_MAX; - private System.Windows.Forms.TextBox GYR_GAIN; - private System.Windows.Forms.CheckBox GYR_ENABLE; - private System.Windows.Forms.Label label28; - private MyButton BUT_levelac2; - private System.Windows.Forms.ToolTip toolTip1; - private System.Windows.Forms.LinkLabel linkLabelmagdec; - private System.Windows.Forms.CheckBox CHK_revch3; - private System.Windows.Forms.CheckBox CHK_revch4; - private System.Windows.Forms.CheckBox CHK_revch2; - private System.Windows.Forms.CheckBox CHK_revch1; - private System.Windows.Forms.CheckBox CB_simple6; - private System.Windows.Forms.CheckBox CB_simple5; - private System.Windows.Forms.CheckBox CB_simple4; - private System.Windows.Forms.CheckBox CB_simple3; - private System.Windows.Forms.CheckBox CB_simple2; - private System.Windows.Forms.CheckBox CB_simple1; - private System.Windows.Forms.Label label29; - private System.Windows.Forms.TabPage tabBattery; - private System.Windows.Forms.Label label30; - private System.Windows.Forms.TextBox TXT_battcapacity; - private System.Windows.Forms.ComboBox CMB_batmontype; - private System.Windows.Forms.PictureBox pictureBox5; - private System.Windows.Forms.TextBox textBox3; - private System.Windows.Forms.Label label31; - private System.Windows.Forms.TextBox TXT_ampspervolt; - private System.Windows.Forms.TextBox TXT_divider; - private System.Windows.Forms.TextBox TXT_voltage; - private System.Windows.Forms.TextBox TXT_measuredvoltage; - private System.Windows.Forms.TextBox TXT_inputvoltage; - private System.Windows.Forms.Label label35; - private System.Windows.Forms.Label label34; - private System.Windows.Forms.Label label33; - private System.Windows.Forms.Label label32; - private System.Windows.Forms.NumericUpDown HS1_TRIM; - private System.Windows.Forms.Label label39; - private System.Windows.Forms.Label label38; - private System.Windows.Forms.Label label37; - private System.Windows.Forms.Label label36; - private System.Windows.Forms.NumericUpDown HS3_TRIM; - private System.Windows.Forms.NumericUpDown HS2_TRIM; - private System.Windows.Forms.NumericUpDown HS4_TRIM; - private System.Windows.Forms.GroupBox groupBox1; - private MyButton BUT_swash_manual; - private System.Windows.Forms.TextBox COL_MIN; - private System.Windows.Forms.TextBox COL_MID; - private System.Windows.Forms.TextBox COL_MAX; - private System.Windows.Forms.Label label41; - private System.Windows.Forms.Label label21; - private MyButton BUT_HS4save; - private System.Windows.Forms.GroupBox groupBox2; - private System.Windows.Forms.Label label24; - private System.Windows.Forms.TextBox HS4_MIN; - private System.Windows.Forms.TextBox HS4_MAX; - private System.Windows.Forms.Label label40; - private System.Windows.Forms.Label label42; - private System.Windows.Forms.Label label44; - private System.Windows.Forms.Label label43; - private System.Windows.Forms.GroupBox groupBox3; - private System.Windows.Forms.Label label46; - private System.Windows.Forms.Label label45; - private System.Windows.Forms.CheckBox CHK_enableoptflow; - private System.Windows.Forms.PictureBox pictureBox2; - private System.Windows.Forms.ComboBox CMB_sonartype; - private System.Windows.Forms.CheckBox CHK_mixmode; - private System.Windows.Forms.CheckBox CHK_elevonch2rev; - private System.Windows.Forms.CheckBox CHK_elevonch1rev; - private System.Windows.Forms.CheckBox CHK_elevonrev; - private System.Windows.Forms.GroupBox groupBoxElevons; - private System.Windows.Forms.Label label27; - private System.Windows.Forms.ComboBox CMB_batmonsensortype; - private System.Windows.Forms.Label label47; - private System.Windows.Forms.GroupBox groupBox4; - private System.Windows.Forms.GroupBox groupBox5; - private System.Windows.Forms.RadioButton H1_ENABLE; - private System.Windows.Forms.RadioButton CCPM; - private MyButton BUT_MagCalibration; - private System.Windows.Forms.TabPage tabArduplane; - private System.Windows.Forms.Label label48; - private MyButton BUT_levelplane; - - } -} \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/Setup/Setup.cs b/Tools/ArdupilotMegaPlanner/Setup/Setup.cs deleted file mode 100644 index 348c1cd0ce..0000000000 --- a/Tools/ArdupilotMegaPlanner/Setup/Setup.cs +++ /dev/null @@ -1,1730 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace ArdupilotMega.Setup -{ - public partial class Setup : Form - { - internal GCSViews.Configuration Configuration; - bool run = false; - bool startup = false; - - bool inpwmdetect = false; - - const float rad2deg = (float)(180 / Math.PI); - const float deg2rad = (float)(1.0 / rad2deg); - - float[] rcmin = new float[8]; - float[] rcmax = new float[8]; - float[] rctrim = new float[8]; - - Timer timer = new Timer(); - - public Setup() - { - InitializeComponent(); - - for (int a = 0; a < rcmin.Length; a++) - { - rcmin[a] = 3000; - rcmax[a] = 0; - rctrim[a] = 1500; - } - - MainV2.comPort.requestDatastream((byte)ArdupilotMega.MAVLink.MAV_DATA_STREAM.MAV_DATA_STREAM_RC_CHANNELS, MainV2.cs.raterc); - - timer.Tick += new EventHandler(timer_Tick); - - timer.Enabled = true; - timer.Interval = 100; - timer.Start(); - } - - void timer_Tick(object sender, EventArgs e) - { - try - { - MainV2.cs.UpdateCurrentSettings(currentStateBindingSource); - } - catch { } - - float pwm = 0; - - if (MainV2.cs.firmware == MainV2.Firmwares.ArduPlane) // APM - { - if (MainV2.comPort.param.ContainsKey("FLTMODE_CH")) - { - switch ((int)(float)MainV2.comPort.param["FLTMODE_CH"]) - { - case 5: - pwm = MainV2.cs.ch5in; - break; - case 6: - pwm = MainV2.cs.ch6in; - break; - case 7: - pwm = MainV2.cs.ch7in; - break; - case 8: - pwm = MainV2.cs.ch8in; - break; - default: - - break; - } - - LBL_flightmodepwm.Text = MainV2.comPort.param["FLTMODE_CH"].ToString() + ": " + pwm.ToString(); - } - } - - if (MainV2.cs.firmware == MainV2.Firmwares.ArduCopter2) // ac2 - { - pwm = MainV2.cs.ch5in; - LBL_flightmodepwm.Text = "5: " + MainV2.cs.ch5in.ToString(); - } - - Control[] fmodelist = new Control[] { CMB_fmode1, CMB_fmode2, CMB_fmode3, CMB_fmode4, CMB_fmode5, CMB_fmode6 }; - - foreach (Control ctl in fmodelist) - { - ctl.BackColor = Color.FromArgb(0x43, 0x44, 0x45); - } - - byte no = readSwitch(pwm); - - fmodelist[no].BackColor = Color.Green; - - if (Tabs.SelectedTab == tabHeli) - { - if (MainV2.comPort.param["HSV_MAN"] == null || MainV2.comPort.param["HSV_MAN"].ToString() == "0") - return; - - if (HS3.minline == 0) - HS3.minline = 2200; - - if (HS4.minline == 0) - HS4.minline = 2200; - - HS3.minline = Math.Min(HS3.minline, (int)MainV2.cs.ch3in); - HS3.maxline = Math.Max(HS3.maxline, (int)MainV2.cs.ch3in); - - HS4.minline = Math.Min(HS4.minline, (int)MainV2.cs.ch4in); - HS4.maxline = Math.Max(HS4.maxline, (int)MainV2.cs.ch4in); - - if (!inpwmdetect) - { - HS3_Paint(null, null); - HS4_Paint(null, null); - } - else - { - try - { - HS3.minline = int.Parse(COL_MIN.Text); - HS3.maxline = int.Parse(COL_MAX.Text); - HS4.maxline = int.Parse(HS4_MIN.Text); - HS4.minline = int.Parse(HS4_MAX.Text); - } - catch { } - } - } - - } - - // from arducopter code - byte readSwitch(float inpwm) - { - int pulsewidth = (int)inpwm; // default for Arducopter - - if (pulsewidth > 1230 && pulsewidth <= 1360) return 1; - if (pulsewidth > 1360 && pulsewidth <= 1490) return 2; - if (pulsewidth > 1490 && pulsewidth <= 1620) return 3; - if (pulsewidth > 1620 && pulsewidth <= 1749) return 4; // Software Manual - if (pulsewidth >= 1750) return 5; // Hardware Manual - return 0; - } - - private void BUT_Calibrateradio_Click(object sender, EventArgs e) - { - if (run) - { - BUT_Calibrateradio.Text = "Please goto the next tab"; - run = false; - return; - } - - CustomMessageBox.Show("Ensure your transmitter is on and receiver is powered and connected\nEnsure your motor does not have power/no props!!!"); - - byte oldrc = MainV2.cs.raterc; - byte oldatt = MainV2.cs.rateattitude; - byte oldpos = MainV2.cs.rateposition; - byte oldstatus = MainV2.cs.ratestatus; - - MainV2.cs.raterc = 10; - MainV2.cs.rateattitude = 0; - MainV2.cs.rateposition = 0; - MainV2.cs.ratestatus = 0; - - try - { - - MainV2.comPort.requestDatastream((byte)ArdupilotMega.MAVLink.MAV_DATA_STREAM.MAV_DATA_STREAM_RC_CHANNELS, 10); - - } - catch { } - - BUT_Calibrateradio.Text = "Click when Done"; - - run = true; - - - while (run) - { - Application.DoEvents(); - - System.Threading.Thread.Sleep(5); - - MainV2.cs.UpdateCurrentSettings(currentStateBindingSource, true, MainV2.comPort); - - if (MainV2.cs.ch1in > 800 && MainV2.cs.ch1in < 2200) - { - rcmin[0] = Math.Min(rcmin[0], MainV2.cs.ch1in); - rcmax[0] = Math.Max(rcmax[0], MainV2.cs.ch1in); - - rcmin[1] = Math.Min(rcmin[1], MainV2.cs.ch2in); - rcmax[1] = Math.Max(rcmax[1], MainV2.cs.ch2in); - - rcmin[2] = Math.Min(rcmin[2], MainV2.cs.ch3in); - rcmax[2] = Math.Max(rcmax[2], MainV2.cs.ch3in); - - rcmin[3] = Math.Min(rcmin[3], MainV2.cs.ch4in); - rcmax[3] = Math.Max(rcmax[3], MainV2.cs.ch4in); - - rcmin[4] = Math.Min(rcmin[4], MainV2.cs.ch5in); - rcmax[4] = Math.Max(rcmax[4], MainV2.cs.ch5in); - - rcmin[5] = Math.Min(rcmin[5], MainV2.cs.ch6in); - rcmax[5] = Math.Max(rcmax[5], MainV2.cs.ch6in); - - rcmin[6] = Math.Min(rcmin[6], MainV2.cs.ch7in); - rcmax[6] = Math.Max(rcmax[6], MainV2.cs.ch7in); - - rcmin[7] = Math.Min(rcmin[7], MainV2.cs.ch8in); - rcmax[7] = Math.Max(rcmax[7], MainV2.cs.ch8in); - - BARroll.minline = (int)rcmin[0]; - BARroll.maxline = (int)rcmax[0]; - - BARpitch.minline = (int)rcmin[1]; - BARpitch.maxline = (int)rcmax[1]; - - BARthrottle.minline = (int)rcmin[2]; - BARthrottle.maxline = (int)rcmax[2]; - - BARyaw.minline = (int)rcmin[3]; - BARyaw.maxline = (int)rcmax[3]; - - BAR5.minline = (int)rcmin[4]; - BAR5.maxline = (int)rcmax[4]; - - BAR6.minline = (int)rcmin[5]; - BAR6.maxline = (int)rcmax[5]; - - BAR7.minline = (int)rcmin[6]; - BAR7.maxline = (int)rcmax[6]; - - BAR8.minline = (int)rcmin[7]; - BAR8.maxline = (int)rcmax[7]; - - } - } - - CustomMessageBox.Show("Ensure all your sticks are centered and throttle is down, and click ok to continue"); - - MainV2.cs.UpdateCurrentSettings(currentStateBindingSource, true, MainV2.comPort); - - rctrim[0] = MainV2.cs.ch1in; - rctrim[1] = MainV2.cs.ch2in; - rctrim[2] = MainV2.cs.ch3in; - rctrim[3] = MainV2.cs.ch4in; - rctrim[4] = MainV2.cs.ch5in; - rctrim[5] = MainV2.cs.ch6in; - rctrim[6] = MainV2.cs.ch7in; - rctrim[7] = MainV2.cs.ch8in; - - string data = "---------------\n"; - - for (int a = 0; a < 8; a++) - { - // we want these to save no matter what - BUT_Calibrateradio.Text = "Saving"; - try - { - if (rcmin[a] != rcmax[a]) - { - MainV2.comPort.setParam("RC" + (a + 1).ToString("0") + "_MIN", rcmin[a]); - MainV2.comPort.setParam("RC" + (a + 1).ToString("0") + "_MAX", rcmax[a]); - } - if (rctrim[a] < 1195 || rctrim[a] > 1205) - MainV2.comPort.setParam("RC" + (a + 1).ToString("0") + "_TRIM", rctrim[a]); - } - catch { CustomMessageBox.Show("Failed to set Channel " + (a + 1).ToString()); } - - data = data + "CH" + (a + 1) + " " + rcmin[a] + " | " + rcmax[a] + "\n"; - } - - MainV2.cs.raterc = oldrc; - MainV2.cs.rateattitude = oldatt; - MainV2.cs.rateposition = oldpos; - MainV2.cs.ratestatus = oldstatus; - - try - { - - MainV2.comPort.requestDatastream((byte)ArdupilotMega.MAVLink.MAV_DATA_STREAM.MAV_DATA_STREAM_RC_CHANNELS, oldrc); - - } - catch { } - - if (Configuration != null) - { - Configuration.startup = true; - Configuration.processToScreen(); - Configuration.startup = false; - } - - CustomMessageBox.Show("Here are the detected radio options\nNOTE Channels not connected are displayed as 1500 +-2\nNormal values are around 1100 | 1900\nChannel:Min | Max \n" + data, "Radio"); - - BUT_Calibrateradio.Text = "Please goto the next tab"; - } - - - - - private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) - { - int monosux = 0; - monosux *= 5; - - if (Tabs.SelectedTab == tabRadioIn) - { - startup = true; - - if (MainV2.cs.firmware == MainV2.Firmwares.ArduCopter2) - { - groupBoxElevons.Visible = false; - } - - try - { - CHK_mixmode.Checked = MainV2.comPort.param["ELEVON_MIXING"].ToString() == "1"; - CHK_elevonrev.Checked = MainV2.comPort.param["ELEVON_REVERSE"].ToString() == "1"; - CHK_elevonch1rev.Checked = MainV2.comPort.param["ELEVON_CH1_REV"].ToString() == "1"; - CHK_elevonch2rev.Checked = MainV2.comPort.param["ELEVON_CH2_REV"].ToString() == "1"; - } - catch { } // this will fail on arducopter - try - { - CHK_revch1.Checked = MainV2.comPort.param["RC1_REV"].ToString() == "-1"; - CHK_revch2.Checked = MainV2.comPort.param["RC2_REV"].ToString() == "-1"; - CHK_revch3.Checked = MainV2.comPort.param["RC3_REV"].ToString() == "-1"; - CHK_revch4.Checked = MainV2.comPort.param["RC4_REV"].ToString() == "-1"; - } - catch (Exception ex) { CustomMessageBox.Show("Missing RC rev Param "+ex.ToString()); } - startup = false; - } - - if (Tabs.SelectedTab == tabModes) - { - if (MainV2.cs.firmware == MainV2.Firmwares.ArduPlane) // APM - { - CB_simple1.Visible = false; - CB_simple2.Visible = false; - CB_simple3.Visible = false; - CB_simple4.Visible = false; - CB_simple5.Visible = false; - CB_simple6.Visible = false; - - CMB_fmode1.Items.Clear(); - CMB_fmode2.Items.Clear(); - CMB_fmode3.Items.Clear(); - CMB_fmode4.Items.Clear(); - CMB_fmode5.Items.Clear(); - CMB_fmode6.Items.Clear(); - - CMB_fmode1.Items.AddRange(Enum.GetNames(typeof(Common.apmmodes))); - CMB_fmode2.Items.AddRange(Enum.GetNames(typeof(Common.apmmodes))); - CMB_fmode3.Items.AddRange(Enum.GetNames(typeof(Common.apmmodes))); - CMB_fmode4.Items.AddRange(Enum.GetNames(typeof(Common.apmmodes))); - CMB_fmode5.Items.AddRange(Enum.GetNames(typeof(Common.apmmodes))); - CMB_fmode6.Items.AddRange(Enum.GetNames(typeof(Common.apmmodes))); - - try - { - CMB_fmode1.Text = Enum.Parse(typeof(Common.apmmodes), MainV2.comPort.param["FLTMODE1"].ToString()).ToString(); - CMB_fmode2.Text = Enum.Parse(typeof(Common.apmmodes), MainV2.comPort.param["FLTMODE2"].ToString()).ToString(); - CMB_fmode3.Text = Enum.Parse(typeof(Common.apmmodes), MainV2.comPort.param["FLTMODE3"].ToString()).ToString(); - CMB_fmode4.Text = Enum.Parse(typeof(Common.apmmodes), MainV2.comPort.param["FLTMODE4"].ToString()).ToString(); - CMB_fmode5.Text = Enum.Parse(typeof(Common.apmmodes), MainV2.comPort.param["FLTMODE5"].ToString()).ToString(); - CMB_fmode6.Text = Common.apmmodes.MANUAL.ToString(); - CMB_fmode6.Enabled = false; - } - catch { } - } - if (MainV2.cs.firmware == MainV2.Firmwares.ArduCopter2) // ac2 - { - CMB_fmode1.Items.Clear(); - CMB_fmode2.Items.Clear(); - CMB_fmode3.Items.Clear(); - CMB_fmode4.Items.Clear(); - CMB_fmode5.Items.Clear(); - CMB_fmode6.Items.Clear(); - - CMB_fmode1.Items.AddRange(Enum.GetNames(typeof(Common.ac2modes))); - CMB_fmode2.Items.AddRange(Enum.GetNames(typeof(Common.ac2modes))); - CMB_fmode3.Items.AddRange(Enum.GetNames(typeof(Common.ac2modes))); - CMB_fmode4.Items.AddRange(Enum.GetNames(typeof(Common.ac2modes))); - CMB_fmode5.Items.AddRange(Enum.GetNames(typeof(Common.ac2modes))); - CMB_fmode6.Items.AddRange(Enum.GetNames(typeof(Common.ac2modes))); - - try - { - CMB_fmode1.Text = Enum.Parse(typeof(Common.ac2modes), MainV2.comPort.param["FLTMODE1"].ToString()).ToString(); - CMB_fmode2.Text = Enum.Parse(typeof(Common.ac2modes), MainV2.comPort.param["FLTMODE2"].ToString()).ToString(); - CMB_fmode3.Text = Enum.Parse(typeof(Common.ac2modes), MainV2.comPort.param["FLTMODE3"].ToString()).ToString(); - CMB_fmode4.Text = Enum.Parse(typeof(Common.ac2modes), MainV2.comPort.param["FLTMODE4"].ToString()).ToString(); - CMB_fmode5.Text = Enum.Parse(typeof(Common.ac2modes), MainV2.comPort.param["FLTMODE5"].ToString()).ToString(); - CMB_fmode6.Text = Enum.Parse(typeof(Common.ac2modes), MainV2.comPort.param["FLTMODE6"].ToString()).ToString(); - CMB_fmode6.Enabled = true; - - int simple = int.Parse(MainV2.comPort.param["SIMPLE"].ToString()); - - CB_simple1.Checked = ((simple >> 0 & 1) == 1); - CB_simple2.Checked = ((simple >> 1 & 1) == 1); - CB_simple3.Checked = ((simple >> 2 & 1) == 1); - CB_simple4.Checked = ((simple >> 3 & 1) == 1); - CB_simple5.Checked = ((simple >> 4 & 1) == 1); - CB_simple6.Checked = ((simple >> 5 & 1) == 1); - } - catch { } - } - } - - if (Tabs.SelectedTab == tabHardware) - { - startup = true; - - if (MainV2.comPort.param["ARSPD_ENABLE"] != null) - CHK_enableairspeed.Checked = MainV2.comPort.param["ARSPD_ENABLE"].ToString() == "1" ? true : false; - - if (MainV2.comPort.param["SONAR_ENABLE"] != null) - CHK_enablesonar.Checked = MainV2.comPort.param["SONAR_ENABLE"].ToString() == "1" ? true : false; - - if (MainV2.comPort.param["MAG_ENABLE"] != null) - CHK_enablecompass.Checked = MainV2.comPort.param["MAG_ENABLE"].ToString() == "1" ? true : false; - - if (MainV2.comPort.param["COMPASS_DEC"] != null) - TXT_declination.Text = (float.Parse(MainV2.comPort.param["COMPASS_DEC"].ToString()) * rad2deg).ToString(); - - if (MainV2.comPort.param["SONAR_TYPE"] != null) - CMB_sonartype.SelectedIndex = int.Parse(MainV2.comPort.param["SONAR_TYPE"].ToString()); - - if (MainV2.comPort.param["FLOW_ENABLE"] != null) - CHK_enableoptflow.Checked = MainV2.comPort.param["FLOW_ENABLE"].ToString() == "1" ? true : false; - - - startup = false; - } - - if (Tabs.SelectedTab == tabBattery) - { - startup = true; - bool not_supported = false; - if (MainV2.comPort.param["BATT_MONITOR"] != null) - { - if (MainV2.comPort.param["BATT_MONITOR"].ToString() != "0.0") - { - CMB_batmontype.SelectedIndex = getIndex(CMB_batmontype,(int)float.Parse(MainV2.comPort.param["BATT_MONITOR"].ToString())); - } - - // ignore language re . vs , - - if (TXT_ampspervolt.Text == (13.6612).ToString()) - { - CMB_batmonsensortype.SelectedIndex = 1; - } - else if (TXT_ampspervolt.Text == (27.3224).ToString()) - { - CMB_batmonsensortype.SelectedIndex = 2; - } - else if (TXT_ampspervolt.Text == (54.64481).ToString()) - { - CMB_batmonsensortype.SelectedIndex = 3; - } - else - { - CMB_batmonsensortype.SelectedIndex = 0; - } - - } - - if (MainV2.comPort.param["BATT_CAPACITY"] != null) - TXT_battcapacity.Text = MainV2.comPort.param["BATT_CAPACITY"].ToString(); - if (MainV2.comPort.param["INPUT_VOLTS"] != null) - TXT_inputvoltage.Text = MainV2.comPort.param["INPUT_VOLTS"].ToString(); - else - not_supported = true; - TXT_voltage.Text = MainV2.cs.battery_voltage.ToString(); - TXT_measuredvoltage.Text = TXT_voltage.Text; - if (MainV2.comPort.param["VOLT_DIVIDER"] != null) - TXT_divider.Text = MainV2.comPort.param["VOLT_DIVIDER"].ToString(); - else - not_supported = true; - if (MainV2.comPort.param["AMP_PER_VOLT"] != null) - TXT_ampspervolt.Text = MainV2.comPort.param["AMP_PER_VOLT"].ToString(); - else - not_supported = true; - if (not_supported) - { - TXT_inputvoltage.Enabled = false; - TXT_measuredvoltage.Enabled = false; - TXT_divider.Enabled = false; - TXT_ampspervolt.Enabled = false; - } - - startup = false; - } - - if (Tabs.SelectedTab == tabArducopter) - { - if (MainV2.cs.firmware == MainV2.Firmwares.ArduPlane) - { - tabArducopter.Enabled = false; - return; - } - } - - if (Tabs.SelectedTab == tabHeli) - { - if (MainV2.comPort.param["GYR_ENABLE"] == null) - { - tabHeli.Enabled = false; - return; - } - startup = true; - try - { - if (MainV2.comPort.param.ContainsKey("H1_ENABLE")) - { - CCPM.Checked = MainV2.comPort.param["H1_ENABLE"].ToString() == "0" ? true : false; - H1_ENABLE.Checked = !CCPM.Checked; - } - - foreach (string value in MainV2.comPort.param.Keys) - { - if (value == "") - continue; - - Control[] control = tabHeli.Controls.Find(value, true); - if (control.Length > 0) - { - if (control[0].GetType() == typeof(TextBox)) - { - TextBox temp = (TextBox)control[0]; - string option = MainV2.comPort.param[value].ToString(); - temp.Text = option; - } - if (control[0].GetType() == typeof(NumericUpDown)) - { - NumericUpDown temp = (NumericUpDown)control[0]; - string option = MainV2.comPort.param[value].ToString(); - temp.Text = option; - } - if (control[0].GetType() == typeof(CheckBox)) - { - CheckBox temp = (CheckBox)control[0]; - string option = MainV2.comPort.param[value].ToString(); - temp.Checked = option == "1" ? true : false; - } - if (control[0].GetType() == typeof(MyTrackBar)) - { - MyTrackBar temp = (MyTrackBar)control[0]; - string option = MainV2.comPort.param[value].ToString(); - temp.Value = int.Parse(option); - } - } - } - - HS1_REV.Checked = MainV2.comPort.param["HS1_REV"].ToString() == "-1"; - HS2_REV.Checked = MainV2.comPort.param["HS2_REV"].ToString() == "-1"; - HS3_REV.Checked = MainV2.comPort.param["HS3_REV"].ToString() == "-1"; - HS4_REV.Checked = MainV2.comPort.param["HS4_REV"].ToString() == "-1"; - - } - catch { } - startup = false; - } - } - - int getIndex(ComboBox ctl, int no) - { - foreach (var item in ctl.Items) - { - int ans = int.Parse(item.ToString().Substring(0, 1)); - - if (ans == no) - return ctl.Items.IndexOf(item); - } - - return -1; - } - - private void BUT_SaveModes_Click(object sender, EventArgs e) - { - try - { - if (MainV2.cs.firmware == MainV2.Firmwares.ArduPlane) // APM - { - MainV2.comPort.setParam("FLTMODE1", (float)(int)Enum.Parse(typeof(Common.apmmodes), CMB_fmode1.Text)); - MainV2.comPort.setParam("FLTMODE2", (float)(int)Enum.Parse(typeof(Common.apmmodes), CMB_fmode2.Text)); - MainV2.comPort.setParam("FLTMODE3", (float)(int)Enum.Parse(typeof(Common.apmmodes), CMB_fmode3.Text)); - MainV2.comPort.setParam("FLTMODE4", (float)(int)Enum.Parse(typeof(Common.apmmodes), CMB_fmode4.Text)); - MainV2.comPort.setParam("FLTMODE5", (float)(int)Enum.Parse(typeof(Common.apmmodes), CMB_fmode5.Text)); - MainV2.comPort.setParam("FLTMODE6", (float)(int)Enum.Parse(typeof(Common.apmmodes), CMB_fmode6.Text)); - } - if (MainV2.cs.firmware == MainV2.Firmwares.ArduCopter2) // ac2 - { - MainV2.comPort.setParam("FLTMODE1", (float)(int)Enum.Parse(typeof(Common.ac2modes), CMB_fmode1.Text)); - MainV2.comPort.setParam("FLTMODE2", (float)(int)Enum.Parse(typeof(Common.ac2modes), CMB_fmode2.Text)); - MainV2.comPort.setParam("FLTMODE3", (float)(int)Enum.Parse(typeof(Common.ac2modes), CMB_fmode3.Text)); - MainV2.comPort.setParam("FLTMODE4", (float)(int)Enum.Parse(typeof(Common.ac2modes), CMB_fmode4.Text)); - MainV2.comPort.setParam("FLTMODE5", (float)(int)Enum.Parse(typeof(Common.ac2modes), CMB_fmode5.Text)); - MainV2.comPort.setParam("FLTMODE6", (float)(int)Enum.Parse(typeof(Common.ac2modes), CMB_fmode6.Text)); - - float value = (float)(CB_simple1.Checked ? (int)SimpleMode.Simple1 : 0) + (CB_simple2.Checked ? (int)SimpleMode.Simple2 : 0) + (CB_simple3.Checked ? (int)SimpleMode.Simple3 : 0) - + (CB_simple4.Checked ? (int)SimpleMode.Simple4 : 0) + (CB_simple5.Checked ? (int)SimpleMode.Simple5 : 0) + (CB_simple6.Checked ? (int)SimpleMode.Simple6 : 0); - if (MainV2.comPort.param.ContainsKey("SIMPLE")) - MainV2.comPort.setParam("SIMPLE", value); - } - } - catch { CustomMessageBox.Show("Failed to set Flight modes"); } - BUT_SaveModes.Text = "Complete"; - } - - [Flags] - public enum SimpleMode - { - None = 0, - Simple1 = 1, - Simple2 = 2, - Simple3 = 4, - Simple4 = 8, - Simple5 = 16, - Simple6 = 32, - } - - private void TXT_declination_Validating(object sender, CancelEventArgs e) - { - float ans = 0; - e.Cancel = !float.TryParse(TXT_declination.Text, out ans); - } - - private void TXT_declination_Validated(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (MainV2.comPort.param["COMPASS_DEC"] == null) - { - CustomMessageBox.Show("Not Available"); - } - else - { - float dec = 0.0f; - try - { - string declination = TXT_declination.Text; - float.TryParse(declination, out dec); - float deg = (float)((int)dec); - float mins = (dec - deg); - if (dec > 0) - { - dec += ((mins) / 60.0f); - } - else - { - dec -= ((mins) / 60.0f); - } - } - catch { CustomMessageBox.Show("Invalid input!"); return; } - - TXT_declination.Text = dec.ToString(); - - MainV2.comPort.setParam("COMPASS_DEC", dec * deg2rad); - } - } - catch { CustomMessageBox.Show("Set COMPASS_DEC Failed"); } - } - - - private void CHK_enablecompass_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (MainV2.comPort.param["MAG_ENABLE"] == null) - { - CustomMessageBox.Show("Not Available"); - } - else - { - MainV2.comPort.setParam("MAG_ENABLE", ((CheckBox)sender).Checked == true ? 1 : 0); - } - } - catch { CustomMessageBox.Show("Set MAG_ENABLE Failed"); } - } - - //((CheckBox)sender).Checked = !((CheckBox)sender).Checked; - - - private void CHK_enablesonar_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (MainV2.comPort.param["SONAR_ENABLE"] == null) - { - CustomMessageBox.Show("Not Available"); - } - else - { - MainV2.comPort.setParam("SONAR_ENABLE", ((CheckBox)sender).Checked == true ? 1 : 0); - } - } - catch { CustomMessageBox.Show("Set SONAR_ENABLE Failed"); } - } - - private void CHK_enableairspeed_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (MainV2.comPort.param["ARSPD_ENABLE"] == null) - { - CustomMessageBox.Show("Not Available on " + MainV2.cs.firmware.ToString()); - } - else - { - MainV2.comPort.setParam("ARSPD_ENABLE", ((CheckBox)sender).Checked == true ? 1 : 0); - } - } - catch { CustomMessageBox.Show("Set ARSPD_ENABLE Failed"); } - } - private void CHK_enablebattmon_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (((CheckBox)sender).Checked == false) - { - CMB_batmontype.SelectedIndex = 0; - } - else - { - if (CMB_batmontype.SelectedIndex <= 0) - CMB_batmontype.SelectedIndex = 1; - } - } - catch { CustomMessageBox.Show("Set BATT_MONITOR Failed"); } - } - private void TXT_battcapacity_Validating(object sender, CancelEventArgs e) - { - float ans = 0; - e.Cancel = !float.TryParse(TXT_battcapacity.Text, out ans); - } - private void TXT_battcapacity_Validated(object sender, EventArgs e) - { - if (startup || ((TextBox)sender).Enabled == false) - return; - try - { - if (MainV2.comPort.param["BATT_CAPACITY"] == null) - { - CustomMessageBox.Show("Not Available"); - } - else - { - MainV2.comPort.setParam("BATT_CAPACITY", float.Parse(TXT_battcapacity.Text)); - } - } - catch { CustomMessageBox.Show("Set BATT_CAPACITY Failed"); } - } - private void CMB_batmontype_SelectedIndexChanged(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (MainV2.comPort.param["BATT_MONITOR"] == null) - { - CustomMessageBox.Show("Not Available"); - } - else - { - int selection = int.Parse(CMB_batmontype.Text.Substring(0,1)); - - CMB_batmonsensortype.Enabled = true; - - TXT_voltage.Enabled = false; - - if (selection == 0) - { - CMB_batmonsensortype.Enabled = false; - groupBox4.Enabled = false; - } - else if (selection == 4) - { - CMB_batmonsensortype.Enabled = true; - groupBox4.Enabled = true; - TXT_ampspervolt.Enabled = true; - } - else if (selection == 3) - { - groupBox4.Enabled = true; - CMB_batmonsensortype.Enabled = false; - TXT_ampspervolt.Enabled = false; - TXT_inputvoltage.Enabled = true; - TXT_measuredvoltage.Enabled = true; - TXT_divider.Enabled = true; - } - - MainV2.comPort.setParam("BATT_MONITOR", selection); - } - } - catch { CustomMessageBox.Show("Set BATT_MONITOR Failed"); } - } - private void TXT_inputvoltage_Validating(object sender, CancelEventArgs e) - { - float ans = 0; - e.Cancel = !float.TryParse(TXT_inputvoltage.Text, out ans); - } - private void TXT_inputvoltage_Validated(object sender, EventArgs e) - { - if (startup || ((TextBox)sender).Enabled == false) - return; - try - { - if (MainV2.comPort.param["INPUT_VOLTS"] == null) - { - CustomMessageBox.Show("Not Available"); - } - else - { - MainV2.comPort.setParam("INPUT_VOLTS", float.Parse(TXT_inputvoltage.Text)); - } - } - catch { CustomMessageBox.Show("Set INPUT_VOLTS Failed"); } - } - private void TXT_measuredvoltage_Validating(object sender, CancelEventArgs e) - { - float ans = 0; - e.Cancel = !float.TryParse(TXT_measuredvoltage.Text, out ans); - } - private void TXT_measuredvoltage_Validated(object sender, EventArgs e) - { - if (startup || ((TextBox)sender).Enabled == false) - return; - try - { - float measuredvoltage = float.Parse(TXT_measuredvoltage.Text); - float voltage = float.Parse(TXT_voltage.Text); - float divider = float.Parse(TXT_divider.Text); - if (voltage == 0) - return; - float new_divider = (measuredvoltage * divider) / voltage; - TXT_divider.Text = new_divider.ToString(); - } - catch { CustomMessageBox.Show("Invalid number entered"); return; } - - try - { - if (MainV2.comPort.param["VOLT_DIVIDER"] == null) - { - CustomMessageBox.Show("Not Available"); - } - else - { - MainV2.comPort.setParam("VOLT_DIVIDER", float.Parse(TXT_divider.Text)); - } - } - catch { CustomMessageBox.Show("Set VOLT_DIVIDER Failed"); } - } - private void TXT_divider_Validating(object sender, CancelEventArgs e) - { - float ans = 0; - e.Cancel = !float.TryParse(TXT_divider.Text, out ans); - } - private void TXT_divider_Validated(object sender, EventArgs e) - { - if (startup || ((TextBox)sender).Enabled == false) - return; - try - { - if (MainV2.comPort.param["VOLT_DIVIDER"] == null) - { - CustomMessageBox.Show("Not Available"); - } - else - { - MainV2.comPort.setParam("VOLT_DIVIDER", float.Parse(TXT_divider.Text)); - } - } - catch { CustomMessageBox.Show("Set VOLT_DIVIDER Failed"); } - } - private void TXT_ampspervolt_Validating(object sender, CancelEventArgs e) - { - float ans = 0; - e.Cancel = !float.TryParse(TXT_ampspervolt.Text, out ans); - } - private void TXT_ampspervolt_Validated(object sender, EventArgs e) - { - if (startup || ((TextBox)sender).Enabled == false) - return; - try - { - if (MainV2.comPort.param["AMP_PER_VOLT"] == null) - { - CustomMessageBox.Show("Not Available"); - } - else - { - MainV2.comPort.setParam("AMP_PER_VOLT", float.Parse(TXT_ampspervolt.Text)); - } - } - catch { CustomMessageBox.Show("Set AMP_PER_VOLT Failed"); } - } - - private void BUT_reset_Click(object sender, EventArgs e) - { - try - { - MainV2.comPort.setParam("SYSID_SW_MREV", UInt16.MaxValue); - } - catch { CustomMessageBox.Show("Set SYSID_SW_MREV Failed"); return; } - - MainV2.giveComport = true; - - ICommsSerial comPortT = MainV2.comPort.BaseStream; - - comPortT.DtrEnable = false; - - if (comPortT.IsOpen) - comPortT.Close(); - - System.Threading.Thread.Sleep(200); - - try - { - comPortT.DtrEnable = true; - comPortT.Open(); - } - catch (Exception ex) { MainV2.giveComport = false; CustomMessageBox.Show("Invalid Comport Settings : " + ex.Message); return; } - - BUT_reset.Text = "Rebooting (17 sec)"; - BUT_reset.Refresh(); - Application.DoEvents(); - - Sleep(17000, comPortT); // wait for boot/reset - - comPortT.DtrEnable = false; - - Sleep(200, comPortT); - - comPortT.DtrEnable = true; - - Sleep(200, comPortT); - - comPortT.DtrEnable = false; - - comPortT.Close(); - - MainV2.giveComport = false; - try - { - MainV2.comPort.Open(true); - } - catch - { - CustomMessageBox.Show("Failed to re-connect : Please try again"); - this.Close(); - } - - BUT_reset.Text = "Please goto next tab"; - } - - void Sleep(int ms, ICommsSerial comPortT) - { - DateTime start = DateTime.Now; - Console.WriteLine("sleep in"); - while (start.AddMilliseconds(ms) > DateTime.Now) - { - while (comPortT.BytesToRead > 0) - { - Console.Write((char)comPortT.ReadByte()); - } - System.Threading.Thread.Sleep(1); - } - Console.WriteLine("sleep out"); - } - - private void pictureBoxQuad_Click(object sender, EventArgs e) - { - try - { - MainV2.comPort.setParam("FRAME", 0f); - CustomMessageBox.Show("Set to +"); - } - catch { CustomMessageBox.Show("Set frame failed"); } - } - - private void pictureBoxQuadX_Click(object sender, EventArgs e) - { - try - { - MainV2.comPort.setParam("FRAME", 1f); - CustomMessageBox.Show("Set to x"); - } - catch { CustomMessageBox.Show("Set frame failed"); } - } - - private void Setup_Load(object sender, EventArgs e) - { - if (!MainV2.comPort.BaseStream.IsOpen) - { - CustomMessageBox.Show("Please Connect First"); - this.Close(); - } - else - { - tabControl1_SelectedIndexChanged(null, new EventArgs()); - } - } - - private void TXT_srvpos1_Validating(object sender, CancelEventArgs e) - { - if (startup || this.Disposing) - return; - int test = 0; - if (!int.TryParse(((TextBox)sender).Text, out test)) - { - e.Cancel = true; - } - - Gservoloc.Value0 = test; - - try - { - MainV2.comPort.setParam("HSV_MAN", 1); // randy request - MainV2.comPort.setParam(((TextBox)sender).Name, test); - System.Threading.Thread.Sleep(100); - MainV2.comPort.setParam("HSV_MAN", 0); // randy request - last - - } - catch { CustomMessageBox.Show("Set " + ((TextBox)sender).Name + " failed"); } - } - - private void TXT_srvpos2_Validating(object sender, CancelEventArgs e) - { - if (startup || this.Disposing) - return; - int test = 0; - if (!int.TryParse(((TextBox)sender).Text, out test)) - { - e.Cancel = true; - } - - Gservoloc.Value1 = test; - - try - { - MainV2.comPort.setParam("HSV_MAN", 1); // randy request - MainV2.comPort.setParam(((TextBox)sender).Name, test); - System.Threading.Thread.Sleep(100); - MainV2.comPort.setParam("HSV_MAN", 0); // randy request - last - } - catch { CustomMessageBox.Show("Set " + ((TextBox)sender).Name + " failed"); } - } - - private void TXT_srvpos3_Validating(object sender, CancelEventArgs e) - { - if (startup || this.Disposing) - return; - int test = 0; - if (!int.TryParse(((TextBox)sender).Text, out test)) - { - e.Cancel = true; - } - - Gservoloc.Value2 = test; - - try - { - MainV2.comPort.setParam("HSV_MAN", 1); // randy request - MainV2.comPort.setParam(((TextBox)sender).Name, test); - System.Threading.Thread.Sleep(100); - MainV2.comPort.setParam("HSV_MAN", 0); // randy request - last - } - catch { CustomMessageBox.Show("Set " + ((TextBox)sender).Name + " failed"); } - } - - private void BUT_0collective_Click(object sender, EventArgs e) - { - CustomMessageBox.Show("Make sure your blades are at 0 degrees"); - - try - { - - MainV2.comPort.setParam("COL_MID", MainV2.cs.ch3in); - - COL_MID.Text = MainV2.comPort.param["COL_MID"].ToString(); - } - catch { CustomMessageBox.Show("Set COL_MID_ failed"); } - } - - private void HS1_REV_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - MainV2.comPort.setParam(((CheckBox)sender).Name, ((CheckBox)sender).Checked == false ? 1.0f : -1.0f); - } - - private void HS2_REV_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - MainV2.comPort.setParam(((CheckBox)sender).Name, ((CheckBox)sender).Checked == false ? 1.0f : -1.0f); - } - - private void HS3_REV_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - MainV2.comPort.setParam(((CheckBox)sender).Name, ((CheckBox)sender).Checked == false ? 1.0f : -1.0f); - } - - private void HS4_REV_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - MainV2.comPort.setParam(((CheckBox)sender).Name, ((CheckBox)sender).Checked == false ? 1.0f : -1.0f); - HS4.reverse = !HS4.reverse; - } - - private void HS1_TRIM_ValueChanged(object sender, EventArgs e) - { - if (startup) - return; - MainV2.comPort.setParam(((NumericUpDown)sender).Name, (float)((NumericUpDown)sender).Value); - } - - private void HS2_TRIM_ValueChanged(object sender, EventArgs e) - { - if (startup) - return; - MainV2.comPort.setParam(((NumericUpDown)sender).Name, (float)((NumericUpDown)sender).Value); - } - - private void HS3_TRIM_ValueChanged(object sender, EventArgs e) - { - if (startup) - return; - MainV2.comPort.setParam(((NumericUpDown)sender).Name, (float)((NumericUpDown)sender).Value); - } - - private void HS4_TRIM_ValueChanged(object sender, EventArgs e) - { - if (startup) - return; - MainV2.comPort.setParam(((NumericUpDown)sender).Name, (float)((NumericUpDown)sender).Value); - } - - private void ROL_MAX__Validating(object sender, CancelEventArgs e) - { - if (startup || this.Disposing) - return; - int test = 0; - if (!int.TryParse(((TextBox)sender).Text, out test)) - { - e.Cancel = true; - } - - MainV2.comPort.setParam(((TextBox)sender).Name, test); - } - - private void PIT_MAX__Validating(object sender, CancelEventArgs e) - { - if (startup || this.Disposing) - return; - int test = 0; - if (!int.TryParse(((TextBox)sender).Text, out test)) - { - e.Cancel = true; - } - - MainV2.comPort.setParam(((TextBox)sender).Name, test); - } - - private void GYR_GAIN__Validating(object sender, CancelEventArgs e) - { - if (startup || this.Disposing || ((TextBox)sender).Enabled == false) - return; - int test = 0; - if (!int.TryParse(((TextBox)sender).Text, out test)) - { - e.Cancel = true; - } - - try - { - MainV2.comPort.setParam(((TextBox)sender).Name, test); - } - catch { CustomMessageBox.Show("Failed to set Gyro Gain"); } - } - - private void GYR_ENABLE__CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - MainV2.comPort.setParam(((CheckBox)sender).Name, ((CheckBox)sender).Checked == true ? 1.0f : 0.0f); - } - - private void BUT_levelac2_Click(object sender, EventArgs e) - { - try - { -#if MAVLINK10 - int fixme; // needs to be accel only - MainV2.comPort.doCommand(MAVLink.MAV_CMD.PREFLIGHT_CALIBRATION,1,1,1,1,1,1,1); -#else - MainV2.comPort.doAction(MAVLink.MAV_ACTION.MAV_ACTION_CALIBRATE_ACC); -#endif - - BUT_levelac2.Text = "Complete"; - } - catch - { - CustomMessageBox.Show("Failed to level : ac2 2.0.37+ is required"); - } - } - - private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - { - try - { - //System.Diagnostics.Process.Start("http://www.ngdc.noaa.gov/geomagmodels/Declination.jsp"); - System.Diagnostics.Process.Start("http://www.magnetic-declination.com/"); - } - catch { CustomMessageBox.Show("Webpage open failed... do you have a virus?\nhttp://www.magnetic-declination.com/"); } - } - - void reverseChannel(string name, bool normalreverse, Control progressbar) - { - if (normalreverse == true) - { - ((HorizontalProgressBar2)progressbar).reverse = true; - ((HorizontalProgressBar2)progressbar).BackgroundColor = Color.FromArgb(148, 193, 31); - ((HorizontalProgressBar2)progressbar).ValueColor = Color.FromArgb(0x43, 0x44, 0x45); - } - else - { - ((HorizontalProgressBar2)progressbar).reverse = false; - ((HorizontalProgressBar2)progressbar).BackgroundColor = Color.FromArgb(0x43, 0x44, 0x45); - ((HorizontalProgressBar2)progressbar).ValueColor = Color.FromArgb(148, 193, 31); - } - - if (startup) - return; - if (MainV2.comPort.param["SWITCH_ENABLE"] != null && (float)MainV2.comPort.param["SWITCH_ENABLE"] == 1) - { - try - { - MainV2.comPort.setParam("SWITCH_ENABLE", 0); - CustomMessageBox.Show("Disabled Dip Switchs"); - } - catch { CustomMessageBox.Show("Error Disableing Dip Switch"); } - } - try - { - int i = normalreverse == false ? 1 : -1; - MainV2.comPort.setParam(name, i); - } - catch { CustomMessageBox.Show("Error Reversing"); } - } - - private void CHK_revch1_CheckedChanged(object sender, EventArgs e) - { - reverseChannel("RC1_REV", ((CheckBox)sender).Checked, BARroll); - } - - private void CHK_revch2_CheckedChanged(object sender, EventArgs e) - { - reverseChannel("RC2_REV", ((CheckBox)sender).Checked, BARpitch); - } - - private void CHK_revch3_CheckedChanged(object sender, EventArgs e) - { - reverseChannel("RC3_REV", ((CheckBox)sender).Checked, BARthrottle); - } - - private void CHK_revch4_CheckedChanged(object sender, EventArgs e) - { - reverseChannel("RC4_REV", ((CheckBox)sender).Checked, BARyaw); - } - - private void BUT_swash_manual_Click(object sender, EventArgs e) - { - try - { - if (MainV2.comPort.param["HSV_MAN"].ToString() == "1") - { - MainV2.comPort.setParam("COL_MIN", int.Parse(COL_MIN.Text)); - MainV2.comPort.setParam("COL_MAX", int.Parse(COL_MAX.Text)); - MainV2.comPort.setParam("HSV_MAN", 0); // randy request - last - BUT_swash_manual.Text = "Manual"; - - COL_MAX.Enabled = false; - COL_MID.Enabled = false; - COL_MIN.Enabled = false; - BUT_0collective.Enabled = false; - } - else - { - COL_MAX.Text = "1500"; - COL_MIN.Text = "1500"; - MainV2.comPort.setParam("HSV_MAN", 1); // randy request - BUT_swash_manual.Text = "Save"; - - COL_MAX.Enabled = true; - COL_MID.Enabled = true; - COL_MIN.Enabled = true; - BUT_0collective.Enabled = true; - } - } - catch { CustomMessageBox.Show("Failed to set HSV_MAN"); } - } - - private void BUT_HS4save_Click(object sender, EventArgs e) - { - try - { - if (MainV2.comPort.param["HSV_MAN"].ToString() == "1") - { - MainV2.comPort.setParam("HS4_MIN", int.Parse(HS4_MIN.Text)); - MainV2.comPort.setParam("HS4_MAX", int.Parse(HS4_MAX.Text)); - MainV2.comPort.setParam("HSV_MAN", 0); // randy request - last - BUT_HS4save.Text = "Manual"; - - HS4_MAX.Enabled = false; - HS4_MIN.Enabled = false; - } - else - { - HS4_MIN.Text = "1500"; - HS4_MAX.Text = "1500"; - MainV2.comPort.setParam("HSV_MAN", 1); // randy request - BUT_HS4save.Text = "Save"; - - - HS4_MAX.Enabled = true; - HS4_MIN.Enabled = true; - } - } - catch { CustomMessageBox.Show("Failed to set HSV_MAN"); } - } - - private void tabHeli_Click(object sender, EventArgs e) - { - - } - - private void HS4_Paint(object sender, PaintEventArgs e) - { - try - { - if (int.Parse(HS4_MIN.Text) > HS4.minline) - HS4_MIN.Text = HS4.minline.ToString(); - if (int.Parse(HS4_MAX.Text) < HS4.maxline) - HS4_MAX.Text = HS4.maxline.ToString(); - } - catch { } - } - - private void HS3_Paint(object sender, PaintEventArgs e) - { - try - { - if (int.Parse(COL_MIN.Text) > HS3.minline) - COL_MIN.Text = HS3.minline.ToString(); - if (int.Parse(COL_MAX.Text) < HS3.maxline) - COL_MAX.Text = HS3.maxline.ToString(); - } - catch { } - } - - private void COL_MAX__Enter(object sender, EventArgs e) - { - inpwmdetect = true; - } - - private void COL_MIN__Enter(object sender, EventArgs e) - { - inpwmdetect = true; - } - - private void COL_MAX__Leave(object sender, EventArgs e) - { - inpwmdetect = false; - } - - private void COL_MIN__Leave(object sender, EventArgs e) - { - inpwmdetect = false; - } - - private void HS4_MIN_Enter(object sender, EventArgs e) - { - inpwmdetect = true; - } - - private void HS4_MIN_Leave(object sender, EventArgs e) - { - inpwmdetect = false; - } - - private void HS4_MAX_Enter(object sender, EventArgs e) - { - inpwmdetect = true; - } - - private void HS4_MAX_Leave(object sender, EventArgs e) - { - inpwmdetect = false; - } - - private void PWM_Validating(object sender, CancelEventArgs e) - { - Control temp = (Control)(sender); - - if (int.Parse(temp.Text) < 900) - temp.Text = "900"; - if (int.Parse(temp.Text) > 2100) - temp.Text = "2100"; - } - - private void Setup_FormClosing(object sender, FormClosingEventArgs e) - { - timer.Stop(); - timer.Dispose(); - - Tabs.SelectedIndex = 0; - - // mono runs validation on all controls on exit. try and skip it - startup = true; - } - - private void CHK_enableoptflow_CheckedChanged(object sender, EventArgs e) - { - - if (startup) - return; - try - { - if (MainV2.comPort.param["FLOW_ENABLE"] == null) - { - CustomMessageBox.Show("Not Available on " + MainV2.cs.firmware.ToString()); - } - else - { - MainV2.comPort.setParam("FLOW_ENABLE", ((CheckBox)sender).Checked == true ? 1 : 0); - } - } - catch { CustomMessageBox.Show("Set FLOW_ENABLE Failed"); } - } - - private void CMB_sonartype_SelectedIndexChanged(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (MainV2.comPort.param["SONAR_TYPE"] == null) - { - CustomMessageBox.Show("Not Available on " + MainV2.cs.firmware.ToString()); - } - else - { - MainV2.comPort.setParam("SONAR_TYPE", ((ComboBox)sender).SelectedIndex); - } - } - catch { CustomMessageBox.Show("Set SONAR_TYPE Failed"); } - } - - private void CHK_mixmode_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (MainV2.comPort.param["ELEVON_MIXING"] == null) - { - CustomMessageBox.Show("Not Available on " + MainV2.cs.firmware.ToString()); - } - else - { - MainV2.comPort.setParam("ELEVON_MIXING", ((CheckBox)sender).Checked == true ? 1 : 0); - } - } - catch { CustomMessageBox.Show("Set ELEVON_MIXING Failed"); } - } - - private void CHK_elevonrev_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (MainV2.comPort.param["ELEVON_REVERSE"] == null) - { - CustomMessageBox.Show("Not Available on " + MainV2.cs.firmware.ToString()); - } - else - { - MainV2.comPort.setParam("ELEVON_REVERSE", ((CheckBox)sender).Checked == true ? 1 : 0); - } - } - catch { CustomMessageBox.Show("Set ELEVON_REVERSE Failed"); } - } - - private void CHK_elevonch1rev_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (MainV2.comPort.param["ELEVON_CH1_REV"] == null) - { - CustomMessageBox.Show("Not Available on " + MainV2.cs.firmware.ToString()); - } - else - { - MainV2.comPort.setParam("ELEVON_CH1_REV", ((CheckBox)sender).Checked == true ? 1 : 0); - } - } - catch { CustomMessageBox.Show("Set ELEVON_CH1_REV Failed"); } - } - - private void CHK_elevonch2rev_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (MainV2.comPort.param["ELEVON_CH2_REV"] == null) - { - CustomMessageBox.Show("Not Available on " + MainV2.cs.firmware.ToString()); - } - else - { - MainV2.comPort.setParam("ELEVON_CH2_REV", ((CheckBox)sender).Checked == true ? 1 : 0); - } - } - catch { CustomMessageBox.Show("Set ELEVON_CH2_REV Failed"); } - } - - private void CMB_batmonsensortype_SelectedIndexChanged(object sender, EventArgs e) - { - int selection = int.Parse(CMB_batmonsensortype.Text.Substring(0,1)); - - - if (selection == 1) // atto 45 - { - float maxvolt = 13.6f; - float maxamps = 44.7f; - float mvpervolt = 242.3f; - float mvperamp = 73.20f; - - // ~ 3.295v - float topvolt = (maxvolt * mvpervolt) / 1000; - // ~ 3.294v - float topamps = (maxamps * mvperamp) / 1000; - - TXT_divider.Text = (maxvolt / topvolt).ToString(); - TXT_ampspervolt.Text = (maxamps / topamps).ToString(); - } - else if (selection == 2) // atto 90 - { - float maxvolt = 50f; - float maxamps = 89.4f; - float mvpervolt = 63.69f; - float mvperamp = 36.60f; - - float topvolt = (maxvolt * mvpervolt) / 1000; - float topamps = (maxamps * mvperamp) / 1000; - - TXT_divider.Text = (maxvolt / topvolt).ToString(); - TXT_ampspervolt.Text = (maxamps / topamps).ToString(); - } - else if (selection == 3) // atto 180 - { - float maxvolt = 50f; - float maxamps = 178.8f; - float mvpervolt = 63.69f; - float mvperamp = 18.30f; - - float topvolt = (maxvolt * mvpervolt) / 1000; - float topamps = (maxamps * mvperamp) / 1000; - - TXT_divider.Text = (maxvolt / topvolt).ToString(); - TXT_ampspervolt.Text = (maxamps / topamps).ToString(); - } - - // enable to update - TXT_divider.Enabled = true; - TXT_ampspervolt.Enabled = true; - TXT_measuredvoltage.Enabled = true; - TXT_inputvoltage.Enabled = true; - - // update - TXT_ampspervolt_Validated(TXT_ampspervolt, null); - - TXT_divider_Validated(TXT_divider, null); - - // disable - TXT_divider.Enabled = false; - TXT_ampspervolt.Enabled = false; - TXT_measuredvoltage.Enabled = false; - - //reenable if needed - if (selection == 0) - { - TXT_divider.Enabled = true; - TXT_ampspervolt.Enabled = true; - TXT_measuredvoltage.Enabled = true; - TXT_inputvoltage.Enabled = true; - } - } - - private void H1_ENABLE_CheckedChanged(object sender, EventArgs e) - { - if (startup) - return; - try - { - if (MainV2.comPort.param["H1_ENABLE"] == null) - { - CustomMessageBox.Show("Not Available on " + MainV2.cs.firmware.ToString()); - } - else - { - MainV2.comPort.setParam("H1_ENABLE", ((RadioButton)sender).Checked == true ? 1 : 0); - } - } - catch { CustomMessageBox.Show("Set H1_ENABLE Failed"); } - } - - private void BUT_MagCalibration_Click(object sender, EventArgs e) - { - if (DialogResult.Yes == CustomMessageBox.Show("Use live data, or a log\n\nYes for Live data", "Mag Calibration", MessageBoxButtons.YesNo)) - { - List> data = new List>(); - - byte backupratesens = MainV2.cs.ratesensors; - - MainV2.cs.ratesensors = 10; - - MainV2.comPort.requestDatastream((byte)MAVLink.MAV_DATA_STREAM.MAV_DATA_STREAM_RAW_SENSORS, MainV2.cs.ratesensors); // mag captures at 10 hz - - CustomMessageBox.Show("Data will be collected for 30 seconds, Please click ok and move the apm around all axises"); - - DateTime deadline = DateTime.Now.AddSeconds(30); - - float oldmx = 0; - float oldmy = 0; - float oldmz = 0; - - while (deadline > DateTime.Now) - { - Application.DoEvents(); - - if (oldmx != MainV2.cs.mx && - oldmy != MainV2.cs.my && - oldmz != MainV2.cs.mz) - { - data.Add(new Tuple( - MainV2.cs.mx - (float)MainV2.cs.mag_ofs_x, - MainV2.cs.my - (float)MainV2.cs.mag_ofs_y, - MainV2.cs.mz - (float)MainV2.cs.mag_ofs_z)); - - oldmx = MainV2.cs.mx; - oldmy = MainV2.cs.my; - oldmz = MainV2.cs.mz; - } - } - - MainV2.cs.ratesensors = backupratesens; - - if (data.Count < 10) - { - CustomMessageBox.Show("Log does not contain enough data"); - return; - } - - double[] ans = MagCalib.LeastSq(data); - - MagCalib.SaveOffsets(ans); - - } - else - { - string minthro = "30"; - Common.InputBox("Min Throttle", "Use only data above this throttle percent.", ref minthro); - - int ans = 0; - int.TryParse(minthro, out ans); - - MagCalib.ProcessLog(ans); - } - } - - private void BUT_levelplane_Click(object sender, EventArgs e) - { - try - { - MainV2.comPort.setParam("MANUAL_LEVEL",1); - -#if MAVLINK10 - int fixme; // needs to be accel only - MainV2.comPort.doCommand(MAVLink.MAV_CMD.PREFLIGHT_CALIBRATION,1,1,1,1,1,1,1); -#else - MainV2.comPort.doAction(MAVLink.MAV_ACTION.MAV_ACTION_CALIBRATE_ACC); -#endif - BUT_levelplane.Text = "Complete"; - } - catch - { - CustomMessageBox.Show("Failed to level : AP 2.32+ is required"); - } - } - } -} \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/Setup/Setup.es-ES.resx b/Tools/ArdupilotMegaPlanner/Setup/Setup.es-ES.resx deleted file mode 100644 index 70ad73f1af..0000000000 --- a/Tools/ArdupilotMegaPlanner/Setup/Setup.es-ES.resx +++ /dev/null @@ -1,315 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 180 - - - Manual - - - PWM 0 - 1230 - - - PWM 1621 - 1749 - - - Modo actual: - - - Habilitar el flujo óptico - - - NOTA: Las imágenes son sólo para su presentación - - - Modo Simple - - - PWM 1750 + - - - Elevons CH1 Rev - - - PWM Actual: - - - APMSetup - - - Swash-Servo posición - - - Activar Compas - - - Modo Simple - - - ArduCopter2 - - - Modo Simple - - - Ajuste Chásis (+ or x) - - - 60 - - - 1 - - - Modo Simple - - - Modo Simple - - - 2 - - - Modos - - - Modo Simple - - - 3 - - - Reset - - - -60 - - - Superior - - - Swash de Viaje - - - Manual - - - Timón de Viaje - - - Calibración del sensor de voltaje:Para calibrar el sensor, use un multímetro para medir la tensión que sale de la CES de la batería-la eliminación del circuito (se trata de cables negro y rojo en el cable de tres hilos que suministra energía a la placa APM).Luego reste 0,3 V de ese valor y entrar en él en el campo # 1 a la izquierda. - - - Calibrar Radio - - - Max - - - Modo de Vuelo 2 - - - Alabeo Max - - - Modo de Vuelo 3 - - - Cabeceo Max - - - por ejemplo, en grados 2 ° 3 'W es -2,3 - - - Modo de Vuelo 1 - - - Nivel tu quad para establecer las compensaciones por defecto acel - - - Modo de Vuelo 6 - - - Capacidad - - - Declinación - - - Activar Sonar - - - PWM 1231 - 1360 - - - Entrada Radio - - - Calibración - - - 1500 - - - Modo de Vuelo 4 - - - Modo de Vuelo 5 - - - Gyro - - - PWM 1361 - 1490 - - - Hardware - - - PWM 1491 - 1620 - - - Sitio Web Declinación - - - 1500 - - - Batería - - - Cero - - - Activar Airspeed - - - 4500 - - - Restablecer los Ajustes de hardware APM - - - 1000 - - - Monitor - - \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/Setup/Setup.fr.resx b/Tools/ArdupilotMegaPlanner/Setup/Setup.fr.resx deleted file mode 100644 index 1bd274beea..0000000000 --- a/Tools/ArdupilotMegaPlanner/Setup/Setup.fr.resx +++ /dev/null @@ -1,312 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 180 - - - Manuel - - - PWM 0 - 1230 - - - PWM 1621 - 1749 - - - Mode Courant: - - - Activ. capteur optique - - - NOTE: images pou presentation uniquement. Fonctionnel pour Hex, Octo etc... - - - Mode Simple - - - PWM 1750 + - - - Elevons CH1 Rev - - - PWM Actuel: - - - APMSetup - - - Swash-Servo position - - - Activ. Boussole - - - Mode Simple - - - ArduCopter2 - - - Mode Simple - - - type de châssis (+ ou x) - - - 60 - - - 1 - - - Mode Simple - - - Mode Simple - - - 2 - - - Modes - - - Mode Simple - - - 3 - - - Réinit. - - - -60 - - - Haut - - - Mouvement Swash - - - Manuel - - - Deplac. du Gouvernail - - - Calibration du capteur de Voltage.1. Mesurer le voltage sur APM et inscrivez-le dans la boite ci-bas.2. Mesurer le voltage de la batterie et inscrivez-le dans la boite ci-bas.3. Inscrire les ampères par volt de la documentation du capteur de courant ci-bas - - - Calibrer Radio - - - Max - - - Mode de vol 2 - - - Roulis Max - - - Mode de vol 2 - - - Tangage Max - - - en degrés eg 2° 3' W est -2.3 - - - Mode de vol 1 - - - Niveler l'apareil pour copensation des accels - - - Mode de vol 6 - - - Capacité - - - Déclination - - - Activer Sonar - - - PWM 1231 - 1360 - - - Entrée Radio - - - 1500 - - - Mode de vol 4 - - - Mode de vol 5 - - - Gyro - - - PWM 1361 - 1490 - - - Matériel - - - PWM 1491 - 1620 - - - Site Web Déclination - - - 1500 - - - Batterie - - - Zéro - - - Activ. Airspeed - - - 4500 - - - RàZ tout parametres du APM - - - 1000 - - - Moniteur - - \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/Setup/Setup.it-IT.resx b/Tools/ArdupilotMegaPlanner/Setup/Setup.it-IT.resx deleted file mode 100644 index 2b2636c813..0000000000 --- a/Tools/ArdupilotMegaPlanner/Setup/Setup.it-IT.resx +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 180 - - - Manuale - - - PWM 0 - 1230 - - - PWM 1621 - 1749 - - - Modo Corrente: - - - Abilita Flusso ottico - - - Nota: le immagini sono sono per presentazione, funzionerà con Hexa, etc. - - - Modo Semplice - - - PWM 1750 + - - - Elevatore CH1 Rev - - - PWM Corrente: - - - Imposta APM - - - Posizione del servo del piatto - - - Abilita Magnetometro - - - Modo Semplice - - - ArduCopter2 - - - Modo Semplice - - - Imposta Frame (+ or x) - - - 60 - - - 1 - - - Modo Semplice - - - Modo Semplice - - - 2 - - - Modi - - - Modo Semplice - - - 3 - - - Riavvia - - - -60 - - - Alto - - - Escursione del piatto - - - Manuale - - - Escursione Timone - - - Calibarzione del sensore di voltaggio: -1. Misura il valtaggio di ingresso di APM e inseriscilo nel box sotto -2. Misura il voltaggio della batteria e inseriscilo nel box sotto -3. Dalle caratteristiche del sensore di corrente, inserisci il valore degli ampere per volt nel box qui sotto - - - Calibrazione Radio - - - Massimo - - - Modo di volo 2 - - - Rollio massimo - - - Modo di volo 3 - - - Passo massimo - - - in gradi es 2° 3' W is -2.3 - - - Modo di volo 1 - - - Livella il quad per impostare gli accelerometri - - - Modo di volo 6 - - - Capacità - - - Declinazione - - - Attiva Sonar - - - PWM 1231 - 1360 - - - Ingresso Radio - - - Calibration - - - 1500 - - - Modo di volo 4 - - - Modo di volo 5 - - - Giroscopio - - - PWM 1361 - 1490 - - - Hardware - - - PWM 1491 - 1620 - - - Sito Web per la Declinazione - - - 1500 - - - Batteria - - - Zero - - - Attiva Sensore Velocità - - - 4500 - - - Resetta APM ai valori di Default - - - 1000 - - - Monitor - - \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/Setup/Setup.pl.resx b/Tools/ArdupilotMegaPlanner/Setup/Setup.pl.resx deleted file mode 100644 index 057b932716..0000000000 --- a/Tools/ArdupilotMegaPlanner/Setup/Setup.pl.resx +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 180 - - - Ręczne - - - PWM 0 - 1230 - - - PWM 1621 - 1749 - - - Aktualny tryb: - - - Włącz Optical Flow - - - UWAGA: Obrazy są wyłącznie do prezentacji, działają jedynie z hexa, itp. - - - Tryb prosty - - - PWM 1750 + - - - Odwr. Elevon CH1 - - - Aktualny PWM: - - - Ustawienia APM - - - Pozycja serwa płyty ster. - - - Włącz kompas - - - Tryb prosty - - - ArduCopter2 - - - Tryb prosty - - - Ustawienie ramy (+ lub x) - - - 60 - - - 1 - - - Tryb prosty - - - Tryb prosty - - - 2 - - - Tryby - - - Tryb prosty - - - 3 - - - Reset - - - -60 - - - Góra - - - Zakres ruchu płyty sterującej - - - Ręczne - - - Zakres steru kierunku - - - Kalibracja czujnika napięcia: -1. Zmierz napięcie wejściowe APM i wpisz poniżej -2. Zmierz napięcie baterii i wpisz poniżej -3. Wpisz poniżej ilość amperów/wolt [A/V] z dokumentacji czujnika prądu - - - Kalibracja radia - - - Max - - - Tryb lotu 2 - - - Max przechylenie - - - Tryb lotu 3 - - - Max pochylenie - - - w stopniech np. 2° 3' W to -2.3 - - - Tryb lotu 1 - - - Wypoziomuj quada żeby stawić domyśle offsety przysp. - - - Tryb lotu 6 - - - Pojemność - - - Deklinacja - - - Włącz sonar - - - PWM 1231 - 1360 - - - Wejścia radia - - - Calibration - - - 1500 - - - Tryb lotu 4 - - - Tryb lotu 5 - - - Żyro - - - PWM 1361 - 1490 - - - Hardware - - - PWM 1491 - 1620 - - - Strona www deklinacji - - - 1500 - - - Bateria - - - Zero - - - Włącz prędkość powietrza - - - 4500 - - - Reset APM do stawień domyślnych - - - 1000 - - - Monitor - - \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/Setup/Setup.resx b/Tools/ArdupilotMegaPlanner/Setup/Setup.resx deleted file mode 100644 index 078647e4e0..0000000000 --- a/Tools/ArdupilotMegaPlanner/Setup/Setup.resx +++ /dev/null @@ -1,4294 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - True - - - - NoControl - - - - 13, 19 - - - 64, 17 - - - 107 - - - Elevons - - - 214, 17 - - - Enable Elevons - - - CHK_mixmode - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBoxElevons - - - 0 - - - True - - - NoControl - - - 292, 19 - - - 111, 17 - - - 110 - - - Elevons CH2 Rev - - - Reverse ch2 elevon - - - CHK_elevonch2rev - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBoxElevons - - - 1 - - - True - - - NoControl - - - 82, 19 - - - 87, 17 - - - 108 - - - Elevons Rev - - - Reverse Elevon direction - - - CHK_elevonrev - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBoxElevons - - - 2 - - - True - - - NoControl - - - 175, 19 - - - 111, 17 - - - 109 - - - Elevons CH1 Rev - - - Reverse ch1 elevon - - - CHK_elevonch1rev - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBoxElevons - - - 3 - - - 21, 349 - - - 409, 42 - - - 111 - - - Elevon Config - - - groupBoxElevons - - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabRadioIn - - - 0 - - - True - - - NoControl - - - 287, 154 - - - 66, 17 - - - 106 - - - Reverse - - - CHK_revch3 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabRadioIn - - - 1 - - - True - - - NoControl - - - 315, 306 - - - 66, 17 - - - 105 - - - Reverse - - - CHK_revch4 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabRadioIn - - - 2 - - - True - - - NoControl - - - 71, 154 - - - 66, 17 - - - 104 - - - Reverse - - - CHK_revch2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabRadioIn - - - 3 - - - True - - - NoControl - - - 315, 12 - - - 66, 17 - - - 103 - - - Reverse - - - CHK_revch1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabRadioIn - - - 4 - - - NoControl - - - 482, 340 - - - 134, 23 - - - 102 - - - Calibrate Radio - - - BUT_Calibrateradio - - - ArdupilotMega.MyButton, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabRadioIn - - - 5 - - - 17, 17 - - - 446, 240 - - - 170, 25 - - - 101 - - - BAR8 - - - ArdupilotMega.HorizontalProgressBar2, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabRadioIn - - - 6 - - - 446, 185 - - - 170, 25 - - - 100 - - - BAR7 - - - ArdupilotMega.HorizontalProgressBar2, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabRadioIn - - - 7 - - - 446, 130 - - - 170, 25 - - - 99 - - - BAR6 - - - ArdupilotMega.HorizontalProgressBar2, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabRadioIn - - - 8 - - - 446, 75 - - - 170, 25 - - - 98 - - - BAR5 - - - ArdupilotMega.HorizontalProgressBar2, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabRadioIn - - - 9 - - - 143, 57 - - - 47, 211 - - - 96 - - - BARpitch - - - ArdupilotMega.VerticalProgressBar2, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabRadioIn - - - 10 - - - 359, 57 - - - 47, 211 - - - 95 - - - BARthrottle - - - ArdupilotMega.VerticalProgressBar2, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabRadioIn - - - 11 - - - 21, 300 - - - 288, 23 - - - 94 - - - BARyaw - - - ArdupilotMega.HorizontalProgressBar2, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabRadioIn - - - 12 - - - 21, 6 - - - 288, 23 - - - 93 - - - BARroll - - - ArdupilotMega.HorizontalProgressBar2, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabRadioIn - - - 13 - - - 4, 22 - - - 3, 3, 3, 3 - - - 666, 393 - - - 0 - - - Radio Input - - - tabRadioIn - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Tabs - - - 0 - - - True - - - NoControl - - - 380, 235 - - - 2, 2, 2, 2 - - - 87, 17 - - - 119 - - - Simple Mode - - - CB_simple6 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 0 - - - True - - - NoControl - - - 380, 208 - - - 2, 2, 2, 2 - - - 87, 17 - - - 118 - - - Simple Mode - - - CB_simple5 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 1 - - - True - - - NoControl - - - 380, 181 - - - 2, 2, 2, 2 - - - 87, 17 - - - 117 - - - Simple Mode - - - CB_simple4 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 2 - - - True - - - NoControl - - - 380, 154 - - - 2, 2, 2, 2 - - - 87, 17 - - - 116 - - - Simple Mode - - - CB_simple3 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 3 - - - True - - - NoControl - - - 380, 127 - - - 2, 2, 2, 2 - - - 87, 17 - - - 115 - - - Simple Mode - - - CB_simple2 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 4 - - - True - - - NoControl - - - 380, 100 - - - 2, 2, 2, 2 - - - 87, 17 - - - 114 - - - Simple Mode - - - CB_simple1 - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 5 - - - True - - - NoControl - - - 242, 67 - - - 74, 13 - - - 113 - - - Current PWM: - - - label14 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 6 - - - True - - - NoControl - - - 322, 67 - - - 13, 13 - - - 112 - - - 0 - - - LBL_flightmodepwm - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 7 - - - True - - - NoControl - - - 242, 50 - - - 74, 13 - - - 111 - - - Current Mode: - - - label13 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 8 - - - True - - - NoControl - - - 322, 50 - - - 42, 13 - - - 110 - - - Manual - - - lbl_currentmode - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 9 - - - True - - - NoControl - - - 506, 101 - - - 76, 13 - - - 109 - - - PWM 0 - 1230 - - - label12 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 10 - - - True - - - NoControl - - - 506, 236 - - - 70, 13 - - - 108 - - - PWM 1750 + - - - label11 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 11 - - - True - - - NoControl - - - 506, 209 - - - 94, 13 - - - 107 - - - PWM 1621 - 1749 - - - label10 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 12 - - - True - - - NoControl - - - 506, 182 - - - 94, 13 - - - 106 - - - PWM 1491 - 1620 - - - label9 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 13 - - - True - - - NoControl - - - 506, 155 - - - 94, 13 - - - 105 - - - PWM 1361 - 1490 - - - label8 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 14 - - - True - - - NoControl - - - 506, 128 - - - 94, 13 - - - 104 - - - PWM 1231 - 1360 - - - label7 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 15 - - - True - - - NoControl - - - 168, 236 - - - 71, 13 - - - 11 - - - Flight Mode 6 - - - label6 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 16 - - - 245, 233 - - - 121, 21 - - - 10 - - - CMB_fmode6 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 17 - - - True - - - NoControl - - - 168, 209 - - - 71, 13 - - - 9 - - - Flight Mode 5 - - - label5 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 18 - - - 245, 206 - - - 121, 21 - - - 8 - - - CMB_fmode5 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 19 - - - True - - - NoControl - - - 168, 182 - - - 71, 13 - - - 7 - - - Flight Mode 4 - - - label4 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 20 - - - 245, 179 - - - 121, 21 - - - 6 - - - CMB_fmode4 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 21 - - - True - - - NoControl - - - 168, 155 - - - 71, 13 - - - 5 - - - Flight Mode 3 - - - label3 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 22 - - - 245, 152 - - - 121, 21 - - - 4 - - - CMB_fmode3 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 23 - - - True - - - NoControl - - - 168, 128 - - - 71, 13 - - - 3 - - - Flight Mode 2 - - - label2 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 24 - - - 245, 125 - - - 121, 21 - - - 2 - - - CMB_fmode2 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 25 - - - True - - - NoControl - - - 168, 101 - - - 71, 13 - - - 1 - - - Flight Mode 1 - - - label1 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 26 - - - 245, 98 - - - 121, 21 - - - 0 - - - CMB_fmode1 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabModes - - - 27 - - - NoControl - - - 245, 260 - - - 121, 23 - - - 103 - - - Save Modes - - - BUT_SaveModes - - - ArdupilotMega.MyButton, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabModes - - - 28 - - - 4, 22 - - - 666, 393 - - - 3 - - - Modes - - - tabModes - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Tabs - - - 1 - - - 405, 25 - - - 75, 23 - - - 33 - - - Calibration - - - BUT_MagCalibration - - - ArdupilotMega.MyButton, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabHardware - - - 0 - - - NoControl - - - 510, 57 - - - 150, 20 - - - 32 - - - in Degrees eg 2° 3' W is -2.3 - - - label27 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 1 - - - XL-EZ0 - - - LV-EZ0 - - - XL-EZL0 - - - 308, 134 - - - 121, 21 - - - 31 - - - CMB_sonartype - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 2 - - - NoControl - - - 162, 297 - - - 134, 19 - - - 30 - - - Enable Optical Flow - - - CHK_enableoptflow - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 3 - - - Zoom - - - NoControl - - - 78, 271 - - - 75, 75 - - - 29 - - - pictureBox2 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 4 - - - True - - - NoControl - - - 390, 80 - - - 104, 13 - - - 28 - - - Declination WebSite - - - linkLabelmagdec - - - System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 5 - - - NoControl - - - 305, 57 - - - 72, 16 - - - 23 - - - Declination - - - label100 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 6 - - - 383, 57 - - - 121, 20 - - - 20 - - - Magnetic Declination (-20.0 to 20.0) eg 2° 3' W is -2.3 - - - TXT_declination - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 7 - - - NoControl - - - 162, 214 - - - 103, 17 - - - 24 - - - Enable Airspeed - - - CHK_enableairspeed - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 8 - - - NoControl - - - 159, 136 - - - 90, 17 - - - 25 - - - Enable Sonar - - - CHK_enablesonar - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 9 - - - NoControl - - - 162, 56 - - - 105, 17 - - - 27 - - - Enable Compass - - - CHK_enablecompass - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 10 - - - Zoom - - - NoControl - - - 78, 188 - - - 75, 75 - - - 3 - - - pictureBox4 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 11 - - - Zoom - - - NoControl - - - 78, 106 - - - 75, 75 - - - 2 - - - pictureBox3 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 12 - - - Zoom - - - - - - NoControl - - - - - - 78, 25 - - - 75, 75 - - - 0 - - - pictureBox1 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHardware - - - 13 - - - 4, 22 - - - 3, 3, 3, 3 - - - 666, 393 - - - 1 - - - Hardware - - - tabHardware - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Tabs - - - 2 - - - True - - - NoControl - - - 5, 16 - - - 2, 0, 2, 0 - - - 110, 13 - - - 29 - - - 1. APM Input voltage: - - - label31 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox4 - - - 0 - - - True - - - NoControl - - - 5, 38 - - - 2, 0, 2, 0 - - - 142, 13 - - - 30 - - - 2. Measured battery voltage: - - - label32 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox4 - - - 1 - - - True - - - NoControl - - - 5, 60 - - - 2, 0, 2, 0 - - - 135, 13 - - - 31 - - - 3. Battery voltage (Calced): - - - label33 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox4 - - - 2 - - - 149, 100 - - - 2, 2, 2, 2 - - - 76, 20 - - - 38 - - - TXT_ampspervolt - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox4 - - - 3 - - - True - - - NoControl - - - 5, 81 - - - 2, 0, 2, 0 - - - 134, 13 - - - 32 - - - 4. Voltage divider (Calced): - - - label34 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox4 - - - 4 - - - 149, 78 - - - 2, 2, 2, 2 - - - 76, 20 - - - 37 - - - TXT_divider - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox4 - - - 5 - - - True - - - NoControl - - - 6, 103 - - - 2, 0, 2, 0 - - - 101, 13 - - - 33 - - - 5. Amperes per volt: - - - label35 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox4 - - - 6 - - - 149, 57 - - - 2, 2, 2, 2 - - - 76, 20 - - - 36 - - - TXT_voltage - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox4 - - - 7 - - - 149, 13 - - - 2, 2, 2, 2 - - - 76, 20 - - - 34 - - - TXT_inputvoltage - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox4 - - - 8 - - - 149, 35 - - - 2, 2, 2, 2 - - - 76, 20 - - - 35 - - - TXT_measuredvoltage - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox4 - - - 9 - - - 31, 177 - - - 238, 131 - - - 41 - - - Calibration - - - groupBox4 - - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabBattery - - - 0 - - - NoControl - - - 123, 76 - - - 42, 13 - - - 40 - - - Sensor - - - label47 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabBattery - - - 1 - - - 0: Other - - - 1: AttoPilot 45A - - - 2: AttoPilot 90A - - - 3: AttoPilot 180A - - - 177, 73 - - - 121, 21 - - - 39 - - - CMB_batmonsensortype - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabBattery - - - 2 - - - Microsoft Sans Serif, 8.25pt - - - 299, 177 - - - 2, 2, 2, 2 - - - True - - - 219, 131 - - - 28 - - - Voltage sensor calibration: -To calibrate your sensor, use a multimeter to measure the voltage coming out of your ESC's battery-elimination circuit (these are black and red wires in the three-wire cable that is powering your APM board). -Then subtract 0.3v from that value and enter it in field #1 at left. - - - - textBox3 - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabBattery - - - 3 - - - True - - - NoControl - - - 305, 50 - - - 48, 13 - - - 23 - - - Capacity - - - label29 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabBattery - - - 4 - - - NoControl - - - 123, 50 - - - 42, 13 - - - 24 - - - Monitor - - - label30 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabBattery - - - 5 - - - 366, 47 - - - 83, 20 - - - 25 - - - TXT_battcapacity - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabBattery - - - 6 - - - 0: Disabled - - - 3: Battery Volts - - - 4: Volts & Current - - - 177, 46 - - - 121, 21 - - - 26 - - - CMB_batmontype - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabBattery - - - 7 - - - Zoom - - - NoControl - - - 31, 21 - - - 75, 75 - - - 2 - - - pictureBox5 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabBattery - - - 8 - - - 4, 22 - - - 2, 2, 2, 2 - - - 666, 393 - - - 6 - - - Battery - - - tabBattery - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Tabs - - - 3 - - - True - - - NoControl - - - 228, 170 - - - 212, 13 - - - 11 - - - Level your plane to set default accel offsets - - - label48 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabArduplane - - - 0 - - - NoControl - - - 285, 199 - - - 75, 23 - - - 10 - - - Level - - - BUT_levelplane - - - ArdupilotMega.MyButton, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabArduplane - - - 1 - - - 4, 22 - - - 3, 3, 3, 3 - - - 666, 393 - - - 7 - - - ArduPlane - - - tabArduplane - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Tabs - - - 4 - - - True - - - NoControl - - - 217, 38 - - - 210, 13 - - - 9 - - - Level your quad to set default accel offsets - - - label28 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabArducopter - - - 0 - - - True - - - NoControl - - - 217, 333 - - - 192, 26 - - - 7 - - - NOTE: images are for presentation only -will work with hexa's etc - - - label16 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabArducopter - - - 1 - - - True - - - NoControl - - - 260, 124 - - - 102, 13 - - - 6 - - - Frame Setup (+ or x) - - - label15 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabArducopter - - - 2 - - - NoControl - - - 319, 140 - - - 190, 190 - - - Zoom - - - 5 - - - pictureBoxQuadX - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabArducopter - - - 3 - - - NoControl - - - 112, 140 - - - 190, 190 - - - Zoom - - - 4 - - - pictureBoxQuad - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabArducopter - - - 4 - - - NoControl - - - 274, 67 - - - 75, 23 - - - 8 - - - Level - - - BUT_levelac2 - - - ArdupilotMega.MyButton, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabArducopter - - - 5 - - - 4, 22 - - - 666, 393 - - - 2 - - - ArduCopter2 - - - tabArducopter - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Tabs - - - 5 - - - True - - - NoControl - - - 67, 19 - - - 39, 17 - - - 137 - - - H1 - - - H1_ENABLE - - - System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox5 - - - 0 - - - True - - - 6, 19 - - - 55, 17 - - - 136 - - - CCPM - - - CCPM - - - System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox5 - - - 1 - - - 253, 6 - - - 120, 43 - - - 137 - - - Swash Type - - - groupBox5 - - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 0 - - - NoControl - - - 479, 169 - - - 69, 23 - - - 131 - - - Manual - - - BUT_HS4save - - - ArdupilotMega.MyButton, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabHeli - - - 1 - - - NoControl - - - 298, 78 - - - 69, 23 - - - 0 - - - Manual - - - BUT_swash_manual - - - ArdupilotMega.MyButton, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabHeli - - - 2 - - - True - - - NoControl - - - 6, 38 - - - 29, 13 - - - 137 - - - Gain - - - label46 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox3 - - - 0 - - - True - - - NoControl - - - 6, 19 - - - 40, 13 - - - 136 - - - Enable - - - label45 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox3 - - - 1 - - - True - - - NoControl - - - 57, 19 - - - 15, 14 - - - 118 - - - GYR_ENABLE - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox3 - - - 2 - - - 41, 35 - - - 47, 20 - - - 119 - - - 1000 - - - GYR_GAIN - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox3 - - - 3 - - - 433, 309 - - - 101, 63 - - - 135 - - - Gyro - - - groupBox3 - - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 3 - - - True - - - NoControl - - - 532, 263 - - - 27, 13 - - - 134 - - - Trim - - - label44 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 4 - - - True - - - NoControl - - - 499, 263 - - - 27, 13 - - - 133 - - - Rev - - - label43 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 5 - - - True - - - NoControl - - - 451, 283 - - - 42, 13 - - - 132 - - - Rudder - - - label42 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 6 - - - True - - - NoControl - - - 112, 23 - - - 27, 13 - - - 135 - - - Max - - - label24 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox2 - - - 0 - - - False - - - 21, 40 - - - 43, 20 - - - 132 - - - 1500 - - - HS4_MIN - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox2 - - - 1 - - - False - - - 106, 40 - - - 43, 20 - - - 133 - - - 1500 - - - HS4_MAX - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox2 - - - 2 - - - True - - - NoControl - - - 27, 23 - - - 24, 13 - - - 134 - - - Min - - - label40 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox2 - - - 3 - - - 433, 181 - - - 169, 78 - - - 130 - - - groupBox2 - - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 7 - - - True - - - NoControl - - - 19, 157 - - - 40, 13 - - - 122 - - - Bottom - - - label41 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox1 - - - 0 - - - True - - - NoControl - - - 24, 28 - - - 26, 13 - - - 120 - - - Top - - - label21 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox1 - - - 1 - - - False - - - 18, 173 - - - 43, 20 - - - 119 - - - 1500 - - - COL_MIN - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox1 - - - 2 - - - False - - - 17, 117 - - - 44, 20 - - - 117 - - - 1500 - - - COL_MID - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox1 - - - 3 - - - False - - - 18, 45 - - - 43, 20 - - - 115 - - - 1500 - - - COL_MAX - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - groupBox1 - - - 4 - - - False - - - NoControl - - - 11, 89 - - - 58, 23 - - - 110 - - - Zero - - - BUT_0collective - - - ArdupilotMega.MyButton, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - groupBox1 - - - 5 - - - 293, 90 - - - 80, 209 - - - 129 - - - groupBox1 - - - System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 8 - - - 535, 279 - - - 44, 20 - - - 128 - - - HS4_TRIM - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 9 - - - 122, 309 - - - 44, 20 - - - 127 - - - HS3_TRIM - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 10 - - - 122, 283 - - - 44, 20 - - - 126 - - - HS2_TRIM - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 11 - - - 122, 257 - - - 44, 20 - - - 125 - - - HS1_TRIM - - - System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 12 - - - True - - - NoControl - - - 127, 244 - - - 27, 13 - - - 124 - - - Trim - - - label39 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 13 - - - True - - - NoControl - - - 98, 244 - - - 27, 13 - - - 123 - - - Rev - - - label38 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 14 - - - True - - - NoControl - - - 50, 244 - - - 44, 13 - - - 122 - - - Position - - - label37 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 15 - - - True - - - NoControl - - - 13, 244 - - - 35, 13 - - - 121 - - - Servo - - - label36 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 16 - - - True - - - NoControl - - - 256, 360 - - - 54, 13 - - - 117 - - - Pitch Max - - - label26 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 17 - - - 310, 357 - - - 47, 20 - - - 116 - - - 4500 - - - PIT_MAX - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 18 - - - True - - - NoControl - - - 256, 336 - - - 48, 13 - - - 115 - - - Roll Max - - - label25 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 19 - - - 310, 331 - - - 47, 20 - - - 114 - - - 4500 - - - ROL_MAX - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 20 - - - True - - - NoControl - - - 476, 61 - - - 75, 13 - - - 109 - - - Rudder Travel - - - label23 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 21 - - - True - - - NoControl - - - 232, 61 - - - 72, 13 - - - 101 - - - Swash Travel - - - label22 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 22 - - - True - - - NoControl - - - 502, 282 - - - 15, 14 - - - 98 - - - HS4_REV - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 23 - - - True - - - NoControl - - - 23, 312 - - - 13, 13 - - - 97 - - - 3 - - - label20 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 24 - - - True - - - NoControl - - - 23, 286 - - - 13, 13 - - - 96 - - - 2 - - - label19 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 25 - - - True - - - NoControl - - - 23, 260 - - - 13, 13 - - - 95 - - - 1 - - - label18 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 26 - - - 53, 309 - - - 39, 20 - - - 94 - - - 180 - - - SV3_POS - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 27 - - - 53, 283 - - - 39, 20 - - - 93 - - - 60 - - - SV2_POS - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 28 - - - 53, 257 - - - 39, 20 - - - 92 - - - -60 - - - SV1_POS - - - System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 29 - - - True - - - NoControl - - - 101, 312 - - - 15, 14 - - - 91 - - - HS3_REV - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 30 - - - True - - - NoControl - - - 101, 286 - - - 15, 14 - - - 90 - - - HS2_REV - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 31 - - - True - - - NoControl - - - 101, 263 - - - 15, 14 - - - 89 - - - HS1_REV - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 32 - - - True - - - NoControl - - - 38, 61 - - - 109, 13 - - - 82 - - - Swash-Servo position - - - label17 - - - System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - tabHeli - - - 33 - - - 392, 88 - - - 242, 42 - - - 108 - - - HS4 - - - ArdupilotMega.HorizontalProgressBar2, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabHeli - - - 34 - - - 235, 90 - - - 42, 213 - - - 107 - - - HS3 - - - ArdupilotMega.VerticalProgressBar2, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabHeli - - - 35 - - - Zoom - - - Microsoft Sans Serif, 9pt - - - 16, 88 - - - 0, 0, 0, 0 - - - 150, 150 - - - 81 - - - Gservoloc - - - AGaugeApp.AGauge, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabHeli - - - 36 - - - 4, 22 - - - 666, 393 - - - 5 - - - AC2 Heli - - - tabHeli - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Tabs - - - 6 - - - Fill - - - 0, 0 - - - 674, 419 - - - 93 - - - Tabs - - - System.Windows.Forms.TabControl, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - 0 - - - NoControl - - - 214, 161 - - - 195, 23 - - - 0 - - - Reset APM Hardware to Default - - - BUT_reset - - - ArdupilotMega.MyButton, ArdupilotMegaPlanner, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - - - tabReset - - - 0 - - - 4, 22 - - - 666, 393 - - - 4 - - - Reset - - - tabReset - - - System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - True - - - 6, 13 - - - 674, 419 - - - APMSetup - - - currentStateBindingSource - - - System.Windows.Forms.BindingSource, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - toolTip1 - - - System.Windows.Forms.ToolTip, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Setup - - - System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/Setup/Setup.zh-Hans.resx b/Tools/ArdupilotMegaPlanner/Setup/Setup.zh-Hans.resx deleted file mode 100644 index 7d4a15bf97..0000000000 --- a/Tools/ArdupilotMegaPlanner/Setup/Setup.zh-Hans.resx +++ /dev/null @@ -1,496 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 遥控输入 - - - 模式 - - - 硬件 - - - 电池 - - - AC2 直升机 - - - 上降副翼 (Elevon) 配置 - - - - 115, 17 - - - Elevons CH2 逆转 - - - 91, 17 - - - Elevons 逆转 - - - 115, 17 - - - Elevons CH1 逆转 - - - 50, 17 - - - 逆转 - - - 50, 17 - - - 逆转 - - - 50, 17 - - - 逆转 - - - 50, 17 - - - 逆转 - - - 校准遥控 - - - 74, 17 - - - 简单模式 - - - 74, 17 - - - 简单模式 - - - 74, 17 - - - 简单模式 - - - 74, 17 - - - 简单模式 - - - 74, 17 - - - 简单模式 - - - 74, 17 - - - 简单模式 - - - 64, 13 - - - 当前 PWM: - - - 58, 13 - - - 当前模式: - - - 64, 13 - - - 飞行模式 6 - - - 64, 13 - - - 飞行模式 5 - - - 64, 13 - - - 飞行模式 4 - - - 64, 13 - - - 飞行模式 3 - - - 64, 13 - - - 飞行模式 2 - - - 64, 13 - - - 飞行模式 1 - - - 保存模式 - - - 十进制, 2° 3' W 就是 -2.3 - - - 启用光流 - - - 67, 13 - - - 磁偏角网站 - - - 磁偏角 - - - 启用空速计 - - - 启用声纳 - - - 启用罗盘 - - - 58, 13 - - - 输入电压: - - - 94, 13 - - - 测量的电池电压: - - - 58, 13 - - - 电池电压: - - - 52, 13 - - - 分 压 比: - - - 63, 13 - - - 安培/伏特: - - - 48, 18 - - - 传感器 - - - 电压传感器校准: -1. 测量APM输入电压,输入到下方的文本框中 -2. 测量电池电压,输入到下方的文本框中 -3. 从当前的传感器的数据表中找到安培/伏特,输入到下方的文本框中 - - - 31, 13 - - - 容量 - - - 48, 13 - - - 监控器 - - - 175, 13 - - - 设置水平面的默认加速度计偏移 - - - 261, 13 - - - 注: 图片只是用于展示,设置可以用于六轴等机架 - - - 93, 13 - - - 机架设置 (+ 或 x) - - - 找平 - - - 手动 - - - 手动 - - - 31, 13 - - - 感度 - - - 31, 13 - - - 启用 - - - 31, 13 - - - 微调 - - - 31, 13 - - - 逆转 - - - 43, 13 - - - 方向舵 - - - 31, 13 - - - 最大 - - - 31, 13 - - - 最小 - - - 31, 13 - - - 最低 - - - 31, 13 - - - 最高 - - - 0度 - - - 31, 13 - - - 微调 - - - 31, 13 - - - 逆转 - - - 31, 13 - - - 位置 - - - 31, 13 - - - 舵机 - - - 55, 13 - - - 最大俯仰 - - - 55, 13 - - - 最大侧倾 - - - 55, 13 - - - 舵机行程 - - - 79, 13 - - - 斜盘水平微调 - - - 79, 13 - - - 斜盘舵机位置 - - - 重置 - - - 重置 APM 为默认设置 - - - APM设置 - - \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/Setup/Setup.zh-TW.resx b/Tools/ArdupilotMegaPlanner/Setup/Setup.zh-TW.resx deleted file mode 100644 index ff21b84d71..0000000000 --- a/Tools/ArdupilotMegaPlanner/Setup/Setup.zh-TW.resx +++ /dev/null @@ -1,460 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 重置 - - - 遙控輸入 - - - 模式 - - - 硬件 - - - 電池 - - - 重置 APM 為默認設置 - - - - 50, 17 - - - 逆轉 - - - 50, 17 - - - 逆轉 - - - 50, 17 - - - 逆轉 - - - 50, 17 - - - 逆轉 - - - 校準遙控 - - - 74, 17 - - - 簡單模式 - - - 74, 17 - - - 簡單模式 - - - 74, 17 - - - 簡單模式 - - - 74, 17 - - - 簡單模式 - - - 74, 17 - - - 簡單模式 - - - 74, 17 - - - 簡單模式 - - - 64, 13 - - - 當前 PWM: - - - 58, 13 - - - 當前模式: - - - 64, 13 - - - 飛行模式 6 - - - 64, 13 - - - 飛行模式 5 - - - 64, 13 - - - 飛行模式 4 - - - 64, 13 - - - 飛行模式 3 - - - 64, 13 - - - 飛行模式 2 - - - 64, 13 - - - 飛行模式 1 - - - 保存模式 - - - 67, 13 - - - 磁偏角網站 - - - 磁偏角 - - - 啟用空速計 - - - 啟用聲納 - - - 啟用羅盤 - - - 63, 13 - - - 安培/伏特: - - - 52, 13 - - - 分 壓 比: - - - 58, 13 - - - 電池電壓: - - - 94, 13 - - - 測量的電池電壓: - - - 58, 13 - - - 輸入電壓: - - - 電壓傳感器校準: -1. 測量APM輸入電壓,輸入到下方的文本框中 -2. 測量電池電壓,輸入到下方的文本框中 -3. 從當前的傳感器的數據表中找到安培/伏特,輸入到下方的文本框中 - - - 31, 13 - - - 容量 - - - 48, 13 - - - 監控器 - - - 175, 13 - - - 設置水平面的默認加速度計偏移 - - - 261, 13 - - - 注: 圖片只是用於展示,設置可以用於六軸等機架 - - - 93, 13 - - - 機架設置 (+ 或 x) - - - 找平 - - - 31, 13 - - - 感度 - - - 31, 13 - - - 啟用 - - - 31, 13 - - - 微調 - - - 31, 13 - - - 逆轉 - - - 43, 13 - - - 方向舵 - - - 手動 - - - 31, 13 - - - 最大 - - - 31, 13 - - - 最小 - - - 手動 - - - 31, 13 - - - 最低 - - - 31, 13 - - - 最高 - - - 0度 - - - 31, 13 - - - 微調 - - - 31, 13 - - - 逆轉 - - - 31, 13 - - - 位置 - - - 31, 13 - - - 舵機 - - - 55, 13 - - - 最大俯仰 - - - 55, 13 - - - 最大側傾 - - - 55, 13 - - - 舵機行程 - - - 79, 13 - - - 斜盤水平微調 - - - 79, 13 - - - 斜盤舵機位置 - - - APM設置 - - \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/bin/Release/ArdupilotMegaPlanner.pdb b/Tools/ArdupilotMegaPlanner/bin/Release/ArdupilotMegaPlanner.pdb index eb9c6759e8..4c17f3f29f 100644 Binary files a/Tools/ArdupilotMegaPlanner/bin/Release/ArdupilotMegaPlanner.pdb and b/Tools/ArdupilotMegaPlanner/bin/Release/ArdupilotMegaPlanner.pdb differ diff --git a/Tools/ArdupilotMegaPlanner/bin/Release/m3u/GeoRefnetworklink.kml b/Tools/ArdupilotMegaPlanner/bin/Release/m3u/GeoRefnetworklink.kml new file mode 100644 index 0000000000..e15f6c602c --- /dev/null +++ b/Tools/ArdupilotMegaPlanner/bin/Release/m3u/GeoRefnetworklink.kml @@ -0,0 +1,19 @@ + + + + Network Links + 1 + + View Centered Placemark + 1 + 0 + 0 + + http://127.0.0.1:56781/georefnetwork.kml + onInterval + 2 + 2 + + + + diff --git a/Tools/ArdupilotMegaPlanner/bin/Release/version.txt b/Tools/ArdupilotMegaPlanner/bin/Release/version.txt index b3cbea88a3..f9ab193fe9 100644 --- a/Tools/ArdupilotMegaPlanner/bin/Release/version.txt +++ b/Tools/ArdupilotMegaPlanner/bin/Release/version.txt @@ -1 +1 @@ -1.1.4487.28746 \ No newline at end of file +1.1.4488.39145 \ No newline at end of file diff --git a/Tools/ArdupilotMegaPlanner/georefimage.cs b/Tools/ArdupilotMegaPlanner/georefimage.cs index bf877efaec..50c0cd1390 100644 --- a/Tools/ArdupilotMegaPlanner/georefimage.cs +++ b/Tools/ArdupilotMegaPlanner/georefimage.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Collections; using System.Reflection; using System.IO; using System.Windows.Forms; @@ -32,10 +33,17 @@ namespace ArdupilotMega InitializeComponent(); } + Hashtable filedatecahce = new Hashtable(); + DateTime getPhotoTime(string fn) { DateTime dtaken = DateTime.MinValue; + if (filedatecahce.ContainsKey(fn)) + { + return (DateTime)filedatecahce[fn]; + } + try { @@ -59,6 +67,9 @@ namespace ArdupilotMega { dtaken = lcDirectory.GetDate(0x9003); log.InfoFormat("does " + lcDirectory.GetTagName(0x9003) + " " + dtaken); + + filedatecahce[fn] = dtaken; + break; } @@ -190,6 +201,8 @@ namespace ArdupilotMega StreamWriter sw = new StreamWriter(dirWithImages + Path.DirectorySeparatorChar + "location.tel"); sw.WriteLine("version=1"); + + sw.WriteLine("#seconds offset - " + TXT_offsetseconds.Text); sw.WriteLine("#longitude and latitude - in degrees"); sw.WriteLine("#name utc longitude latitude height"); @@ -241,7 +254,7 @@ namespace ArdupilotMega first++; } - Console.Write("ph " + dt + " log " + crap + " \r"); + //Console.Write("ph " + dt + " log " + crap + " \r"); sw4.WriteLine("ph " + file + " " + dt + " log " + crap); @@ -255,18 +268,25 @@ namespace ArdupilotMega tstamp.When = dt; - kml.AddFeature( - new Placemark() - { - Time = tstamp , - Name = Path.GetFileNameWithoutExtension(file), - Geometry = new SharpKml.Dom.Point() - { - Coordinate = new Vector(double.Parse(arr[latpos]), double.Parse(arr[lngpos]), double.Parse(arr[altpos])) - } - - } - ); + kml.AddFeature( + new Placemark() + { + Time = tstamp, + Name = Path.GetFileNameWithoutExtension(file), + Geometry = new SharpKml.Dom.Point() + { + Coordinate = new Vector(double.Parse(arr[latpos]), double.Parse(arr[lngpos]), double.Parse(arr[altpos])) + }, + Description = new Description() + { + Text = "
" + }, + StyleSelector = new Style() + { + Balloon = new BalloonStyle() { Text = "$[name]
$[description]" } + } + } + ); @@ -289,12 +309,14 @@ namespace ArdupilotMega sw3.Write(serializer.Xml); sw3.Close(); + MainV2.instance.georefkml = serializer.Xml; + sw4.Close(); sw2.Close(); sw.Close(); - CustomMessageBox.Show("Done " + matchs + " matchs"); + TXT_outputlog.AppendText("Done " + matchs + " matchs"); } private void InitializeComponent() diff --git a/Tools/ArdupilotMegaPlanner/m3u/GeoRefnetworklink.kml b/Tools/ArdupilotMegaPlanner/m3u/GeoRefnetworklink.kml new file mode 100644 index 0000000000..e15f6c602c --- /dev/null +++ b/Tools/ArdupilotMegaPlanner/m3u/GeoRefnetworklink.kml @@ -0,0 +1,19 @@ + + + + Network Links + 1 + + View Centered Placemark + 1 + 0 + 0 + + http://127.0.0.1:56781/georefnetwork.kml + onInterval + 2 + 2 + + + +