Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2249 → Rev 2250

/MKLiveView/Source/ArtificialHorizon/bin/Debug/ArtificialHorizon.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/ArtificialHorizon/bin/Debug/ArtificialHorizon.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/ArtificialHorizon/obj/Debug/ArtificialHorizon.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/ArtificialHorizon/obj/Debug/ArtificialHorizon.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/ArtificialHorizon/obj/Debug/ArtificialHorizon.vbproj.FileListAbsolute.txt
26,3 → 26,13
E:\Documents\VS Projects\MKLifeView\MKLifeView\ArtificialHorizon\obj\Debug\ArtificialHorizon.xml
E:\Documents\VS Projects\MKLifeView\MKLifeView\ArtificialHorizon\obj\Debug\ArtificialHorizon.pdb
E:\Documents\VS Projects\MKLifeView\MKLifeView\ArtificialHorizon\obj\Debug\ArtificialHorizon.vbprojResolveAssemblyReference.cache
E:\Documents\VS Projects\MKLiveView\MKLiveView\ArtificialHorizon\bin\Debug\ArtificialHorizon.dll
E:\Documents\VS Projects\MKLiveView\MKLiveView\ArtificialHorizon\bin\Debug\ArtificialHorizon.pdb
E:\Documents\VS Projects\MKLiveView\MKLiveView\ArtificialHorizon\bin\Debug\ArtificialHorizon.xml
E:\Documents\VS Projects\MKLiveView\MKLiveView\ArtificialHorizon\obj\Debug\ArtificialHorizon.vbprojResolveAssemblyReference.cache
E:\Documents\VS Projects\MKLiveView\MKLiveView\ArtificialHorizon\obj\Debug\ArtificialHorizon.ArtificialHorizon.resources
E:\Documents\VS Projects\MKLiveView\MKLiveView\ArtificialHorizon\obj\Debug\ArtificialHorizon.Resources.resources
E:\Documents\VS Projects\MKLiveView\MKLiveView\ArtificialHorizon\obj\Debug\ArtificialHorizon.vbproj.GenerateResource.Cache
E:\Documents\VS Projects\MKLiveView\MKLiveView\ArtificialHorizon\obj\Debug\ArtificialHorizon.dll
E:\Documents\VS Projects\MKLiveView\MKLiveView\ArtificialHorizon\obj\Debug\ArtificialHorizon.xml
E:\Documents\VS Projects\MKLiveView\MKLiveView\ArtificialHorizon\obj\Debug\ArtificialHorizon.pdb
/MKLiveView/Source/ArtificialHorizon/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/AvionicsInstrumentControl/bin/Debug/AvionicsInstrumentControl.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/AvionicsInstrumentControl/bin/Debug/AvionicsInstrumentControl.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/AvionicsInstrumentControl/obj/Debug/AvionicsInstrumentControl.csproj.FileListAbsolute.txt
20,3 → 20,11
E:\Documents\VS Projects\MKLifeView\MKLifeView\AvionicsInstrumentControl\obj\Debug\AvionicsInstrumentControl.csproj.GenerateResource.Cache
E:\Documents\VS Projects\MKLifeView\MKLifeView\AvionicsInstrumentControl\obj\Debug\AvionicsInstrumentControl.dll
E:\Documents\VS Projects\MKLifeView\MKLifeView\AvionicsInstrumentControl\obj\Debug\AvionicsInstrumentControl.pdb
E:\Documents\VS Projects\MKLiveView\MKLiveView\AvionicsInstrumentControl\bin\Debug\AvionicsInstrumentControl.dll
E:\Documents\VS Projects\MKLiveView\MKLiveView\AvionicsInstrumentControl\bin\Debug\AvionicsInstrumentControl.pdb
E:\Documents\VS Projects\MKLiveView\MKLiveView\AvionicsInstrumentControl\obj\Debug\AvionicsInstrumentControl.HeadingIndicator.resources
E:\Documents\VS Projects\MKLiveView\MKLiveView\AvionicsInstrumentControl\obj\Debug\AvionicsInstrumentControl.Properties.Resources.resources
E:\Documents\VS Projects\MKLiveView\MKLiveView\AvionicsInstrumentControl\obj\Debug\AvionicsInstrumentControl.csproj.GenerateResource.Cache
E:\Documents\VS Projects\MKLiveView\MKLiveView\AvionicsInstrumentControl\obj\Debug\AvionicsInstrumentControl.dll
E:\Documents\VS Projects\MKLiveView\MKLiveView\AvionicsInstrumentControl\obj\Debug\AvionicsInstrumentControl.pdb
E:\Documents\VS Projects\MKLiveView\MKLiveView\AvionicsInstrumentControl\obj\Debug\AvionicsInstrumentControl.csprojResolveAssemblyReference.cache
/MKLiveView/Source/AvionicsInstrumentControl/obj/Debug/AvionicsInstrumentControl.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/AvionicsInstrumentControl/obj/Debug/AvionicsInstrumentControl.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/AvionicsInstrumentControl/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/bin/Debug/SimpleSerialPort.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/bin/Debug/SimpleSerialPort.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/obj/Debug/SimpleSerialPort.csproj.FileListAbsolute.txt
33,3 → 33,10
E:\Documents\VS Projects\MKLifeView\MKLifeView\EasySerialPort\obj\Debug\SimpleSerialPort.dll
E:\Documents\VS Projects\MKLifeView\MKLifeView\EasySerialPort\obj\Debug\SimpleSerialPort.pdb
E:\Documents\VS Projects\MKLifeView\MKLifeView\EasySerialPort\obj\Debug\SimpleSerialPort.csprojResolveAssemblyReference.cache
E:\Documents\VS Projects\MKLiveView\MKLiveView\EasySerialPort\bin\Debug\SimpleSerialPort.dll
E:\Documents\VS Projects\MKLiveView\MKLiveView\EasySerialPort\bin\Debug\SimpleSerialPort.pdb
E:\Documents\VS Projects\MKLiveView\MKLiveView\EasySerialPort\obj\Debug\SimpleSerialPort.SimpleSerialPort.resources
E:\Documents\VS Projects\MKLiveView\MKLiveView\EasySerialPort\obj\Debug\SimpleSerialPort.csproj.GenerateResource.Cache
E:\Documents\VS Projects\MKLiveView\MKLiveView\EasySerialPort\obj\Debug\SimpleSerialPort.dll
E:\Documents\VS Projects\MKLiveView\MKLiveView\EasySerialPort\obj\Debug\SimpleSerialPort.pdb
E:\Documents\VS Projects\MKLiveView\MKLiveView\EasySerialPort\obj\Debug\SimpleSerialPort.csprojResolveAssemblyReference.cache
/MKLiveView/Source/EasySerialPort/obj/Debug/SimpleSerialPort.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/obj/Debug/SimpleSerialPort.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/MainForm.Designer.cs
75,7 → 75,18
this.button2 = new System.Windows.Forms.Button();
this.lblFileName = new System.Windows.Forms.Label();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.dgvMotors2 = new System.Windows.Forms.DataGridView();
this.dgvMotors1 = new System.Windows.Forms.DataGridView();
this.groupBox39 = new System.Windows.Forms.GroupBox();
this.lblNCDistWP = new System.Windows.Forms.Label();
this.groupBox38 = new System.Windows.Forms.GroupBox();
this.label9 = new System.Windows.Forms.Label();
this.lblNCGPSLat = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.lblNCGPSLong = new System.Windows.Forms.Label();
this.groupBox36 = new System.Windows.Forms.GroupBox();
this.label7 = new System.Windows.Forms.Label();
this.lblOSDPageNr = new System.Windows.Forms.Label();
this.rtfOSD = new System.Windows.Forms.RichTextBox();
this.cbOSD = new System.Windows.Forms.ComboBox();
84,12 → 95,6
this.btnOSDEnter = new System.Windows.Forms.Button();
this.btnOSDForward = new System.Windows.Forms.Button();
this.groupBox35 = new System.Windows.Forms.GroupBox();
this.lblCRCErr = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.lblLifeCounter = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.groupBox31 = new System.Windows.Forms.GroupBox();
this.lblNCCtrl = new System.Windows.Forms.Label();
this.groupBox27 = new System.Windows.Forms.GroupBox();
this.lblNCErrNmbr = new System.Windows.Forms.Label();
this.groupBox19 = new System.Windows.Forms.GroupBox();
97,7 → 102,7
this.groupBox18 = new System.Windows.Forms.GroupBox();
this.lblNCI2C = new System.Windows.Forms.Label();
this.groupBox33 = new System.Windows.Forms.GroupBox();
this.lblNCDist = new System.Windows.Forms.Label();
this.lblNCDistHP = new System.Windows.Forms.Label();
this.groupBox26 = new System.Windows.Forms.GroupBox();
this.lblNCCap = new System.Windows.Forms.Label();
this.groupBox29 = new System.Windows.Forms.GroupBox();
104,39 → 109,6
this.lblNCFlTime = new System.Windows.Forms.Label();
this.groupBox28 = new System.Windows.Forms.GroupBox();
this.lblNCRC = new System.Windows.Forms.Label();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.groupBox9 = new System.Windows.Forms.GroupBox();
this.LBLNCM5Cur = new System.Windows.Forms.Label();
this.groupBox12 = new System.Windows.Forms.GroupBox();
this.LBLNCM8Temp = new System.Windows.Forms.Label();
this.groupBox15 = new System.Windows.Forms.GroupBox();
this.LBLNCM5Temp = new System.Windows.Forms.Label();
this.groupBox20 = new System.Windows.Forms.GroupBox();
this.LBLNCM7Temp = new System.Windows.Forms.Label();
this.groupBox21 = new System.Windows.Forms.GroupBox();
this.LBLNCM8Cur = new System.Windows.Forms.Label();
this.groupBox22 = new System.Windows.Forms.GroupBox();
this.LBLNCM6Cur = new System.Windows.Forms.Label();
this.groupBox23 = new System.Windows.Forms.GroupBox();
this.LBLNCM7Cur = new System.Windows.Forms.Label();
this.groupBox24 = new System.Windows.Forms.GroupBox();
this.LBLNCM6Temp = new System.Windows.Forms.Label();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.LBLNCM1Cur = new System.Windows.Forms.Label();
this.groupBox16 = new System.Windows.Forms.GroupBox();
this.LBLNCM4Temp = new System.Windows.Forms.Label();
this.groupBox8 = new System.Windows.Forms.GroupBox();
this.LBLNCM1Temp = new System.Windows.Forms.Label();
this.groupBox13 = new System.Windows.Forms.GroupBox();
this.LBLNCM3Temp = new System.Windows.Forms.Label();
this.groupBox17 = new System.Windows.Forms.GroupBox();
this.LBLNCM4Cur = new System.Windows.Forms.Label();
this.groupBox11 = new System.Windows.Forms.GroupBox();
this.LBLNCM2Cur = new System.Windows.Forms.Label();
this.groupBox14 = new System.Windows.Forms.GroupBox();
this.LBLNCM3Cur = new System.Windows.Forms.Label();
this.groupBox10 = new System.Windows.Forms.GroupBox();
this.LBLNCM2Temp = new System.Windows.Forms.Label();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.lblNCSat = new System.Windows.Forms.Label();
this.groupBox4 = new System.Windows.Forms.GroupBox();
154,8 → 126,47
this.lblNCCompass = new System.Windows.Forms.Label();
this.lblNCRoll = new System.Windows.Forms.Label();
this.lblNCPitch = new System.Windows.Forms.Label();
this.lblCRCErr = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.lblLifeCounter = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.groupBox31 = new System.Windows.Forms.GroupBox();
this.lblNCCtrl = new System.Windows.Forms.Label();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPageTesting = new System.Windows.Forms.TabPage();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.gbM5Curr = new System.Windows.Forms.GroupBox();
this.LBLNCM5Cur = new System.Windows.Forms.Label();
this.gbM8Temp = new System.Windows.Forms.GroupBox();
this.LBLNCM8Temp = new System.Windows.Forms.Label();
this.gbM5Temp = new System.Windows.Forms.GroupBox();
this.LBLNCM5Temp = new System.Windows.Forms.Label();
this.gbM7Temp = new System.Windows.Forms.GroupBox();
this.LBLNCM7Temp = new System.Windows.Forms.Label();
this.gbM8Curr = new System.Windows.Forms.GroupBox();
this.LBLNCM8Cur = new System.Windows.Forms.Label();
this.gbM6Curr = new System.Windows.Forms.GroupBox();
this.LBLNCM6Cur = new System.Windows.Forms.Label();
this.gbM7Curr = new System.Windows.Forms.GroupBox();
this.LBLNCM7Cur = new System.Windows.Forms.Label();
this.gbM6Temp = new System.Windows.Forms.GroupBox();
this.LBLNCM6Temp = new System.Windows.Forms.Label();
this.gbM1Curr = new System.Windows.Forms.GroupBox();
this.LBLNCM1Cur = new System.Windows.Forms.Label();
this.gbM4Temp = new System.Windows.Forms.GroupBox();
this.LBLNCM4Temp = new System.Windows.Forms.Label();
this.gbM1Temp = new System.Windows.Forms.GroupBox();
this.LBLNCM1Temp = new System.Windows.Forms.Label();
this.gbM3Temp = new System.Windows.Forms.GroupBox();
this.LBLNCM3Temp = new System.Windows.Forms.Label();
this.gbM4Curr = new System.Windows.Forms.GroupBox();
this.LBLNCM4Cur = new System.Windows.Forms.Label();
this.gbM2Curr = new System.Windows.Forms.GroupBox();
this.LBLNCM2Cur = new System.Windows.Forms.Label();
this.gbM3Curr = new System.Windows.Forms.GroupBox();
this.LBLNCM3Cur = new System.Windows.Forms.Label();
this.gbM2Temp = new System.Windows.Forms.GroupBox();
this.LBLNCM2Temp = new System.Windows.Forms.Label();
this.btnConn = new System.Windows.Forms.Button();
this.rtfError = new System.Windows.Forms.RichTextBox();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
166,9 → 177,13
this.groupBox30.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.tabPage3.SuspendLayout();
this.groupBox7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvMotors2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dgvMotors1)).BeginInit();
this.groupBox39.SuspendLayout();
this.groupBox38.SuspendLayout();
this.groupBox36.SuspendLayout();
this.groupBox35.SuspendLayout();
this.groupBox31.SuspendLayout();
this.groupBox27.SuspendLayout();
this.groupBox19.SuspendLayout();
this.groupBox18.SuspendLayout();
176,23 → 191,6
this.groupBox26.SuspendLayout();
this.groupBox29.SuspendLayout();
this.groupBox28.SuspendLayout();
this.groupBox6.SuspendLayout();
this.groupBox9.SuspendLayout();
this.groupBox12.SuspendLayout();
this.groupBox15.SuspendLayout();
this.groupBox20.SuspendLayout();
this.groupBox21.SuspendLayout();
this.groupBox22.SuspendLayout();
this.groupBox23.SuspendLayout();
this.groupBox24.SuspendLayout();
this.groupBox7.SuspendLayout();
this.groupBox16.SuspendLayout();
this.groupBox8.SuspendLayout();
this.groupBox13.SuspendLayout();
this.groupBox17.SuspendLayout();
this.groupBox11.SuspendLayout();
this.groupBox14.SuspendLayout();
this.groupBox10.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout();
199,8 → 197,26
this.groupBox2.SuspendLayout();
this.groupBox25.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox31.SuspendLayout();
this.tabControl1.SuspendLayout();
this.tabPageTesting.SuspendLayout();
this.groupBox6.SuspendLayout();
this.gbM5Curr.SuspendLayout();
this.gbM8Temp.SuspendLayout();
this.gbM5Temp.SuspendLayout();
this.gbM7Temp.SuspendLayout();
this.gbM8Curr.SuspendLayout();
this.gbM6Curr.SuspendLayout();
this.gbM7Curr.SuspendLayout();
this.gbM6Temp.SuspendLayout();
this.gbM1Curr.SuspendLayout();
this.gbM4Temp.SuspendLayout();
this.gbM1Temp.SuspendLayout();
this.gbM3Temp.SuspendLayout();
this.gbM4Curr.SuspendLayout();
this.gbM2Curr.SuspendLayout();
this.gbM3Curr.SuspendLayout();
this.gbM2Temp.SuspendLayout();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
211,7 → 227,7
this.btnReadDebugCont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnReadDebugCont.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.btnReadDebugCont.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnReadDebugCont.Location = new System.Drawing.Point(806, 4);
this.btnReadDebugCont.Location = new System.Drawing.Point(806, -2);
this.btnReadDebugCont.Name = "btnReadDebugCont";
this.btnReadDebugCont.Size = new System.Drawing.Size(141, 55);
this.btnReadDebugCont.TabIndex = 26;
278,7 → 294,7
// rtfTerminal
//
this.rtfTerminal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.rtfTerminal.Location = new System.Drawing.Point(3, 2);
this.rtfTerminal.Location = new System.Drawing.Point(3, -4);
this.rtfTerminal.Name = "rtfTerminal";
this.rtfTerminal.Size = new System.Drawing.Size(259, 58);
this.rtfTerminal.TabIndex = 17;
294,7 → 310,7
this.tabPage2.Location = new System.Drawing.Point(4, 27);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(945, 482);
this.tabPage2.Size = new System.Drawing.Size(945, 483);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Settings";
this.tabPage2.UseVisualStyleBackColor = true;
332,7 → 348,7
this.groupBox34.Controls.Add(this.label3);
this.groupBox34.Controls.Add(this.label2);
this.groupBox34.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox34.Location = new System.Drawing.Point(711, 322);
this.groupBox34.Location = new System.Drawing.Point(711, 323);
this.groupBox34.Name = "groupBox34";
this.groupBox34.Size = new System.Drawing.Size(226, 150);
this.groupBox34.TabIndex = 34;
814,6 → 830,10
//
// tabPage3
//
this.tabPage3.Controls.Add(this.groupBox38);
this.tabPage3.Controls.Add(this.headingIndicator1);
this.tabPage3.Controls.Add(this.groupBox7);
this.tabPage3.Controls.Add(this.groupBox39);
this.tabPage3.Controls.Add(this.groupBox36);
this.tabPage3.Controls.Add(this.groupBox35);
this.tabPage3.Controls.Add(this.groupBox33);
820,7 → 840,6
this.tabPage3.Controls.Add(this.groupBox26);
this.tabPage3.Controls.Add(this.groupBox29);
this.tabPage3.Controls.Add(this.groupBox28);
this.tabPage3.Controls.Add(this.groupBox6);
this.tabPage3.Controls.Add(this.groupBox5);
this.tabPage3.Controls.Add(this.groupBox4);
this.tabPage3.Controls.Add(this.groupBox3);
827,7 → 846,6
this.tabPage3.Controls.Add(this.groupBox2);
this.tabPage3.Controls.Add(this.groupBox25);
this.tabPage3.Controls.Add(this.groupBox1);
this.tabPage3.Controls.Add(this.headingIndicator1);
this.tabPage3.Controls.Add(this.artificialHorizon1);
this.tabPage3.Controls.Add(this.lblNCCompass);
this.tabPage3.Controls.Add(this.lblNCRoll);
835,13 → 853,135
this.tabPage3.Location = new System.Drawing.Point(4, 27);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(945, 481);
this.tabPage3.Size = new System.Drawing.Size(945, 486);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Visual";
this.tabPage3.UseVisualStyleBackColor = true;
//
// groupBox7
//
this.groupBox7.Controls.Add(this.dgvMotors2);
this.groupBox7.Controls.Add(this.dgvMotors1);
this.groupBox7.Location = new System.Drawing.Point(152, 12);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(359, 196);
this.groupBox7.TabIndex = 38;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "Motors";
//
// dgvMotors2
//
this.dgvMotors2.AllowUserToAddRows = false;
this.dgvMotors2.AllowUserToDeleteRows = false;
this.dgvMotors2.ColumnHeadersHeight = 26;
this.dgvMotors2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgvMotors2.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dgvMotors2.Location = new System.Drawing.Point(181, 23);
this.dgvMotors2.Name = "dgvMotors2";
this.dgvMotors2.ReadOnly = true;
this.dgvMotors2.RowHeadersVisible = false;
this.dgvMotors2.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.dgvMotors2.RowTemplate.Height = 34;
this.dgvMotors2.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.dgvMotors2.Size = new System.Drawing.Size(172, 162);
this.dgvMotors2.TabIndex = 38;
//
// dgvMotors1
//
this.dgvMotors1.AllowUserToAddRows = false;
this.dgvMotors1.AllowUserToDeleteRows = false;
this.dgvMotors1.ColumnHeadersHeight = 26;
this.dgvMotors1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dgvMotors1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dgvMotors1.Location = new System.Drawing.Point(6, 23);
this.dgvMotors1.Name = "dgvMotors1";
this.dgvMotors1.ReadOnly = true;
this.dgvMotors1.RowHeadersVisible = false;
this.dgvMotors1.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.dgvMotors1.RowTemplate.Height = 34;
this.dgvMotors1.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.dgvMotors1.Size = new System.Drawing.Size(172, 162);
this.dgvMotors1.TabIndex = 37;
//
// groupBox39
//
this.groupBox39.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox39.Controls.Add(this.lblNCDistWP);
this.groupBox39.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox39.Location = new System.Drawing.Point(803, 194);
this.groupBox39.Name = "groupBox39";
this.groupBox39.Size = new System.Drawing.Size(135, 57);
this.groupBox39.TabIndex = 5;
this.groupBox39.TabStop = false;
this.groupBox39.Text = "Distance (WP)";
//
// lblNCDistWP
//
this.lblNCDistWP.AutoSize = true;
this.lblNCDistWP.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCDistWP.Location = new System.Drawing.Point(5, 23);
this.lblNCDistWP.Name = "lblNCDistWP";
this.lblNCDistWP.Size = new System.Drawing.Size(92, 29);
this.lblNCDistWP.TabIndex = 0;
this.lblNCDistWP.Text = "DistWP";
//
// groupBox38
//
this.groupBox38.Controls.Add(this.label9);
this.groupBox38.Controls.Add(this.lblNCGPSLat);
this.groupBox38.Controls.Add(this.label8);
this.groupBox38.Controls.Add(this.lblNCGPSLong);
this.groupBox38.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox38.Location = new System.Drawing.Point(8, 391);
this.groupBox38.Name = "groupBox38";
this.groupBox38.Size = new System.Drawing.Size(191, 87);
this.groupBox38.TabIndex = 6;
this.groupBox38.TabStop = false;
this.groupBox38.Text = "GPS-Position";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.Location = new System.Drawing.Point(5, 58);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(40, 20);
this.label9.TabIndex = 1;
this.label9.Text = "Lat.:";
//
// lblNCGPSLat
//
this.lblNCGPSLat.AutoSize = true;
this.lblNCGPSLat.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCGPSLat.Location = new System.Drawing.Point(56, 53);
this.lblNCGPSLat.Name = "lblNCGPSLat";
this.lblNCGPSLat.Size = new System.Drawing.Size(45, 29);
this.lblNCGPSLat.TabIndex = 2;
this.lblNCGPSLat.Text = "Lat";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.Location = new System.Drawing.Point(5, 29);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(53, 20);
this.label8.TabIndex = 0;
this.label8.Text = "Long.:";
//
// lblNCGPSLong
//
this.lblNCGPSLong.AutoSize = true;
this.lblNCGPSLong.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCGPSLong.Location = new System.Drawing.Point(56, 24);
this.lblNCGPSLong.Name = "lblNCGPSLong";
this.lblNCGPSLong.Size = new System.Drawing.Size(67, 29);
this.lblNCGPSLong.TabIndex = 0;
this.lblNCGPSLong.Text = "Long";
//
// groupBox36
//
this.groupBox36.Controls.Add(this.label7);
this.groupBox36.Controls.Add(this.lblOSDPageNr);
this.groupBox36.Controls.Add(this.rtfOSD);
this.groupBox36.Controls.Add(this.cbOSD);
856,12 → 996,23
this.groupBox36.TabStop = false;
this.groupBox36.Text = "OSD";
//
// label7
//
this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Arial Narrow", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.Location = new System.Drawing.Point(220, 108);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(33, 16);
this.label7.TabIndex = 30;
this.label7.Text = "Page";
//
// lblOSDPageNr
//
this.lblOSDPageNr.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblOSDPageNr.AutoSize = true;
this.lblOSDPageNr.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblOSDPageNr.Location = new System.Drawing.Point(225, 101);
this.lblOSDPageNr.Location = new System.Drawing.Point(226, 132);
this.lblOSDPageNr.Name = "lblOSDPageNr";
this.lblOSDPageNr.Size = new System.Drawing.Size(15, 16);
this.lblOSDPageNr.TabIndex = 11;
883,7 → 1034,7
this.cbOSD.DropDownWidth = 45;
this.cbOSD.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbOSD.FormattingEnabled = true;
this.cbOSD.Location = new System.Drawing.Point(255, 95);
this.cbOSD.Location = new System.Drawing.Point(256, 126);
this.cbOSD.MaxDropDownItems = 32;
this.cbOSD.Name = "cbOSD";
this.cbOSD.Size = new System.Drawing.Size(19, 28);
893,9 → 1044,9
// btnOSDBackward
//
this.btnOSDBackward.Font = new System.Drawing.Font("Wingdings 3", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2)));
this.btnOSDBackward.Location = new System.Drawing.Point(220, 59);
this.btnOSDBackward.Location = new System.Drawing.Point(220, 67);
this.btnOSDBackward.Name = "btnOSDBackward";
this.btnOSDBackward.Size = new System.Drawing.Size(55, 31);
this.btnOSDBackward.Size = new System.Drawing.Size(55, 38);
this.btnOSDBackward.TabIndex = 34;
this.btnOSDBackward.Text = "Å";
this.btnOSDBackward.UseVisualStyleBackColor = true;
926,7 → 1077,7
this.btnOSDForward.Font = new System.Drawing.Font("Wingdings 3", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2)));
this.btnOSDForward.Location = new System.Drawing.Point(220, 27);
this.btnOSDForward.Name = "btnOSDForward";
this.btnOSDForward.Size = new System.Drawing.Size(55, 31);
this.btnOSDForward.Size = new System.Drawing.Size(55, 38);
this.btnOSDForward.TabIndex = 34;
this.btnOSDForward.Text = "Æ";
this.btnOSDForward.UseVisualStyleBackColor = true;
935,90 → 1086,21
// groupBox35
//
this.groupBox35.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox35.Controls.Add(this.lblCRCErr);
this.groupBox35.Controls.Add(this.label6);
this.groupBox35.Controls.Add(this.lblLifeCounter);
this.groupBox35.Controls.Add(this.label1);
this.groupBox35.Controls.Add(this.groupBox31);
this.groupBox35.Controls.Add(this.groupBox27);
this.groupBox35.Controls.Add(this.groupBox19);
this.groupBox35.Controls.Add(this.groupBox18);
this.groupBox35.Location = new System.Drawing.Point(834, 226);
this.groupBox35.Location = new System.Drawing.Point(840, 339);
this.groupBox35.Name = "groupBox35";
this.groupBox35.Size = new System.Drawing.Size(105, 249);
this.groupBox35.Size = new System.Drawing.Size(101, 145);
this.groupBox35.TabIndex = 11;
this.groupBox35.TabStop = false;
//
// lblCRCErr
//
this.lblCRCErr.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblCRCErr.AutoSize = true;
this.lblCRCErr.Font = new System.Drawing.Font("Arial Narrow", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblCRCErr.Location = new System.Drawing.Point(86, 228);
this.lblCRCErr.Name = "lblCRCErr";
this.lblCRCErr.Size = new System.Drawing.Size(14, 16);
this.lblCRCErr.TabIndex = 12;
this.lblCRCErr.Text = "0";
//
// label6
//
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Arial Narrow", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.Location = new System.Drawing.Point(6, 228);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(61, 16);
this.label6.TabIndex = 11;
this.label6.Text = "CRC-Error";
//
// lblLifeCounter
//
this.lblLifeCounter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblLifeCounter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.lblLifeCounter.Location = new System.Drawing.Point(87, 209);
this.lblLifeCounter.Name = "lblLifeCounter";
this.lblLifeCounter.Size = new System.Drawing.Size(14, 14);
this.lblLifeCounter.TabIndex = 10;
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Arial Narrow", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(5, 208);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(79, 16);
this.label1.TabIndex = 9;
this.label1.Text = "Communication";
//
// groupBox31
//
this.groupBox31.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox31.Controls.Add(this.lblNCCtrl);
this.groupBox31.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox31.Location = new System.Drawing.Point(13, 14);
this.groupBox31.Name = "groupBox31";
this.groupBox31.Size = new System.Drawing.Size(86, 39);
this.groupBox31.TabIndex = 8;
this.groupBox31.TabStop = false;
this.groupBox31.Text = "Controller";
//
// lblNCCtrl
//
this.lblNCCtrl.AutoSize = true;
this.lblNCCtrl.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCCtrl.Location = new System.Drawing.Point(6, 16);
this.lblNCCtrl.Name = "lblNCCtrl";
this.lblNCCtrl.Size = new System.Drawing.Size(61, 20);
this.lblNCCtrl.TabIndex = 0;
this.lblNCCtrl.Text = "FC/NC";
//
// groupBox27
//
this.groupBox27.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox27.Controls.Add(this.lblNCErrNmbr);
this.groupBox27.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox27.Location = new System.Drawing.Point(13, 156);
this.groupBox27.Location = new System.Drawing.Point(8, 97);
this.groupBox27.Name = "groupBox27";
this.groupBox27.Size = new System.Drawing.Size(86, 39);
this.groupBox27.TabIndex = 7;
1040,7 → 1122,7
this.groupBox19.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox19.Controls.Add(this.lblNCSPI);
this.groupBox19.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox19.Location = new System.Drawing.Point(13, 113);
this.groupBox19.Location = new System.Drawing.Point(8, 54);
this.groupBox19.Name = "groupBox19";
this.groupBox19.Size = new System.Drawing.Size(86, 39);
this.groupBox19.TabIndex = 7;
1062,7 → 1144,7
this.groupBox18.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox18.Controls.Add(this.lblNCI2C);
this.groupBox18.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox18.Location = new System.Drawing.Point(13, 70);
this.groupBox18.Location = new System.Drawing.Point(8, 11);
this.groupBox18.Name = "groupBox18";
this.groupBox18.Size = new System.Drawing.Size(86, 39);
this.groupBox18.TabIndex = 6;
1082,7 → 1164,7
// groupBox33
//
this.groupBox33.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox33.Controls.Add(this.lblNCDist);
this.groupBox33.Controls.Add(this.lblNCDistHP);
this.groupBox33.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox33.Location = new System.Drawing.Point(803, 131);
this.groupBox33.Name = "groupBox33";
1091,21 → 1173,21
this.groupBox33.TabStop = false;
this.groupBox33.Text = "Distance (HP)";
//
// lblNCDist
// lblNCDistHP
//
this.lblNCDist.AutoSize = true;
this.lblNCDist.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCDist.Location = new System.Drawing.Point(5, 23);
this.lblNCDist.Name = "lblNCDist";
this.lblNCDist.Size = new System.Drawing.Size(54, 29);
this.lblNCDist.TabIndex = 0;
this.lblNCDist.Text = "Dist";
this.lblNCDistHP.AutoSize = true;
this.lblNCDistHP.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCDistHP.Location = new System.Drawing.Point(5, 23);
this.lblNCDistHP.Name = "lblNCDistHP";
this.lblNCDistHP.Size = new System.Drawing.Size(54, 29);
this.lblNCDistHP.TabIndex = 0;
this.lblNCDistHP.Text = "Dist";
//
// groupBox26
//
this.groupBox26.Controls.Add(this.lblNCCap);
this.groupBox26.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox26.Location = new System.Drawing.Point(7, 128);
this.groupBox26.Location = new System.Drawing.Point(7, 122);
this.groupBox26.Name = "groupBox26";
this.groupBox26.Size = new System.Drawing.Size(124, 52);
this.groupBox26.TabIndex = 8;
1126,7 → 1208,7
//
this.groupBox29.Controls.Add(this.lblNCFlTime);
this.groupBox29.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox29.Location = new System.Drawing.Point(7, 195);
this.groupBox29.Location = new System.Drawing.Point(7, 182);
this.groupBox29.Name = "groupBox29";
this.groupBox29.Size = new System.Drawing.Size(100, 39);
this.groupBox29.TabIndex = 7;
1147,7 → 1229,7
//
this.groupBox28.Controls.Add(this.lblNCRC);
this.groupBox28.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox28.Location = new System.Drawing.Point(7, 241);
this.groupBox28.Location = new System.Drawing.Point(7, 228);
this.groupBox28.Name = "groupBox28";
this.groupBox28.Size = new System.Drawing.Size(100, 39);
this.groupBox28.TabIndex = 7;
1164,373 → 1246,11
this.lblNCRC.TabIndex = 0;
this.lblNCRC.Text = "RC";
//
// groupBox6
//
this.groupBox6.Controls.Add(this.groupBox9);
this.groupBox6.Controls.Add(this.groupBox12);
this.groupBox6.Controls.Add(this.groupBox15);
this.groupBox6.Controls.Add(this.groupBox20);
this.groupBox6.Controls.Add(this.groupBox21);
this.groupBox6.Controls.Add(this.groupBox22);
this.groupBox6.Controls.Add(this.groupBox23);
this.groupBox6.Controls.Add(this.groupBox24);
this.groupBox6.Controls.Add(this.groupBox7);
this.groupBox6.Controls.Add(this.groupBox16);
this.groupBox6.Controls.Add(this.groupBox8);
this.groupBox6.Controls.Add(this.groupBox13);
this.groupBox6.Controls.Add(this.groupBox17);
this.groupBox6.Controls.Add(this.groupBox11);
this.groupBox6.Controls.Add(this.groupBox14);
this.groupBox6.Controls.Add(this.groupBox10);
this.groupBox6.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox6.Location = new System.Drawing.Point(143, 12);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(368, 216);
this.groupBox6.TabIndex = 5;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "Motors";
//
// groupBox9
//
this.groupBox9.Controls.Add(this.LBLNCM5Cur);
this.groupBox9.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox9.Location = new System.Drawing.Point(187, 21);
this.groupBox9.Name = "groupBox9";
this.groupBox9.Size = new System.Drawing.Size(82, 45);
this.groupBox9.TabIndex = 6;
this.groupBox9.TabStop = false;
this.groupBox9.Text = "Current 5";
//
// LBLNCM5Cur
//
this.LBLNCM5Cur.AutoSize = true;
this.LBLNCM5Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM5Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM5Cur.Name = "LBLNCM5Cur";
this.LBLNCM5Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM5Cur.TabIndex = 0;
this.LBLNCM5Cur.Text = "Cur";
//
// groupBox12
//
this.groupBox12.Controls.Add(this.LBLNCM8Temp);
this.groupBox12.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox12.Location = new System.Drawing.Point(275, 161);
this.groupBox12.Name = "groupBox12";
this.groupBox12.Size = new System.Drawing.Size(82, 45);
this.groupBox12.TabIndex = 7;
this.groupBox12.TabStop = false;
this.groupBox12.Text = "Temp 8";
//
// LBLNCM8Temp
//
this.LBLNCM8Temp.AutoSize = true;
this.LBLNCM8Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM8Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM8Temp.Name = "LBLNCM8Temp";
this.LBLNCM8Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM8Temp.TabIndex = 0;
this.LBLNCM8Temp.Text = "Temp";
//
// groupBox15
//
this.groupBox15.Controls.Add(this.LBLNCM5Temp);
this.groupBox15.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox15.Location = new System.Drawing.Point(275, 21);
this.groupBox15.Name = "groupBox15";
this.groupBox15.Size = new System.Drawing.Size(82, 45);
this.groupBox15.TabIndex = 8;
this.groupBox15.TabStop = false;
this.groupBox15.Text = "Temp 5";
//
// LBLNCM5Temp
//
this.LBLNCM5Temp.AutoSize = true;
this.LBLNCM5Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM5Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM5Temp.Name = "LBLNCM5Temp";
this.LBLNCM5Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM5Temp.TabIndex = 0;
this.LBLNCM5Temp.Text = "Temp";
//
// groupBox20
//
this.groupBox20.Controls.Add(this.LBLNCM7Temp);
this.groupBox20.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox20.Location = new System.Drawing.Point(275, 115);
this.groupBox20.Name = "groupBox20";
this.groupBox20.Size = new System.Drawing.Size(82, 45);
this.groupBox20.TabIndex = 9;
this.groupBox20.TabStop = false;
this.groupBox20.Text = "Temp 7";
//
// LBLNCM7Temp
//
this.LBLNCM7Temp.AutoSize = true;
this.LBLNCM7Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM7Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM7Temp.Name = "LBLNCM7Temp";
this.LBLNCM7Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM7Temp.TabIndex = 0;
this.LBLNCM7Temp.Text = "Temp";
//
// groupBox21
//
this.groupBox21.Controls.Add(this.LBLNCM8Cur);
this.groupBox21.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox21.Location = new System.Drawing.Point(187, 161);
this.groupBox21.Name = "groupBox21";
this.groupBox21.Size = new System.Drawing.Size(82, 45);
this.groupBox21.TabIndex = 10;
this.groupBox21.TabStop = false;
this.groupBox21.Text = "Current 8";
//
// LBLNCM8Cur
//
this.LBLNCM8Cur.AutoSize = true;
this.LBLNCM8Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM8Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM8Cur.Name = "LBLNCM8Cur";
this.LBLNCM8Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM8Cur.TabIndex = 0;
this.LBLNCM8Cur.Text = "Cur";
//
// groupBox22
//
this.groupBox22.Controls.Add(this.LBLNCM6Cur);
this.groupBox22.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox22.Location = new System.Drawing.Point(187, 68);
this.groupBox22.Name = "groupBox22";
this.groupBox22.Size = new System.Drawing.Size(82, 45);
this.groupBox22.TabIndex = 11;
this.groupBox22.TabStop = false;
this.groupBox22.Text = "Current 6";
//
// LBLNCM6Cur
//
this.LBLNCM6Cur.AutoSize = true;
this.LBLNCM6Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM6Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM6Cur.Name = "LBLNCM6Cur";
this.LBLNCM6Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM6Cur.TabIndex = 0;
this.LBLNCM6Cur.Text = "Cur";
//
// groupBox23
//
this.groupBox23.Controls.Add(this.LBLNCM7Cur);
this.groupBox23.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox23.Location = new System.Drawing.Point(187, 115);
this.groupBox23.Name = "groupBox23";
this.groupBox23.Size = new System.Drawing.Size(82, 45);
this.groupBox23.TabIndex = 12;
this.groupBox23.TabStop = false;
this.groupBox23.Text = "Current 7";
//
// LBLNCM7Cur
//
this.LBLNCM7Cur.AutoSize = true;
this.LBLNCM7Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM7Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM7Cur.Name = "LBLNCM7Cur";
this.LBLNCM7Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM7Cur.TabIndex = 0;
this.LBLNCM7Cur.Text = "Cur";
//
// groupBox24
//
this.groupBox24.Controls.Add(this.LBLNCM6Temp);
this.groupBox24.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox24.Location = new System.Drawing.Point(275, 68);
this.groupBox24.Name = "groupBox24";
this.groupBox24.Size = new System.Drawing.Size(82, 45);
this.groupBox24.TabIndex = 13;
this.groupBox24.TabStop = false;
this.groupBox24.Text = "Temp 6";
//
// LBLNCM6Temp
//
this.LBLNCM6Temp.AutoSize = true;
this.LBLNCM6Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM6Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM6Temp.Name = "LBLNCM6Temp";
this.LBLNCM6Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM6Temp.TabIndex = 0;
this.LBLNCM6Temp.Text = "Temp";
//
// groupBox7
//
this.groupBox7.Controls.Add(this.LBLNCM1Cur);
this.groupBox7.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox7.Location = new System.Drawing.Point(9, 21);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(82, 45);
this.groupBox7.TabIndex = 5;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "Current 1";
//
// LBLNCM1Cur
//
this.LBLNCM1Cur.AutoSize = true;
this.LBLNCM1Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM1Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM1Cur.Name = "LBLNCM1Cur";
this.LBLNCM1Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM1Cur.TabIndex = 0;
this.LBLNCM1Cur.Text = "Cur";
//
// groupBox16
//
this.groupBox16.Controls.Add(this.LBLNCM4Temp);
this.groupBox16.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox16.Location = new System.Drawing.Point(98, 161);
this.groupBox16.Name = "groupBox16";
this.groupBox16.Size = new System.Drawing.Size(82, 45);
this.groupBox16.TabIndex = 5;
this.groupBox16.TabStop = false;
this.groupBox16.Text = "Temp 4";
//
// LBLNCM4Temp
//
this.LBLNCM4Temp.AutoSize = true;
this.LBLNCM4Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM4Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM4Temp.Name = "LBLNCM4Temp";
this.LBLNCM4Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM4Temp.TabIndex = 0;
this.LBLNCM4Temp.Text = "Temp";
//
// groupBox8
//
this.groupBox8.Controls.Add(this.LBLNCM1Temp);
this.groupBox8.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox8.Location = new System.Drawing.Point(97, 21);
this.groupBox8.Name = "groupBox8";
this.groupBox8.Size = new System.Drawing.Size(82, 45);
this.groupBox8.TabIndex = 5;
this.groupBox8.TabStop = false;
this.groupBox8.Text = "Temp 1";
//
// LBLNCM1Temp
//
this.LBLNCM1Temp.AutoSize = true;
this.LBLNCM1Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM1Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM1Temp.Name = "LBLNCM1Temp";
this.LBLNCM1Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM1Temp.TabIndex = 0;
this.LBLNCM1Temp.Text = "Temp";
//
// groupBox13
//
this.groupBox13.Controls.Add(this.LBLNCM3Temp);
this.groupBox13.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox13.Location = new System.Drawing.Point(97, 115);
this.groupBox13.Name = "groupBox13";
this.groupBox13.Size = new System.Drawing.Size(82, 45);
this.groupBox13.TabIndex = 5;
this.groupBox13.TabStop = false;
this.groupBox13.Text = "Temp 3";
//
// LBLNCM3Temp
//
this.LBLNCM3Temp.AutoSize = true;
this.LBLNCM3Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM3Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM3Temp.Name = "LBLNCM3Temp";
this.LBLNCM3Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM3Temp.TabIndex = 0;
this.LBLNCM3Temp.Text = "Temp";
//
// groupBox17
//
this.groupBox17.Controls.Add(this.LBLNCM4Cur);
this.groupBox17.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox17.Location = new System.Drawing.Point(9, 161);
this.groupBox17.Name = "groupBox17";
this.groupBox17.Size = new System.Drawing.Size(82, 45);
this.groupBox17.TabIndex = 5;
this.groupBox17.TabStop = false;
this.groupBox17.Text = "Current 4";
//
// LBLNCM4Cur
//
this.LBLNCM4Cur.AutoSize = true;
this.LBLNCM4Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM4Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM4Cur.Name = "LBLNCM4Cur";
this.LBLNCM4Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM4Cur.TabIndex = 0;
this.LBLNCM4Cur.Text = "Cur";
//
// groupBox11
//
this.groupBox11.Controls.Add(this.LBLNCM2Cur);
this.groupBox11.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox11.Location = new System.Drawing.Point(9, 68);
this.groupBox11.Name = "groupBox11";
this.groupBox11.Size = new System.Drawing.Size(82, 45);
this.groupBox11.TabIndex = 5;
this.groupBox11.TabStop = false;
this.groupBox11.Text = "Current 2";
//
// LBLNCM2Cur
//
this.LBLNCM2Cur.AutoSize = true;
this.LBLNCM2Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM2Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM2Cur.Name = "LBLNCM2Cur";
this.LBLNCM2Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM2Cur.TabIndex = 0;
this.LBLNCM2Cur.Text = "Cur";
//
// groupBox14
//
this.groupBox14.Controls.Add(this.LBLNCM3Cur);
this.groupBox14.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox14.Location = new System.Drawing.Point(9, 115);
this.groupBox14.Name = "groupBox14";
this.groupBox14.Size = new System.Drawing.Size(82, 45);
this.groupBox14.TabIndex = 5;
this.groupBox14.TabStop = false;
this.groupBox14.Text = "Current 3";
//
// LBLNCM3Cur
//
this.LBLNCM3Cur.AutoSize = true;
this.LBLNCM3Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM3Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM3Cur.Name = "LBLNCM3Cur";
this.LBLNCM3Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM3Cur.TabIndex = 0;
this.LBLNCM3Cur.Text = "Cur";
//
// groupBox10
//
this.groupBox10.Controls.Add(this.LBLNCM2Temp);
this.groupBox10.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox10.Location = new System.Drawing.Point(97, 68);
this.groupBox10.Name = "groupBox10";
this.groupBox10.Size = new System.Drawing.Size(82, 45);
this.groupBox10.TabIndex = 5;
this.groupBox10.TabStop = false;
this.groupBox10.Text = "Temp 2";
//
// LBLNCM2Temp
//
this.LBLNCM2Temp.AutoSize = true;
this.LBLNCM2Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM2Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM2Temp.Name = "LBLNCM2Temp";
this.LBLNCM2Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM2Temp.TabIndex = 0;
this.LBLNCM2Temp.Text = "Temp";
//
// groupBox5
//
this.groupBox5.Controls.Add(this.lblNCSat);
this.groupBox5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox5.Location = new System.Drawing.Point(7, 415);
this.groupBox5.Location = new System.Drawing.Point(7, 333);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(124, 52);
this.groupBox5.TabIndex = 5;
1551,7 → 1271,7
//
this.groupBox4.Controls.Add(this.lblNCMF);
this.groupBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox4.Location = new System.Drawing.Point(7, 353);
this.groupBox4.Location = new System.Drawing.Point(7, 278);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(124, 52);
this.groupBox4.TabIndex = 5;
1572,7 → 1292,7
//
this.groupBox3.Controls.Add(this.lblNCCur);
this.groupBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox3.Location = new System.Drawing.Point(7, 70);
this.groupBox3.Location = new System.Drawing.Point(7, 67);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(124, 52);
this.groupBox3.TabIndex = 5;
1656,7 → 1376,7
//
// headingIndicator1
//
this.headingIndicator1.Location = new System.Drawing.Point(228, 240);
this.headingIndicator1.Location = new System.Drawing.Point(188, 221);
this.headingIndicator1.Name = "headingIndicator1";
this.headingIndicator1.Size = new System.Drawing.Size(210, 210);
this.headingIndicator1.TabIndex = 2;
1666,7 → 1386,7
this.artificialHorizon1.AutoScroll = true;
this.artificialHorizon1.BackColor = System.Drawing.Color.White;
this.artificialHorizon1.ForeColor = System.Drawing.Color.White;
this.artificialHorizon1.Location = new System.Drawing.Point(521, 240);
this.artificialHorizon1.Location = new System.Drawing.Point(467, 221);
this.artificialHorizon1.Name = "artificialHorizon1";
this.artificialHorizon1.pitch_angle = 0D;
this.artificialHorizon1.roll_angle = 0D;
1677,7 → 1397,7
//
this.lblNCCompass.AutoSize = true;
this.lblNCCompass.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCCompass.Location = new System.Drawing.Point(310, 449);
this.lblNCCompass.Location = new System.Drawing.Point(270, 430);
this.lblNCCompass.Name = "lblNCCompass";
this.lblNCCompass.Size = new System.Drawing.Size(115, 29);
this.lblNCCompass.TabIndex = 0;
1688,7 → 1408,7
//
this.lblNCRoll.AutoSize = true;
this.lblNCRoll.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCRoll.Location = new System.Drawing.Point(599, 449);
this.lblNCRoll.Location = new System.Drawing.Point(545, 430);
this.lblNCRoll.Name = "lblNCRoll";
this.lblNCRoll.Size = new System.Drawing.Size(56, 29);
this.lblNCRoll.TabIndex = 0;
1699,7 → 1419,7
//
this.lblNCPitch.AutoSize = true;
this.lblNCPitch.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCPitch.Location = new System.Drawing.Point(467, 332);
this.lblNCPitch.Location = new System.Drawing.Point(413, 313);
this.lblNCPitch.Name = "lblNCPitch";
this.lblNCPitch.Size = new System.Drawing.Size(66, 29);
this.lblNCPitch.TabIndex = 0;
1706,6 → 1426,70
this.lblNCPitch.Text = "Pitch";
this.lblNCPitch.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblCRCErr
//
this.lblCRCErr.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.lblCRCErr.AutoSize = true;
this.lblCRCErr.Font = new System.Drawing.Font("Arial Narrow", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblCRCErr.Location = new System.Drawing.Point(641, 28);
this.lblCRCErr.Name = "lblCRCErr";
this.lblCRCErr.Size = new System.Drawing.Size(14, 16);
this.lblCRCErr.TabIndex = 12;
this.lblCRCErr.Text = "0";
//
// label6
//
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Arial Narrow", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.Location = new System.Drawing.Point(560, 28);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(61, 16);
this.label6.TabIndex = 11;
this.label6.Text = "CRC-Error";
//
// lblLifeCounter
//
this.lblLifeCounter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.lblLifeCounter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.lblLifeCounter.Location = new System.Drawing.Point(641, 9);
this.lblLifeCounter.Name = "lblLifeCounter";
this.lblLifeCounter.Size = new System.Drawing.Size(14, 14);
this.lblLifeCounter.TabIndex = 10;
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Arial Narrow", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(559, 7);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(79, 16);
this.label1.TabIndex = 9;
this.label1.Text = "Communication";
//
// groupBox31
//
this.groupBox31.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox31.Controls.Add(this.lblNCCtrl);
this.groupBox31.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox31.Location = new System.Drawing.Point(476, 7);
this.groupBox31.Name = "groupBox31";
this.groupBox31.Size = new System.Drawing.Size(82, 39);
this.groupBox31.TabIndex = 8;
this.groupBox31.TabStop = false;
this.groupBox31.Text = "Controller";
//
// lblNCCtrl
//
this.lblNCCtrl.AutoSize = true;
this.lblNCCtrl.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCCtrl.Location = new System.Drawing.Point(6, 16);
this.lblNCCtrl.Name = "lblNCCtrl";
this.lblNCCtrl.Size = new System.Drawing.Size(61, 20);
this.lblNCCtrl.TabIndex = 0;
this.lblNCCtrl.Text = "FC/NC";
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage3);
1716,11 → 1500,12
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(953, 512);
this.tabControl1.Size = new System.Drawing.Size(953, 517);
this.tabControl1.TabIndex = 15;
//
// tabPageTesting
//
this.tabPageTesting.Controls.Add(this.groupBox6);
this.tabPageTesting.Controls.Add(this.lbLabels);
this.tabPageTesting.Controls.Add(this.btnOSDAuto);
this.tabPageTesting.Controls.Add(this.btnOSD);
1734,16 → 1519,378
this.tabPageTesting.Location = new System.Drawing.Point(4, 27);
this.tabPageTesting.Name = "tabPageTesting";
this.tabPageTesting.Padding = new System.Windows.Forms.Padding(3);
this.tabPageTesting.Size = new System.Drawing.Size(945, 482);
this.tabPageTesting.Size = new System.Drawing.Size(945, 483);
this.tabPageTesting.TabIndex = 3;
this.tabPageTesting.Text = "testing";
this.tabPageTesting.UseVisualStyleBackColor = true;
//
// groupBox6
//
this.groupBox6.Controls.Add(this.gbM5Curr);
this.groupBox6.Controls.Add(this.gbM8Temp);
this.groupBox6.Controls.Add(this.gbM5Temp);
this.groupBox6.Controls.Add(this.gbM7Temp);
this.groupBox6.Controls.Add(this.gbM8Curr);
this.groupBox6.Controls.Add(this.gbM6Curr);
this.groupBox6.Controls.Add(this.gbM7Curr);
this.groupBox6.Controls.Add(this.gbM6Temp);
this.groupBox6.Controls.Add(this.gbM1Curr);
this.groupBox6.Controls.Add(this.gbM4Temp);
this.groupBox6.Controls.Add(this.gbM1Temp);
this.groupBox6.Controls.Add(this.gbM3Temp);
this.groupBox6.Controls.Add(this.gbM4Curr);
this.groupBox6.Controls.Add(this.gbM2Curr);
this.groupBox6.Controls.Add(this.gbM3Curr);
this.groupBox6.Controls.Add(this.gbM2Temp);
this.groupBox6.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox6.Location = new System.Drawing.Point(288, 136);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(368, 215);
this.groupBox6.TabIndex = 34;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "Motors";
//
// gbM5Curr
//
this.gbM5Curr.Controls.Add(this.LBLNCM5Cur);
this.gbM5Curr.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM5Curr.Location = new System.Drawing.Point(187, 21);
this.gbM5Curr.Name = "gbM5Curr";
this.gbM5Curr.Size = new System.Drawing.Size(82, 45);
this.gbM5Curr.TabIndex = 6;
this.gbM5Curr.TabStop = false;
this.gbM5Curr.Text = "Current 5";
//
// LBLNCM5Cur
//
this.LBLNCM5Cur.AutoSize = true;
this.LBLNCM5Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM5Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM5Cur.Name = "LBLNCM5Cur";
this.LBLNCM5Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM5Cur.TabIndex = 0;
this.LBLNCM5Cur.Text = "Cur";
//
// gbM8Temp
//
this.gbM8Temp.Controls.Add(this.LBLNCM8Temp);
this.gbM8Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM8Temp.Location = new System.Drawing.Point(275, 161);
this.gbM8Temp.Name = "gbM8Temp";
this.gbM8Temp.Size = new System.Drawing.Size(82, 45);
this.gbM8Temp.TabIndex = 7;
this.gbM8Temp.TabStop = false;
this.gbM8Temp.Text = "Temp 8";
//
// LBLNCM8Temp
//
this.LBLNCM8Temp.AutoSize = true;
this.LBLNCM8Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM8Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM8Temp.Name = "LBLNCM8Temp";
this.LBLNCM8Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM8Temp.TabIndex = 0;
this.LBLNCM8Temp.Text = "Temp";
//
// gbM5Temp
//
this.gbM5Temp.Controls.Add(this.LBLNCM5Temp);
this.gbM5Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM5Temp.Location = new System.Drawing.Point(275, 21);
this.gbM5Temp.Name = "gbM5Temp";
this.gbM5Temp.Size = new System.Drawing.Size(82, 45);
this.gbM5Temp.TabIndex = 8;
this.gbM5Temp.TabStop = false;
this.gbM5Temp.Text = "Temp 5";
//
// LBLNCM5Temp
//
this.LBLNCM5Temp.AutoSize = true;
this.LBLNCM5Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM5Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM5Temp.Name = "LBLNCM5Temp";
this.LBLNCM5Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM5Temp.TabIndex = 0;
this.LBLNCM5Temp.Text = "Temp";
//
// gbM7Temp
//
this.gbM7Temp.Controls.Add(this.LBLNCM7Temp);
this.gbM7Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM7Temp.Location = new System.Drawing.Point(275, 115);
this.gbM7Temp.Name = "gbM7Temp";
this.gbM7Temp.Size = new System.Drawing.Size(82, 45);
this.gbM7Temp.TabIndex = 9;
this.gbM7Temp.TabStop = false;
this.gbM7Temp.Text = "Temp 7";
//
// LBLNCM7Temp
//
this.LBLNCM7Temp.AutoSize = true;
this.LBLNCM7Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM7Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM7Temp.Name = "LBLNCM7Temp";
this.LBLNCM7Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM7Temp.TabIndex = 0;
this.LBLNCM7Temp.Text = "Temp";
//
// gbM8Curr
//
this.gbM8Curr.Controls.Add(this.LBLNCM8Cur);
this.gbM8Curr.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM8Curr.Location = new System.Drawing.Point(187, 161);
this.gbM8Curr.Name = "gbM8Curr";
this.gbM8Curr.Size = new System.Drawing.Size(82, 45);
this.gbM8Curr.TabIndex = 10;
this.gbM8Curr.TabStop = false;
this.gbM8Curr.Text = "Current 8";
//
// LBLNCM8Cur
//
this.LBLNCM8Cur.AutoSize = true;
this.LBLNCM8Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM8Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM8Cur.Name = "LBLNCM8Cur";
this.LBLNCM8Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM8Cur.TabIndex = 0;
this.LBLNCM8Cur.Text = "Cur";
//
// gbM6Curr
//
this.gbM6Curr.Controls.Add(this.LBLNCM6Cur);
this.gbM6Curr.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM6Curr.Location = new System.Drawing.Point(187, 68);
this.gbM6Curr.Name = "gbM6Curr";
this.gbM6Curr.Size = new System.Drawing.Size(82, 45);
this.gbM6Curr.TabIndex = 11;
this.gbM6Curr.TabStop = false;
this.gbM6Curr.Text = "Current 6";
//
// LBLNCM6Cur
//
this.LBLNCM6Cur.AutoSize = true;
this.LBLNCM6Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM6Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM6Cur.Name = "LBLNCM6Cur";
this.LBLNCM6Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM6Cur.TabIndex = 0;
this.LBLNCM6Cur.Text = "Cur";
//
// gbM7Curr
//
this.gbM7Curr.Controls.Add(this.LBLNCM7Cur);
this.gbM7Curr.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM7Curr.Location = new System.Drawing.Point(187, 115);
this.gbM7Curr.Name = "gbM7Curr";
this.gbM7Curr.Size = new System.Drawing.Size(82, 45);
this.gbM7Curr.TabIndex = 12;
this.gbM7Curr.TabStop = false;
this.gbM7Curr.Text = "Current 7";
//
// LBLNCM7Cur
//
this.LBLNCM7Cur.AutoSize = true;
this.LBLNCM7Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM7Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM7Cur.Name = "LBLNCM7Cur";
this.LBLNCM7Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM7Cur.TabIndex = 0;
this.LBLNCM7Cur.Text = "Cur";
//
// gbM6Temp
//
this.gbM6Temp.Controls.Add(this.LBLNCM6Temp);
this.gbM6Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM6Temp.Location = new System.Drawing.Point(275, 68);
this.gbM6Temp.Name = "gbM6Temp";
this.gbM6Temp.Size = new System.Drawing.Size(82, 45);
this.gbM6Temp.TabIndex = 13;
this.gbM6Temp.TabStop = false;
this.gbM6Temp.Text = "Temp 6";
//
// LBLNCM6Temp
//
this.LBLNCM6Temp.AutoSize = true;
this.LBLNCM6Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM6Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM6Temp.Name = "LBLNCM6Temp";
this.LBLNCM6Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM6Temp.TabIndex = 0;
this.LBLNCM6Temp.Text = "Temp";
//
// gbM1Curr
//
this.gbM1Curr.Controls.Add(this.LBLNCM1Cur);
this.gbM1Curr.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM1Curr.Location = new System.Drawing.Point(9, 21);
this.gbM1Curr.Name = "gbM1Curr";
this.gbM1Curr.Size = new System.Drawing.Size(82, 45);
this.gbM1Curr.TabIndex = 5;
this.gbM1Curr.TabStop = false;
this.gbM1Curr.Text = "Current 1";
//
// LBLNCM1Cur
//
this.LBLNCM1Cur.AutoSize = true;
this.LBLNCM1Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM1Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM1Cur.Name = "LBLNCM1Cur";
this.LBLNCM1Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM1Cur.TabIndex = 0;
this.LBLNCM1Cur.Text = "Cur";
//
// gbM4Temp
//
this.gbM4Temp.Controls.Add(this.LBLNCM4Temp);
this.gbM4Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM4Temp.Location = new System.Drawing.Point(98, 161);
this.gbM4Temp.Name = "gbM4Temp";
this.gbM4Temp.Size = new System.Drawing.Size(82, 45);
this.gbM4Temp.TabIndex = 5;
this.gbM4Temp.TabStop = false;
this.gbM4Temp.Text = "Temp 4";
//
// LBLNCM4Temp
//
this.LBLNCM4Temp.AutoSize = true;
this.LBLNCM4Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM4Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM4Temp.Name = "LBLNCM4Temp";
this.LBLNCM4Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM4Temp.TabIndex = 0;
this.LBLNCM4Temp.Text = "Temp";
//
// gbM1Temp
//
this.gbM1Temp.Controls.Add(this.LBLNCM1Temp);
this.gbM1Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM1Temp.Location = new System.Drawing.Point(97, 21);
this.gbM1Temp.Name = "gbM1Temp";
this.gbM1Temp.Size = new System.Drawing.Size(82, 45);
this.gbM1Temp.TabIndex = 5;
this.gbM1Temp.TabStop = false;
this.gbM1Temp.Text = "Temp 1";
//
// LBLNCM1Temp
//
this.LBLNCM1Temp.AutoSize = true;
this.LBLNCM1Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM1Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM1Temp.Name = "LBLNCM1Temp";
this.LBLNCM1Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM1Temp.TabIndex = 0;
this.LBLNCM1Temp.Text = "Temp";
//
// gbM3Temp
//
this.gbM3Temp.Controls.Add(this.LBLNCM3Temp);
this.gbM3Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM3Temp.Location = new System.Drawing.Point(97, 115);
this.gbM3Temp.Name = "gbM3Temp";
this.gbM3Temp.Size = new System.Drawing.Size(82, 45);
this.gbM3Temp.TabIndex = 5;
this.gbM3Temp.TabStop = false;
this.gbM3Temp.Text = "Temp 3";
//
// LBLNCM3Temp
//
this.LBLNCM3Temp.AutoSize = true;
this.LBLNCM3Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM3Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM3Temp.Name = "LBLNCM3Temp";
this.LBLNCM3Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM3Temp.TabIndex = 0;
this.LBLNCM3Temp.Text = "Temp";
//
// gbM4Curr
//
this.gbM4Curr.Controls.Add(this.LBLNCM4Cur);
this.gbM4Curr.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM4Curr.Location = new System.Drawing.Point(9, 161);
this.gbM4Curr.Name = "gbM4Curr";
this.gbM4Curr.Size = new System.Drawing.Size(82, 45);
this.gbM4Curr.TabIndex = 5;
this.gbM4Curr.TabStop = false;
this.gbM4Curr.Text = "Current 4";
//
// LBLNCM4Cur
//
this.LBLNCM4Cur.AutoSize = true;
this.LBLNCM4Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM4Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM4Cur.Name = "LBLNCM4Cur";
this.LBLNCM4Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM4Cur.TabIndex = 0;
this.LBLNCM4Cur.Text = "Cur";
//
// gbM2Curr
//
this.gbM2Curr.Controls.Add(this.LBLNCM2Cur);
this.gbM2Curr.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM2Curr.Location = new System.Drawing.Point(9, 68);
this.gbM2Curr.Name = "gbM2Curr";
this.gbM2Curr.Size = new System.Drawing.Size(82, 45);
this.gbM2Curr.TabIndex = 5;
this.gbM2Curr.TabStop = false;
this.gbM2Curr.Text = "Current 2";
//
// LBLNCM2Cur
//
this.LBLNCM2Cur.AutoSize = true;
this.LBLNCM2Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM2Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM2Cur.Name = "LBLNCM2Cur";
this.LBLNCM2Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM2Cur.TabIndex = 0;
this.LBLNCM2Cur.Text = "Cur";
//
// gbM3Curr
//
this.gbM3Curr.Controls.Add(this.LBLNCM3Cur);
this.gbM3Curr.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM3Curr.Location = new System.Drawing.Point(9, 115);
this.gbM3Curr.Name = "gbM3Curr";
this.gbM3Curr.Size = new System.Drawing.Size(82, 45);
this.gbM3Curr.TabIndex = 5;
this.gbM3Curr.TabStop = false;
this.gbM3Curr.Text = "Current 3";
//
// LBLNCM3Cur
//
this.LBLNCM3Cur.AutoSize = true;
this.LBLNCM3Cur.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM3Cur.Location = new System.Drawing.Point(3, 16);
this.LBLNCM3Cur.Name = "LBLNCM3Cur";
this.LBLNCM3Cur.Size = new System.Drawing.Size(40, 24);
this.LBLNCM3Cur.TabIndex = 0;
this.LBLNCM3Cur.Text = "Cur";
//
// gbM2Temp
//
this.gbM2Temp.Controls.Add(this.LBLNCM2Temp);
this.gbM2Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.gbM2Temp.Location = new System.Drawing.Point(97, 68);
this.gbM2Temp.Name = "gbM2Temp";
this.gbM2Temp.Size = new System.Drawing.Size(82, 45);
this.gbM2Temp.TabIndex = 5;
this.gbM2Temp.TabStop = false;
this.gbM2Temp.Text = "Temp 2";
//
// LBLNCM2Temp
//
this.LBLNCM2Temp.AutoSize = true;
this.LBLNCM2Temp.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LBLNCM2Temp.Location = new System.Drawing.Point(3, 16);
this.LBLNCM2Temp.Name = "LBLNCM2Temp";
this.LBLNCM2Temp.Size = new System.Drawing.Size(60, 24);
this.LBLNCM2Temp.TabIndex = 0;
this.LBLNCM2Temp.Text = "Temp";
//
// btnConn
//
this.btnConn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnConn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnConn.Location = new System.Drawing.Point(661, 4);
this.btnConn.Location = new System.Drawing.Point(661, -2);
this.btnConn.Name = "btnConn";
this.btnConn.Size = new System.Drawing.Size(141, 55);
this.btnConn.TabIndex = 28;
1754,7 → 1901,7
// rtfError
//
this.rtfError.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.rtfError.Location = new System.Drawing.Point(268, 2);
this.rtfError.Location = new System.Drawing.Point(268, -4);
this.rtfError.Name = "rtfError";
this.rtfError.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
this.rtfError.Size = new System.Drawing.Size(204, 58);
1776,12 → 1923,17
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.groupBox31);
this.splitContainer1.Panel2.Controls.Add(this.lblCRCErr);
this.splitContainer1.Panel2.Controls.Add(this.rtfTerminal);
this.splitContainer1.Panel2.Controls.Add(this.label6);
this.splitContainer1.Panel2.Controls.Add(this.btnReadDebugCont);
this.splitContainer1.Panel2.Controls.Add(this.lblLifeCounter);
this.splitContainer1.Panel2.Controls.Add(this.label1);
this.splitContainer1.Panel2.Controls.Add(this.btnConn);
this.splitContainer1.Panel2.Controls.Add(this.rtfError);
this.splitContainer1.Size = new System.Drawing.Size(953, 575);
this.splitContainer1.SplitterDistance = 512;
this.splitContainer1.Size = new System.Drawing.Size(953, 574);
this.splitContainer1.SplitterDistance = 517;
this.splitContainer1.SplitterWidth = 1;
this.splitContainer1.TabIndex = 36;
//
1789,7 → 1941,7
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(953, 575);
this.ClientSize = new System.Drawing.Size(953, 574);
this.Controls.Add(this.splitContainer1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "MainForm";
1806,12 → 1958,16
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.groupBox7.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgvMotors2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgvMotors1)).EndInit();
this.groupBox39.ResumeLayout(false);
this.groupBox39.PerformLayout();
this.groupBox38.ResumeLayout(false);
this.groupBox38.PerformLayout();
this.groupBox36.ResumeLayout(false);
this.groupBox36.PerformLayout();
this.groupBox35.ResumeLayout(false);
this.groupBox35.PerformLayout();
this.groupBox31.ResumeLayout(false);
this.groupBox31.PerformLayout();
this.groupBox27.ResumeLayout(false);
this.groupBox27.PerformLayout();
this.groupBox19.ResumeLayout(false);
1826,39 → 1982,6
this.groupBox29.PerformLayout();
this.groupBox28.ResumeLayout(false);
this.groupBox28.PerformLayout();
this.groupBox6.ResumeLayout(false);
this.groupBox9.ResumeLayout(false);
this.groupBox9.PerformLayout();
this.groupBox12.ResumeLayout(false);
this.groupBox12.PerformLayout();
this.groupBox15.ResumeLayout(false);
this.groupBox15.PerformLayout();
this.groupBox20.ResumeLayout(false);
this.groupBox20.PerformLayout();
this.groupBox21.ResumeLayout(false);
this.groupBox21.PerformLayout();
this.groupBox22.ResumeLayout(false);
this.groupBox22.PerformLayout();
this.groupBox23.ResumeLayout(false);
this.groupBox23.PerformLayout();
this.groupBox24.ResumeLayout(false);
this.groupBox24.PerformLayout();
this.groupBox7.ResumeLayout(false);
this.groupBox7.PerformLayout();
this.groupBox16.ResumeLayout(false);
this.groupBox16.PerformLayout();
this.groupBox8.ResumeLayout(false);
this.groupBox8.PerformLayout();
this.groupBox13.ResumeLayout(false);
this.groupBox13.PerformLayout();
this.groupBox17.ResumeLayout(false);
this.groupBox17.PerformLayout();
this.groupBox11.ResumeLayout(false);
this.groupBox11.PerformLayout();
this.groupBox14.ResumeLayout(false);
this.groupBox14.PerformLayout();
this.groupBox10.ResumeLayout(false);
this.groupBox10.PerformLayout();
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.groupBox4.ResumeLayout(false);
1871,11 → 1994,47
this.groupBox25.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox31.ResumeLayout(false);
this.groupBox31.PerformLayout();
this.tabControl1.ResumeLayout(false);
this.tabPageTesting.ResumeLayout(false);
this.tabPageTesting.PerformLayout();
this.groupBox6.ResumeLayout(false);
this.gbM5Curr.ResumeLayout(false);
this.gbM5Curr.PerformLayout();
this.gbM8Temp.ResumeLayout(false);
this.gbM8Temp.PerformLayout();
this.gbM5Temp.ResumeLayout(false);
this.gbM5Temp.PerformLayout();
this.gbM7Temp.ResumeLayout(false);
this.gbM7Temp.PerformLayout();
this.gbM8Curr.ResumeLayout(false);
this.gbM8Curr.PerformLayout();
this.gbM6Curr.ResumeLayout(false);
this.gbM6Curr.PerformLayout();
this.gbM7Curr.ResumeLayout(false);
this.gbM7Curr.PerformLayout();
this.gbM6Temp.ResumeLayout(false);
this.gbM6Temp.PerformLayout();
this.gbM1Curr.ResumeLayout(false);
this.gbM1Curr.PerformLayout();
this.gbM4Temp.ResumeLayout(false);
this.gbM4Temp.PerformLayout();
this.gbM1Temp.ResumeLayout(false);
this.gbM1Temp.PerformLayout();
this.gbM3Temp.ResumeLayout(false);
this.gbM3Temp.PerformLayout();
this.gbM4Curr.ResumeLayout(false);
this.gbM4Curr.PerformLayout();
this.gbM2Curr.ResumeLayout(false);
this.gbM2Curr.PerformLayout();
this.gbM3Curr.ResumeLayout(false);
this.gbM3Curr.PerformLayout();
this.gbM2Temp.ResumeLayout(false);
this.gbM2Temp.PerformLayout();
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.Panel2.PerformLayout();
this.splitContainer1.ResumeLayout(false);
this.ResumeLayout(false);
 
1916,39 → 2075,6
private System.Windows.Forms.Label lblNCSPI;
private System.Windows.Forms.GroupBox groupBox18;
private System.Windows.Forms.Label lblNCI2C;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.GroupBox groupBox9;
private System.Windows.Forms.Label LBLNCM5Cur;
private System.Windows.Forms.GroupBox groupBox12;
private System.Windows.Forms.Label LBLNCM8Temp;
private System.Windows.Forms.GroupBox groupBox15;
private System.Windows.Forms.Label LBLNCM5Temp;
private System.Windows.Forms.GroupBox groupBox20;
private System.Windows.Forms.Label LBLNCM7Temp;
private System.Windows.Forms.GroupBox groupBox21;
private System.Windows.Forms.Label LBLNCM8Cur;
private System.Windows.Forms.GroupBox groupBox22;
private System.Windows.Forms.Label LBLNCM6Cur;
private System.Windows.Forms.GroupBox groupBox23;
private System.Windows.Forms.Label LBLNCM7Cur;
private System.Windows.Forms.GroupBox groupBox24;
private System.Windows.Forms.Label LBLNCM6Temp;
private System.Windows.Forms.GroupBox groupBox7;
private System.Windows.Forms.Label LBLNCM1Cur;
private System.Windows.Forms.GroupBox groupBox16;
private System.Windows.Forms.Label LBLNCM4Temp;
private System.Windows.Forms.GroupBox groupBox8;
private System.Windows.Forms.Label LBLNCM1Temp;
private System.Windows.Forms.GroupBox groupBox13;
private System.Windows.Forms.Label LBLNCM3Temp;
private System.Windows.Forms.GroupBox groupBox17;
private System.Windows.Forms.Label LBLNCM4Cur;
private System.Windows.Forms.GroupBox groupBox11;
private System.Windows.Forms.Label LBLNCM2Cur;
private System.Windows.Forms.GroupBox groupBox14;
private System.Windows.Forms.Label LBLNCM3Cur;
private System.Windows.Forms.GroupBox groupBox10;
private System.Windows.Forms.Label LBLNCM2Temp;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.Label lblNCSat;
private System.Windows.Forms.GroupBox groupBox4;
1977,7 → 2103,7
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label lblLifeCounter;
private System.Windows.Forms.GroupBox groupBox33;
private System.Windows.Forms.Label lblNCDist;
private System.Windows.Forms.Label lblNCDistHP;
private System.Windows.Forms.RichTextBox rtfOSD;
private System.Windows.Forms.Button btnOSD;
private System.Windows.Forms.Button btnOSDForward;
2012,6 → 2138,50
private System.Windows.Forms.Button btnOSDEnter;
private System.Windows.Forms.Label lblCRCErr;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.GroupBox groupBox38;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label lblNCGPSLat;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label lblNCGPSLong;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.GroupBox groupBox39;
private System.Windows.Forms.Label lblNCDistWP;
private System.Windows.Forms.DataGridView dgvMotors1;
private System.Windows.Forms.GroupBox groupBox7;
private System.Windows.Forms.DataGridView dgvMotors2;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.GroupBox gbM5Curr;
private System.Windows.Forms.Label LBLNCM5Cur;
private System.Windows.Forms.GroupBox gbM8Temp;
private System.Windows.Forms.Label LBLNCM8Temp;
private System.Windows.Forms.GroupBox gbM5Temp;
private System.Windows.Forms.Label LBLNCM5Temp;
private System.Windows.Forms.GroupBox gbM7Temp;
private System.Windows.Forms.Label LBLNCM7Temp;
private System.Windows.Forms.GroupBox gbM8Curr;
private System.Windows.Forms.Label LBLNCM8Cur;
private System.Windows.Forms.GroupBox gbM6Curr;
private System.Windows.Forms.Label LBLNCM6Cur;
private System.Windows.Forms.GroupBox gbM7Curr;
private System.Windows.Forms.Label LBLNCM7Cur;
private System.Windows.Forms.GroupBox gbM6Temp;
private System.Windows.Forms.Label LBLNCM6Temp;
private System.Windows.Forms.GroupBox gbM1Curr;
private System.Windows.Forms.Label LBLNCM1Cur;
private System.Windows.Forms.GroupBox gbM4Temp;
private System.Windows.Forms.Label LBLNCM4Temp;
private System.Windows.Forms.GroupBox gbM1Temp;
private System.Windows.Forms.Label LBLNCM1Temp;
private System.Windows.Forms.GroupBox gbM3Temp;
private System.Windows.Forms.Label LBLNCM3Temp;
private System.Windows.Forms.GroupBox gbM4Curr;
private System.Windows.Forms.Label LBLNCM4Cur;
private System.Windows.Forms.GroupBox gbM2Curr;
private System.Windows.Forms.Label LBLNCM2Cur;
private System.Windows.Forms.GroupBox gbM3Curr;
private System.Windows.Forms.Label LBLNCM3Cur;
private System.Windows.Forms.GroupBox gbM2Temp;
private System.Windows.Forms.Label LBLNCM2Temp;
}
}
 
/MKLiveView/Source/MainForm.cs
50,6 → 50,53
{
public partial class MainForm : Form
{
String[] NC_Error = new string[44]
{
"No Error",
"FC not compatible" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A1_.22FC_not_compatible_.22",
"MK3Mag not compatible" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A2_.22MK3Mag_not_compatible_.22",
"no FC communication" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A3_.22no_FC_communication_.22",
"no compass communication" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A4_.22no_compass_communication_.22",
"no GPS communication" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A5_.22no_GPS_communication_.22",
"bad compass value" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A6_.22bad_compass_value.22",
"RC Signal lost" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A7_.22RC_Signal_lost_.22",
"FC spi rx error" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A8_.22FC_spi_rx_error_.22",
"ERR: no NC communication" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A9:_.22ERR:_no_NC_communication.22",
"ERR: FC Nick Gyro" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A10_.22ERR:_FC_Nick_Gyro.22",
"ERR: FC Roll Gyro" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A11_.22ERR:_FC_Roll_Gyro.22",
"ERR: FC Yaw Gyro" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A12_.22ERR:_FC_Yaw_Gyro.22",
"ERR: FC Nick ACC" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A13_.22ERR:_FC_Nick_ACC.22",
"ERR: FC Roll ACC" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A14_.22ERR:_FC_Roll_ACC.22",
"ERR: FC Z-ACC" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A15_.22ERR:_FC_Z-ACC.22",
"ERR: Pressure sensor" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A16_.22ERR:_Pressure_sensor.22",
"ERR: FC I2C" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A17_.22ERR:_FC_I2C.22",
"ERR: Bl Missing" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A18_.22ERR:_Bl_Missing.22",
"Mixer Error" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A19_.22Mixer_Error.22",
"FC: Carefree Error" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A20_.22FC:_Carefree_Error.22",
"ERR: GPS lost" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A21_.22ERR:_GPS_lost.22",
"ERR: Magnet Error" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A22_.22ERR:_Magnet_Error.22",
"Motor restart" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A23_.22Motor_restart.22",
"BL Limitation" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A24_.22BL_Limitation.22",
"Waypoint range" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A25_.22Waypoint_range.22",
"ERR:No SD-Card" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A26_.22ERR:No_SD-Card.22",
"ERR:SD Logging aborted" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A27_.22ERR:SD_Logging_aborted.22",
"ERR:Flying range!" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A28_.22ERR:Flying_range.21.22",
"ERR:Max Altitude" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A29_.22ERR:Max_Altitude.22",
"No GPS Fix" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A30_.22No_GPS_Fix.22",
"compass not calibrated" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A31_.22compass_not_calibrated.22",
"ERR:BL selftest" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A32_.22ERR:BL_selftest.22",
"no ext. compass" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A33_.22no_ext._compass.22",
"compass sensor" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A34_.22compass_sensor.22",
"FAILSAFE pos.!" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A35_.22FAILSAFE_pos..21__.22",
"ERR:Redundancy" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A36_.22ERR:Redundancy__.22",
"Redundancy test" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A37_.22Redundancy_test_.22",
"GPS Update rate" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A38_.22GPS_Update_rate.22",
"ERR:Canbus" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A39_.22ERR:Canbus.22",
"ERR: 5V RC-Supply" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A40_.22ERR:_5V_RC-Supply.22",
"ERR:Power-Supply" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A41_.22ERR:Power-Supply.22",
"ACC not calibr." + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A42_.22ACC_not_calibr..22",
"ERR:Parachute!" + Environment.NewLine + "http://wiki.mikrokopter.de/ErrorCodes#A43_.22ERR:Parachute.21.22"
};
 
[FlagsAttribute]
enum NC_HWError0 : short
130,6 → 177,10
/// datatable for the debug data array - displayed on settings tabpage in datagridview
/// </summary>
DataTable dtAnalog = new DataTable();
 
DataTable dtMotors1 = new DataTable();
DataTable dtMotors2 = new DataTable();
 
public MainForm()
{
InitializeComponent();
137,6 → 188,21
dtAnalog.Columns.Add("ID");
dtAnalog.Columns.Add("Value");
dataGridView1.DataSource = dtAnalog;
dtMotors1.Columns.Add("#");
dtMotors1.Columns.Add("Current");
dtMotors1.Columns.Add("Temp");
dtMotors2.Columns.Add("#");
dtMotors2.Columns.Add("Current");
dtMotors2.Columns.Add("Temp");
dgvMotors1.DataSource = dtMotors1;
dgvMotors2.DataSource = dtMotors2;
_initDTMotors();
dgvMotors1.Columns[0].Width = 24;
dgvMotors1.Columns[1].Width = 74;
dgvMotors1.Columns[2].Width = 74;
dgvMotors2.Columns[0].Width = 24;
dgvMotors2.Columns[1].Width = 74;
dgvMotors2.Columns[2].Width = 74;
simpleSerialPort.PortClosed += SimpleSerialPort_PortClosed;
simpleSerialPort.PortOpened += SimpleSerialPort_PortOpened;
simpleSerialPort.DataReceived += processMessage;
155,6 → 221,7
{
_loadLabelNames();
_init = false;
splitContainer1.SplitterDistance = 514;
}
private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
{
185,7 → 252,7
{
if (_debugDataAutorefresh) { _readDebugData(true); Thread.Sleep(10); }
 
if (_blctrlDataAutorefresh && _iCtrlAct == 2) { _readBLCtrl(true); Thread.Sleep(10); }
if (_blctrlDataAutorefresh) { _readBLCtrl(true); Thread.Sleep(10); }
if (_navCtrlDataAutorefresh && _iCtrlAct == 2) { _readNavData(true); Thread.Sleep(10); }
check_HWError = true;
209,7 → 276,6
if (!_bCBInit && cbOSD.SelectedIndex > -1)
_OSDMenue(cbOSD.SelectedIndex);
}
 
private void chkbAutoDbg_CheckedChanged(object sender, EventArgs e)
{
if(!_init) _debugDataAutorefresh = chkbAutoDbg.Checked;
226,7 → 292,6
{
if (!_init) _OSDAutorefresh = chkbAutoOSD.Checked;
}
 
private void cbTimingDebug_SelectedIndexChanged(object sender, EventArgs e)
{
if (cbTimingDebug.SelectedIndex > -1)
317,7 → 382,10
 
#region functions
 
/// <summary> Processing the messages and displaying them in the according form controls </summary>
#region processing received data
/// <summary> Processing the messages and displaying them in the according form controls
/// function called by simpleSerialPort.DataReceived event
/// </summary>
/// <param name="message"> message bytearray recieved by SimpleSerialPort class </param>
private void processMessage(byte[] message)
{
340,7 → 408,7
if (adr == 255) { crcError++; }
else crcError = 0;
lblCRCErr.Invoke((Action)(() => lblCRCErr.Text = crcError.ToString()));
 
//display the active controller (FC / NC)
if (adr > 0 && adr < 3 && adr != _iCtrlAct) //adr < 3: temporary workaround cause when I've connected the FC alone it always switches between mk3mag & FC every second...???
{
_iCtrlAct = adr;
365,7 → 433,7
lblCtrl.Invoke((Action)(() => lblCtrl.Text = "...."));
break;
}
_loadLabelNames();
_loadLabelNames();
}
// else
// Debug.Print("Address == 0?");
377,270 → 445,36
 
switch (cmdID)
{
case 'A':
if (iLableIndex < 32)
{
sAnalogLabel[iLableIndex] = s;
if (dtAnalog.Rows.Count < 32)
dtAnalog.Rows.Add(s, "");
else
dtAnalog.Rows[iLableIndex].SetField(0, s);
 
_getAnalogLabels(iLableIndex + 1);
}
Debug.Print(s);
 
case 'A': //Label names
_processLabelNames(s);
break;
case 'D':
if (data.Length == 66)
{
int[] iAnalogData = new int[32];
 
int index = 0;
Int16 i16 = 0;
double dTemp = 0;
for (int i = 2; i < 66; i += 2)
{
i16 = data[i + 1];
i16 = (Int16)(i16 << 8);
iAnalogData[index] = data[i] + i16;
sAnalogData[index] = (data[i] + i16).ToString();
dtAnalog.Rows[index].SetField(1, sAnalogData[index]);
 
if (adr == 2) //NC
{
switch (index)
{
case 0: //pitch (German: nick)
artificialHorizon1.Invoke((Action)(() => artificialHorizon1.pitch_angle = ((double)iAnalogData[index] / (double)10)));
lblNCPitch.Invoke((Action)(() => lblNCPitch.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0°")));
break;
case 1: //roll
artificialHorizon1.Invoke((Action)(() => artificialHorizon1.roll_angle = ((double)iAnalogData[index] / (double)10)));
lblNCRoll.Invoke((Action)(() => lblNCRoll.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0°")));
break;
case 4: //altitude
lblNCAlt.Invoke((Action)(() => lblNCAlt.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 m")));
break;
case 7: //Voltage
lblNCVolt.Invoke((Action)(() => lblNCVolt.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 V")));
break;
case 8: // Current
lblNCCur.Invoke((Action)(() => lblNCCur.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 A")));
break;
case 10: //heading
lblNCCompass.Invoke((Action)(() => lblNCCompass.Text = sAnalogData[index] + "°"));
headingIndicator1.Invoke((Action)(() => headingIndicator1.SetHeadingIndicatorParameters(iAnalogData[index])));
break;
case 12: // SPI error
lblNCSPI.Invoke((Action)(() => lblNCSPI.Text = sAnalogData[index]));
break;
case 14: //i2c error
lblNCI2C.Invoke((Action)(() => lblNCI2C.Text = sAnalogData[index]));
break;
case 20: //Earthmagnet field
lblNCMF.Invoke((Action)(() => lblNCMF.Text = sAnalogData[index] + "%"));
break;
case 21: //GroundSpeed
lblNCGSpeed.Invoke((Action)(() => lblNCGSpeed.Text = ((double)iAnalogData[index] / (double)100).ToString("0.00 m/s")));
break;
case 28: //Distance East from saved home position -> calculate distance with distance N + height
dTemp = Math.Pow((double)iAnalogData[index],2) + Math.Pow((double)iAnalogData[index - 1],2);
dTemp = Math.Sqrt(dTemp)/ (double)10; //'flat' distance from HP with N/E
// lblNCDist.Invoke((Action)(() => lblNCDist.Text = dTemp.ToString("0.00")));
dTemp = Math.Pow(dTemp, 2) + Math.Pow(((double)iAnalogData[4] / (double)10), 2); //adding 'height' into calculation
dTemp = Math.Sqrt(dTemp);
lblNCDist.Invoke((Action)(() => lblNCDist.Text = dTemp.ToString("0 m")));
break;
case 31: //Sats used
lblNCSat.Invoke((Action)(() => lblNCSat.Text = sAnalogData[index]));
break;
}
}
if (adr == 1) //FC
{
switch (index)
{
case 0: //pitch (German: nick)
artificialHorizon1.Invoke((Action)(() => artificialHorizon1.pitch_angle = ((double)iAnalogData[index] / (double)10)));
lblNCPitch.Invoke((Action)(() => lblNCPitch.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0°")));
break;
case 1: //roll
artificialHorizon1.Invoke((Action)(() => artificialHorizon1.roll_angle = ((double)iAnalogData[index] / (double)10)));
lblNCRoll.Invoke((Action)(() => lblNCRoll.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0°")));
break;
case 5: //altitude
lblNCAlt.Invoke((Action)(() => lblNCAlt.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 m")));
break;
case 8: //heading
lblNCCompass.Invoke((Action)(() => lblNCCompass.Text = sAnalogData[index] + "°"));
headingIndicator1.Invoke((Action)(() => headingIndicator1.SetHeadingIndicatorParameters(iAnalogData[index])));
break;
case 9: //Voltage
lblNCVolt.Invoke((Action)(() => lblNCVolt.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 V")));
break;
case 10: //Receiver quality
lblNCRC.Invoke((Action)(() => lblNCRC.Text = sAnalogData[index]));
break;
case 22: // Current
lblNCCur.Invoke((Action)(() => lblNCCur.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 A")));
break;
case 23: //capacity used
lblNCCap.Invoke((Action)(() => lblNCCap.Text = (iAnalogData[index]).ToString("0 mAh")));
break;
case 27: // SPI error
lblNCSPI.Invoke((Action)(() => lblNCSPI.Text = sAnalogData[index]));
break;
case 28: //i2c error
lblNCI2C.Invoke((Action)(() => lblNCI2C.Text = sAnalogData[index]));
break;
}
}
index++;
}
}
else
Debug.Print("wrong data-length (66): " + data.Length.ToString());
case 'D': //Debug data
_processDebugVals(adr,data);
break;
 
case 'V':
if (data.Length == 12)
{
if (!check_HWError)
{
string[] sVersionStruct = new string[10] { "SWMajor: ", "SWMinor: ", "ProtoMajor: ", "LabelTextCRC: ", "SWPatch: ", "HardwareError 1: ", "HardwareError 2: ", "HWMajor: ", "BL_Firmware: ", "Flags: " };
string sVersion = "";
//sbyte[] signed = Array.ConvertAll(data, b => unchecked((sbyte)b));
Log(LogMsgType.Warning, (adr == 1 ? "FC-" : "NC-") + "Version: ");
sVersion = "HW V" + (data[7] / 10).ToString() + "." + (data[7] % 10).ToString();
Log(LogMsgType.Incoming, sVersion);
sVersion = "SW V" + (data[0]).ToString() + "." + (data[1]).ToString() + ((char)(data[4] + 'a')).ToString();
Log(LogMsgType.Incoming, sVersion);
Log(LogMsgType.Incoming, "BL-Firmware: V" + (data[8] / 100).ToString() + "." + (data[8] % 100).ToString());
}
if(data[5] > 0) //error0
{
if(adr == 1)
ErrorLog(LogMsgType.Error, "FC - HW-Error " + data[5].ToString() + ": " + ((FC_HWError0)data[5]).ToString());
if (adr == 2)
ErrorLog(LogMsgType.Error, "NC - HW-Error " + data[5].ToString() + ": " + ((NC_HWError0)data[5]).ToString());
}
if (data[6] > 0) //error1
{
if (adr == 1)
ErrorLog(LogMsgType.Error, "FC - HW-Error " + data[6].ToString() + ": " + ((FC_HWError1)data[6]).ToString());
if (adr == 2)
ErrorLog(LogMsgType.Error, "NC - Unknown HW-ERROR: " + data[6].ToString()); //@moment NC has only one error field
}
 
}
check_HWError = false;
case 'V': //Version
_processVersion(adr, data);
break;
 
case 'K'://BL-CTRL debug data from NC
if (data.Length == 6 && data[0] < 8)
{
Label lbCur = new Label(), lbTemp = new Label();
switch (data[0])
{
case 0:
lbCur = LBLNCM1Cur;
lbTemp = LBLNCM1Temp;
break;
case 1:
lbCur = LBLNCM2Cur;
lbTemp = LBLNCM2Temp;
break;
case 2:
lbCur = LBLNCM3Cur;
lbTemp = LBLNCM3Temp;
break;
case 3:
lbCur = LBLNCM4Cur;
lbTemp = LBLNCM4Temp;
break;
case 4:
lbCur = LBLNCM5Cur;
lbTemp = LBLNCM5Temp;
break;
case 5:
lbCur = LBLNCM6Cur;
lbTemp = LBLNCM6Temp;
break;
case 6:
lbCur = LBLNCM7Cur;
lbTemp = LBLNCM7Temp;
break;
case 7:
lbCur = LBLNCM8Cur;
lbTemp = LBLNCM8Temp;
break;
}
if (lbCur != null)
lbCur.Invoke((Action)(() => lbCur.Text = ((double)data[1] / (double)10).ToString("0.0 A")));
if (lbTemp != null)
lbTemp.Invoke((Action)(() => lbTemp.Text = data[2].ToString("0 °C")));
 
}
 
case 'K'://BL-CTRL data
_processBLCtrl(data);
break;
 
case 'O': //NC Data
int i_16,iVal;
i_16 = data[81];
i_16 = (Int16)(i_16 << 8);
iVal = data[80] + i_16;
lblNCCap.Invoke((Action)(() => lblNCCap.Text = iVal.ToString() + " mAh")); //Capacity used
 
i_16 = data[56];
i_16 = (Int16)(i_16 << 8);
iVal = data[55] + i_16;
TimeSpan t = TimeSpan.FromSeconds(iVal);
string Text = t.Hours.ToString("D2") + ":" + t.Minutes.ToString("D2") + ":" + t.Seconds.ToString("D2");
lblNCFlTime.Invoke((Action)(() => lblNCFlTime.Text = Text.ToString())); //Flying time
 
lblNCRC.Invoke((Action)(() => lblNCRC.Text = data[66].ToString())); //RC quality
lblNCErrNmbr.Invoke((Action)(() => lblNCErrNmbr.Text = data[69].ToString())); //NC Errornumber
if (data[69] > 0)
_readNCError();
_processNCData(data);
break;
 
case 'E': //NC error-string
ErrorLog(LogMsgType.Error, "NC Error: " + s);
 
break;
 
case 'L':
if(data.Length == 84)
{
string sMessage = "";
iOSDPage = data[0];
iOSDMax = data[1];
if (cbOSD.Items.Count != iOSDMax) _initOSDCB();
sMessage = new string(ASCIIEncoding.ASCII.GetChars(data, 2, data.Length - 4));
OSD(LogMsgType.Incoming, sMessage.Substring(0,20));
OSD(LogMsgType.Incoming, sMessage.Substring(20,20));
OSD(LogMsgType.Incoming, sMessage.Substring(40,20));
OSD(LogMsgType.Incoming, sMessage.Substring(60,20));
lblOSDPageNr.Invoke((Action)(()=>lblOSDPageNr.Text = iOSDPage.ToString("[0]")));
 
}
else
OSD(LogMsgType.Incoming,"Wrong length: " + data.Length + " (should be 84)");
case 'L': //OSD Menue (called by pagenumber)
_processOSDSingle(data);
break;
case 'H':
if(data.Length == 81)
{
string sMessage = "";
sMessage = new string(ASCIIEncoding.ASCII.GetChars(data, 0, data.Length - 1));
OSD(LogMsgType.Incoming, sMessage.Substring(0,20));
OSD(LogMsgType.Incoming, sMessage.Substring(20,20));
OSD(LogMsgType.Incoming, sMessage.Substring(40,20));
OSD(LogMsgType.Incoming, sMessage.Substring(60,20));
 
}
else
OSD(LogMsgType.Incoming, "Wrong length: " + data.Length + " (should be 81)");
case 'H': //OSD Menue (with autoupdate - called by Key)
_processOSDAuto(data);
break;
 
//default:
657,7 → 491,332
}
}
}
/// <summary>
/// Analog label names 'A'
/// each label name is returned as a single string
/// and added to string array sAnalogLabel[]
/// and the datatable dtAnalog
/// </summary>
/// <param name="s">the label name</param>
void _processLabelNames(string s)
{
if (iLableIndex < 32)
{
sAnalogLabel[iLableIndex] = s;
if (dtAnalog.Rows.Count < 32)
dtAnalog.Rows.Add(s, "");
else
dtAnalog.Rows[iLableIndex].SetField(0, s);
 
_getAnalogLabels(iLableIndex + 1);
}
Debug.Print(s);
}
/// <summary>
/// Debug values 'D'
/// </summary>
/// <param name="adr">adress of the active controller (1-FC, 2-NC)</param>
/// <param name="data">the received byte array to process</param>
void _processDebugVals(byte adr,byte[] data)
{
if (data.Length == 66)
{
int[] iAnalogData = new int[32];
 
int index = 0;
Int16 i16 = 0;
double dTemp = 0;
for (int i = 2; i < 66; i += 2)
{
i16 = data[i + 1];
i16 = (Int16)(i16 << 8);
iAnalogData[index] = data[i] + i16;
sAnalogData[index] = (data[i] + i16).ToString();
dtAnalog.Rows[index].SetField(1, sAnalogData[index]);
 
if (adr == 2) //NC
{
switch (index)
{
case 0: //pitch (German: nick)
artificialHorizon1.Invoke((Action)(() => artificialHorizon1.pitch_angle = ((double)iAnalogData[index] / (double)10)));
lblNCPitch.Invoke((Action)(() => lblNCPitch.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0°")));
break;
case 1: //roll
artificialHorizon1.Invoke((Action)(() => artificialHorizon1.roll_angle = ((double)iAnalogData[index] / (double)10)));
lblNCRoll.Invoke((Action)(() => lblNCRoll.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0°")));
break;
case 4: //altitude
lblNCAlt.Invoke((Action)(() => lblNCAlt.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 m")));
break;
case 7: //Voltage
lblNCVolt.Invoke((Action)(() => lblNCVolt.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 V")));
break;
case 8: // Current
lblNCCur.Invoke((Action)(() => lblNCCur.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 A")));
break;
case 10: //heading
lblNCCompass.Invoke((Action)(() => lblNCCompass.Text = sAnalogData[index] + "°"));
headingIndicator1.Invoke((Action)(() => headingIndicator1.SetHeadingIndicatorParameters(iAnalogData[index])));
break;
case 12: // SPI error
lblNCSPI.Invoke((Action)(() => lblNCSPI.Text = sAnalogData[index]));
break;
case 14: //i2c error
lblNCI2C.Invoke((Action)(() => lblNCI2C.Text = sAnalogData[index]));
break;
case 20: //Earthmagnet field
lblNCMF.Invoke((Action)(() => lblNCMF.Text = sAnalogData[index] + "%"));
break;
case 21: //GroundSpeed
lblNCGSpeed.Invoke((Action)(() => lblNCGSpeed.Text = ((double)iAnalogData[index] / (double)100).ToString("0.00 m/s")));
break;
case 28: //Distance East from saved home position -> calculate distance with distance N + height
dTemp = Math.Pow((double)iAnalogData[index], 2) + Math.Pow((double)iAnalogData[index - 1], 2);
dTemp = Math.Sqrt(dTemp) / (double)10; //'flat' distance from HP with N/E
// lblNCDist.Invoke((Action)(() => lblNCDist.Text = dTemp.ToString("0.00")));
dTemp = Math.Pow(dTemp, 2) + Math.Pow(((double)iAnalogData[4] / (double)10), 2); //adding 'height' into calculation
dTemp = Math.Sqrt(dTemp);
lblNCDistHP.Invoke((Action)(() => lblNCDistHP.Text = dTemp.ToString("0 m")));
break;
case 31: //Sats used
lblNCSat.Invoke((Action)(() => lblNCSat.Text = sAnalogData[index]));
break;
}
}
if (adr == 1) //FC
{
switch (index)
{
case 0: //pitch (German: nick)
artificialHorizon1.Invoke((Action)(() => artificialHorizon1.pitch_angle = ((double)iAnalogData[index] / (double)10)));
lblNCPitch.Invoke((Action)(() => lblNCPitch.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0°")));
break;
case 1: //roll
artificialHorizon1.Invoke((Action)(() => artificialHorizon1.roll_angle = ((double)iAnalogData[index] / (double)10)));
lblNCRoll.Invoke((Action)(() => lblNCRoll.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0°")));
break;
case 5: //altitude
lblNCAlt.Invoke((Action)(() => lblNCAlt.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 m")));
break;
case 8: //heading
lblNCCompass.Invoke((Action)(() => lblNCCompass.Text = sAnalogData[index] + "°"));
headingIndicator1.Invoke((Action)(() => headingIndicator1.SetHeadingIndicatorParameters(iAnalogData[index])));
break;
case 9: //Voltage
lblNCVolt.Invoke((Action)(() => lblNCVolt.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 V")));
break;
case 10: //Receiver quality
lblNCRC.Invoke((Action)(() => lblNCRC.Text = sAnalogData[index]));
break;
case 22: // Current
lblNCCur.Invoke((Action)(() => lblNCCur.Text = ((double)iAnalogData[index] / (double)10).ToString("0.0 A")));
break;
case 23: //capacity used
lblNCCap.Invoke((Action)(() => lblNCCap.Text = (iAnalogData[index]).ToString("0 mAh")));
break;
case 27: // SPI error
lblNCSPI.Invoke((Action)(() => lblNCSPI.Text = sAnalogData[index]));
break;
case 28: //i2c error
lblNCI2C.Invoke((Action)(() => lblNCI2C.Text = sAnalogData[index]));
break;
}
}
index++;
}
}
else
Debug.Print("wrong data-length (66): " + data.Length.ToString());
}
/// <summary>
/// Version string 'V'
/// </summary>
/// <param name="adr">adress of the active controller (1-FC, 2-NC)</param>
/// <param name="data">the received byte array to process</param>
void _processVersion(byte adr,byte[] data)
{
if (data.Length == 12)
{
if (!check_HWError)
{
string[] sVersionStruct = new string[10] { "SWMajor: ", "SWMinor: ", "ProtoMajor: ", "LabelTextCRC: ", "SWPatch: ", "HardwareError 1: ", "HardwareError 2: ", "HWMajor: ", "BL_Firmware: ", "Flags: " };
string sVersion = "";
//sbyte[] signed = Array.ConvertAll(data, b => unchecked((sbyte)b));
Log(LogMsgType.Warning, (adr == 1 ? "FC-" : "NC-") + "Version: ");
sVersion = "HW V" + (data[7] / 10).ToString() + "." + (data[7] % 10).ToString();
Log(LogMsgType.Incoming, sVersion);
sVersion = "SW V" + (data[0]).ToString() + "." + (data[1]).ToString() + ((char)(data[4] + 'a')).ToString();
Log(LogMsgType.Incoming, sVersion);
Log(LogMsgType.Incoming, "BL-Firmware: V" + (data[8] / 100).ToString() + "." + (data[8] % 100).ToString());
}
if (data[5] > 0) //error0
{
if (adr == 1)
ErrorLog(LogMsgType.Error, "FC - HW-Error " + data[5].ToString() + ": " + ((FC_HWError0)data[5]).ToString());
if (adr == 2)
ErrorLog(LogMsgType.Error, "NC - HW-Error " + data[5].ToString() + ": " + ((NC_HWError0)data[5]).ToString());
}
if (data[6] > 0) //error1
{
if (adr == 1)
ErrorLog(LogMsgType.Error, "FC - HW-Error " + data[6].ToString() + ": " + ((FC_HWError1)data[6]).ToString());
if (adr == 2)
ErrorLog(LogMsgType.Error, "NC - Unknown HW-ERROR: " + data[6].ToString()); //@moment NC has only one error field
}
 
}
check_HWError = false;
}
/// <summary>
/// BL-Ctrl data 'K'
/// for FC you have to use a customized firmware
/// </summary>
/// <param name="data">the received byte array to process</param>
void _processBLCtrl(byte[] data)
{
if (data.Length % 6 == 0) //data.Length up to 96 (16 motors x 6 byte data) --> new datastruct in FC -> not standard!
{
bool bAvailable = false;
for (int i = 0; i < data.Length && data[i] < 8; i += 6) // data[i] < 8 --> at moment there are 8 display fields for motors
{
 
if ((data[i + 4] & 128) == 128) //Status bit at pos 7 = 128 dec -- if true, motor is available
bAvailable = true;
else
bAvailable = false;
 
if (data[i] < 4)
{
if (bAvailable)
{
dtMotors1.Rows[data[i]].SetField(1, ((double)data[i + 1] / (double)10).ToString("0.0 A"));
dtMotors1.Rows[data[i]].SetField(2, data[i + 2].ToString("0 °C"));
}
else
{
dtMotors1.Rows[data[i]].SetField(1, "NA");
dtMotors1.Rows[data[i]].SetField(2, "NA");
}
}
if (data[i] > 3 && data[i] < 8)
{
if (bAvailable)
{
dtMotors2.Rows[data[i] - 4].SetField(1, ((double)data[i + 1] / (double)10).ToString("0.0 A"));
dtMotors2.Rows[data[i] - 4].SetField(2, data[i + 2].ToString("0 °C"));
}
else
{
dtMotors2.Rows[data[i] - 4].SetField(1, "NA");
dtMotors2.Rows[data[i] - 4].SetField(2, "NA");
}
}
}
}
 
}
/// <summary>
/// Navi-Ctrl data 'O'
/// GPS-Position, capacatiy, flying time...
/// </summary>
/// <param name="data">the received byte array to process</param>
void _processNCData(byte[] data)
{
int i_32, i_16, iVal;
double d;
i_32 = data[4];
iVal = i_32 << 24;
i_32 = data[3];
iVal += i_32 << 16;
i_32 = data[2];
iVal += i_32 << 8;
iVal += data[1];
d = (double)iVal / Math.Pow(10, 7);
lblNCGPSLong.Invoke((Action)(() => lblNCGPSLong.Text = d.ToString("0.######°"))); //GPS-Position: Longitude in decimal degree
//lblNCGPSLong.Invoke((Action)(() => lblNCGPSLong.Text = _convertDegree(d))); //GPS-Position: Longitude in minutes, seconds
 
i_32 = data[8];
iVal = i_32 << 24;
i_32 = data[7];
iVal += i_32 << 16;
i_32 = data[6];
iVal += i_32 << 8;
iVal += data[5];
d = (double)iVal / Math.Pow(10, 7);
lblNCGPSLat.Invoke((Action)(() => lblNCGPSLat.Text = d.ToString("0.######°"))); //GPS-Position: Latitude in decimal degree
//lblNCGPSLat.Invoke((Action)(() => lblNCGPSLat.Text = _convertDegree(d))); //GPS-Position: Latitude in minutes, seconds
 
i_16 = data[81];
i_16 = (Int16)(i_16 << 8);
iVal = data[80] + i_16;
lblNCCap.Invoke((Action)(() => lblNCCap.Text = iVal.ToString() + " mAh")); //Capacity used
 
i_16 = data[56];
i_16 = (Int16)(i_16 << 8);
iVal = data[55] + i_16;
TimeSpan t = TimeSpan.FromSeconds(iVal);
string Text = t.Hours.ToString("D2") + ":" + t.Minutes.ToString("D2") + ":" + t.Seconds.ToString("D2");
lblNCFlTime.Invoke((Action)(() => lblNCFlTime.Text = Text.ToString())); //Flying time
 
lblNCRC.Invoke((Action)(() => lblNCRC.Text = data[66].ToString())); //RC quality
lblNCErrNmbr.Invoke((Action)(() => lblNCErrNmbr.Text = data[69].ToString())); //NC Errornumber
//if (data[69] > 0)
// _readNCError();
//break;
if (data[69] > 0 & data[69] < 44)
ErrorLog(LogMsgType.Error, "NC Error [" + data[69].ToString() + "]: " + NC_Error[data[69]]);
 
}
/// <summary>
/// OSD Menue 'L'
/// single page called by pagenumber
/// no autoupdate
/// </summary>
/// <param name="data">the received byte array to process</param>
void _processOSDSingle(byte[] data)
{
if (data.Length == 84)
{
string sMessage = "";
iOSDPage = data[0];
iOSDMax = data[1];
if (cbOSD.Items.Count != iOSDMax) _initOSDCB();
sMessage = new string(ASCIIEncoding.ASCII.GetChars(data, 2, data.Length - 4));
OSD(LogMsgType.Incoming, sMessage.Substring(0, 20));
OSD(LogMsgType.Incoming, sMessage.Substring(20, 20));
OSD(LogMsgType.Incoming, sMessage.Substring(40, 20));
OSD(LogMsgType.Incoming, sMessage.Substring(60, 20));
lblOSDPageNr.Invoke((Action)(() => lblOSDPageNr.Text = iOSDPage.ToString("[0]")));
 
}
else
OSD(LogMsgType.Incoming, "Wrong length: " + data.Length + " (should be 84)");
 
}
/// <summary>
/// OSD Menue 'H'
/// called by keys (0x01,0x02,0x03,0x04)
/// autoupdate
/// </summary>
/// <param name="data">the received byte array to process</param>
void _processOSDAuto(byte[] data)
{
if (data.Length == 81)
{
string sMessage = "";
sMessage = new string(ASCIIEncoding.ASCII.GetChars(data, 0, data.Length - 1));
OSD(LogMsgType.Incoming, sMessage.Substring(0, 20));
OSD(LogMsgType.Incoming, sMessage.Substring(20, 20));
OSD(LogMsgType.Incoming, sMessage.Substring(40, 20));
OSD(LogMsgType.Incoming, sMessage.Substring(60, 20));
 
}
else
OSD(LogMsgType.Incoming, "Wrong length: " + data.Length + " (should be 81)");
}
#endregion processing received data
 
/// <summary> send message to controller to request data
/// for detailed info see http://wiki.mikrokopter.de/en/SerialProtocol/
/// </summary>
913,11 → 1072,10
btnReadDebugCont.Invoke((Action)(() => btnReadDebugCont.BackColor = bReadContinously ? Color.FromArgb(192, 255, 192) : Color.FromArgb(224, 224, 224)));
if (bReadContinously)
{
_readDebugData(true);
if (_iCtrlAct == 2) { Thread.Sleep(10); _readBLCtrl(true);}
if (_iCtrlAct == 2) { Thread.Sleep(10); _readNavData(true);}
Thread.Sleep(10);
_OSDMenueAutoRefresh();
if (_debugDataAutorefresh) { _readDebugData(true); Thread.Sleep(10); }
if (_blctrlDataAutorefresh) { _readBLCtrl(true); Thread.Sleep(10); }
if (_navCtrlDataAutorefresh && _iCtrlAct == 2) { _readNavData(true); Thread.Sleep(10); }
if (_OSDAutorefresh) { _OSDMenueAutoRefresh(); Thread.Sleep(10);}
lblLifeCounter.Invoke((Action)(() => lblLifeCounter.BackColor = Color.FromArgb(0, 224, 0)));
}
else
925,62 → 1083,20
_iLifeCounter = 0;
}
/// <summary>
/// set fieldtexts to "NA" when not available with FC
/// set values to "NA" when not available with FC
/// </summary>
void _setFieldsNA()
{
Thread.Sleep(100);
Label lbCur = new Label(), lbTemp = new Label();
for (int i = 0; i < 8; i++)
{
//BL-Ctrl Temp & Current
switch (i)
{
case 0:
lbCur = LBLNCM1Cur;
lbTemp = LBLNCM1Temp;
break;
case 1:
lbCur = LBLNCM2Cur;
lbTemp = LBLNCM2Temp;
break;
case 2:
lbCur = LBLNCM3Cur;
lbTemp = LBLNCM3Temp;
break;
case 3:
lbCur = LBLNCM4Cur;
lbTemp = LBLNCM4Temp;
break;
case 4:
lbCur = LBLNCM5Cur;
lbTemp = LBLNCM5Temp;
break;
case 5:
lbCur = LBLNCM6Cur;
lbTemp = LBLNCM6Temp;
break;
case 6:
lbCur = LBLNCM7Cur;
lbTemp = LBLNCM7Temp;
break;
case 7:
lbCur = LBLNCM8Cur;
lbTemp = LBLNCM8Temp;
break;
}
if (lbCur != null)
lbCur.Invoke((Action)(() => lbCur.Text = "NA"));
if (lbTemp != null)
lbTemp.Invoke((Action)(() => lbTemp.Text = "NA"));
 
}
_initDTMotors();
lblNCFlTime.Invoke((Action)(() => lblNCFlTime.Text = "NA")); //FlightTime
lblNCErrNmbr.Invoke((Action)(() => lblNCErrNmbr.Text = "NA")); //NC ErrorNr
lblNCMF.Invoke((Action)(() => lblNCMF.Text = "NA")); //earth magnet field
lblNCGSpeed.Invoke((Action)(() => lblNCGSpeed.Text = "NA")); //GroundSpeed
lblNCDist.Invoke((Action)(() => lblNCDist.Text = "NA")); //Distance to HP
lblNCSat.Invoke((Action)(() => lblNCSat.Text = "NA")); //Sats used
lblNCErrNmbr.Invoke((Action)(() => lblNCErrNmbr.Text = "NA")); //NC ErrorNr
lblNCMF.Invoke((Action)(() => lblNCMF.Text = "NA")); //earth magnet field
lblNCGSpeed.Invoke((Action)(() => lblNCGSpeed.Text = "NA")); //GroundSpeed
lblNCDistHP.Invoke((Action)(() => lblNCDistHP.Text = "NA")); //Distance to HP
lblNCSat.Invoke((Action)(() => lblNCSat.Text = "NA")); //Sats used
lblNCGPSLong.Invoke((Action)(() => lblNCGPSLong.Text = "NA")); //GPS position - longitude
lblNCGPSLat.Invoke((Action)(() => lblNCGPSLat.Text = "NA")); //GPS position - latitude
}
/// <summary>
/// one time query of the OSD Menue with pagenumber
1077,6 → 1193,65
ini.IniWriteValue("default", "IntervalOSDData", OSDInterval.ToString());
}
 
/// <summary>
/// initialize the 2 datatables for motor values
/// dtMotors1 - motor 1 - 4
/// dtMotors2 - motor 5 - 8
/// DataGridView dgvMotors1/2 are bound to dtMotors1/2
/// </summary>
void _initDTMotors()
{
for(int i = 0; i < 4; i++)
{
if (dtMotors1.Rows.Count < 4)
dtMotors1.Rows.Add((i + 1).ToString(), "NA", "NA");
else
{
dtMotors1.Rows[i].SetField(1, "NA");
dtMotors1.Rows[i].SetField(2, "NA");
}
if (dtMotors2.Rows.Count < 4)
dtMotors2.Rows.Add((i + 5).ToString(), "NA", "NA");
else
{
dtMotors2.Rows[i].SetField(1, "NA");
dtMotors2.Rows[i].SetField(2, "NA");
}
}
dgvMotors1.Invoke((Action)(() => dgvMotors1.Refresh()));
dgvMotors2.Invoke((Action)(() => dgvMotors2.Refresh()));
}
 
/// <summary>
/// Convert decimal degrees to degrees, minutes, seconds, milliseconds
/// </summary>
/// <param name="coord">the degree value as double</param>
/// <returns>0° 0' 0,0"</returns>
string _convertDegree(double coord)
{
//double minutes = (degree - Math.Floor(degree)) * 60.0;
//double seconds = (minutes - Math.Floor(minutes)) * 60.0;
//double tenths = (seconds - Math.Floor(seconds)) * 10.0;
//// get rid of fractional part
//minutes = Math.Floor(minutes);
//seconds = Math.Floor(seconds);
//tenths = Math.Floor(tenths);
 
 
//int sec = (int)Math.Round(coord * 3600);
//int deg = sec / 3600;
//sec = Math.Abs(sec % 3600);
//int min = sec / 60;
//sec %= 60;
 
var ts = TimeSpan.FromHours(Math.Abs(coord));
double deg = Math.Sign(coord) * Math.Floor(ts.TotalHours);
int min = ts.Minutes;
int sec = ts.Seconds;
int milli = ts.Milliseconds;
 
return deg.ToString("0° ") + min.ToString("0") + "' " + sec.ToString("0") + "," + milli.ToString() + "\"";
}
#endregion functions
 
#region buttons
1199,7 → 1374,6
_OSDMenueAutoRefresh(4);
}
#endregion buttons
 
}
public class IniFile
{