Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2256 → Rev 2257

/MKLiveView/Source/ArtificialHorizon/bin/Release/ArtificialHorizon.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/ArtificialHorizon/bin/Release/ArtificialHorizon.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/ArtificialHorizon/obj/Release/ArtificialHorizon.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/ArtificialHorizon/obj/Release/ArtificialHorizon.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/AvionicsInstrumentControl/bin/Release/AvionicsInstrumentControl.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/AvionicsInstrumentControl/bin/Release/AvionicsInstrumentControl.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/AvionicsInstrumentControl/obj/Release/AvionicsInstrumentControl.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/AvionicsInstrumentControl/obj/Release/AvionicsInstrumentControl.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/SimpleSerialPort.cs
168,12 → 168,11
if (!append)
{
byte[] message = new byte[i+1 - offset];
if(buffer[offset] != '#')
if (buffer[offset] != '#')
System.Diagnostics.Debug.Print(buffer[offset].ToString());
Buffer.BlockCopy(buffer, offset, message, 0, i + 1 - offset);
if (DataReceived != null)
DataReceived(message);
// bFound = true;
}
else
{
188,7 → 187,6
// System.Diagnostics.Debug.Print(BitConverter.ToString(message));
if (DataReceived != null)
DataReceived(message);
// bFound = true;
}
offset = i + 1;
if (buffer.Length > i + 1)
213,7 → 211,6
if (buffer[offset] != '#')
System.Diagnostics.Debug.Print(buffer[offset].ToString("X2"));
Buffer.BlockCopy(buffer, offset, messageBuffer, 0, buffer.Length-offset);
// textBoxBuffer.Invoke((Action)(() => textBoxBuffer.Text = "n " + offset.ToString()));
lastoffset = (buffer.Length - offset);
}
else
221,7 → 218,6
if (messageBuffer[0] != '#')
System.Diagnostics.Debug.Print(buffer[0].ToString("X2"));
Buffer.BlockCopy(buffer, offset, messageBuffer, lastoffset, buffer.Length-offset);
// textBoxBuffer.Invoke((Action)(() => textBoxBuffer.Text = "a " + offset.ToString()));
 
lastoffset += (buffer.Length - offset);
}
/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/bin/Release/SimpleSerialPort.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/bin/Release/SimpleSerialPort.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/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/EasySerialPort/obj/Release/SimpleSerialPort.dll
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/EasySerialPort/obj/Release/SimpleSerialPort.pdb
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/MKLiveView/Source/MKLiveView.csproj
100,6 → 100,7
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Waypoints.cs" />
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
/MKLiveView/Source/MainForm.Designer.cs
64,6 → 64,7
this.btnReadBLCtrl = new System.Windows.Forms.Button();
this.btnGetNaviData = new System.Windows.Forms.Button();
this.groupBox30 = new System.Windows.Forms.GroupBox();
this.simpleSerialPort = new SimpleSerialPort.SimpleSerialPort();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.btnOSDAuto = new System.Windows.Forms.Button();
this.btnOSD = new System.Windows.Forms.Button();
76,11 → 77,18
this.button2 = new System.Windows.Forms.Button();
this.lblFileName = new System.Windows.Forms.Label();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.lblNCDistHP1 = new System.Windows.Forms.Label();
this.groupBox8 = new System.Windows.Forms.GroupBox();
this.lblNCWPCount = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.lblNCWPIndex = new System.Windows.Forms.Label();
this.label10 = 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.headingIndicator1 = new AvionicsInstrumentControl.HeadingIndicator();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.dgvMotors2 = new System.Windows.Forms.DataGridView();
this.dgvMotors1 = new System.Windows.Forms.DataGridView();
122,6 → 130,7
this.lblNCGSpeed = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lblNCAlt = new System.Windows.Forms.Label();
this.artificialHorizon1 = new ArtificialHorizon.ArtificialHorizon();
this.lblNCCompass = new System.Windows.Forms.Label();
this.lblNCRoll = new System.Windows.Forms.Label();
this.lblNCPitch = new System.Windows.Forms.Label();
131,53 → 140,29
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.TabControl1 = new System.Windows.Forms.TabControl();
this.tabPageSerial = new System.Windows.Forms.TabPage();
this.groupBox9 = new System.Windows.Forms.GroupBox();
this.btnSer2_254 = new System.Windows.Forms.Button();
this.btnSer2_127 = new System.Windows.Forms.Button();
this.btnSer2_0 = new System.Windows.Forms.Button();
this.textBoxSerial2 = new System.Windows.Forms.TextBox();
this.lblTbSerial2 = new System.Windows.Forms.Label();
this.trckbarSerial2 = new System.Windows.Forms.TrackBar();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.btnSer1_254 = new System.Windows.Forms.Button();
this.btnSer1_127 = new System.Windows.Forms.Button();
this.btnSer1_0 = new System.Windows.Forms.Button();
this.textBoxSerial1 = new System.Windows.Forms.TextBox();
this.lblTbSerial1 = new System.Windows.Forms.Label();
this.trckbarSerial1 = new System.Windows.Forms.TrackBar();
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.cbWPIndex = new System.Windows.Forms.ComboBox();
this.btnGetWP = new System.Windows.Forms.Button();
this.dgvWP = new System.Windows.Forms.DataGridView();
this.btnConn = new System.Windows.Forms.Button();
this.rtfError = new System.Windows.Forms.RichTextBox();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.groupBox8 = new System.Windows.Forms.GroupBox();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.lblNCWPIndex = new System.Windows.Forms.Label();
this.lblNCWPCount = new System.Windows.Forms.Label();
this.lblNCDistHP1 = new System.Windows.Forms.Label();
this.headingIndicator1 = new AvionicsInstrumentControl.HeadingIndicator();
this.artificialHorizon1 = new ArtificialHorizon.ArtificialHorizon();
this.simpleSerialPort = new SimpleSerialPort.SimpleSerialPort();
this.tabPage2.SuspendLayout();
this.groupBox37.SuspendLayout();
this.groupBox34.SuspendLayout();
185,6 → 170,7
this.groupBox30.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.tabPage3.SuspendLayout();
this.groupBox8.SuspendLayout();
this.groupBox38.SuspendLayout();
this.groupBox7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgvMotors2)).BeginInit();
206,29 → 192,17
this.groupBox25.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox31.SuspendLayout();
this.tabControl1.SuspendLayout();
this.TabControl1.SuspendLayout();
this.tabPageSerial.SuspendLayout();
this.groupBox9.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trckbarSerial2)).BeginInit();
this.groupBox6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trckbarSerial1)).BeginInit();
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();
((System.ComponentModel.ISupportInitialize)(this.dgvWP)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.groupBox8.SuspendLayout();
this.SuspendLayout();
//
// btnReadDebugCont
236,7 → 210,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, -5);
this.btnReadDebugCont.Location = new System.Drawing.Point(803, 2);
this.btnReadDebugCont.Name = "btnReadDebugCont";
this.btnReadDebugCont.Size = new System.Drawing.Size(141, 55);
this.btnReadDebugCont.TabIndex = 26;
303,7 → 277,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, -7);
this.rtfTerminal.Location = new System.Drawing.Point(3, 0);
this.rtfTerminal.Name = "rtfTerminal";
this.rtfTerminal.Size = new System.Drawing.Size(259, 58);
this.rtfTerminal.TabIndex = 17;
319,7 → 293,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, 489);
this.tabPage2.Size = new System.Drawing.Size(942, 480);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Settings";
this.tabPage2.UseVisualStyleBackColor = true;
357,7 → 331,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, 329);
this.groupBox34.Location = new System.Drawing.Point(708, 320);
this.groupBox34.Name = "groupBox34";
this.groupBox34.Size = new System.Drawing.Size(226, 150);
this.groupBox34.TabIndex = 34;
698,7 → 672,7
//
this.groupBox30.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox30.Controls.Add(this.simpleSerialPort);
this.groupBox30.Location = new System.Drawing.Point(678, 8);
this.groupBox30.Location = new System.Drawing.Point(675, 8);
this.groupBox30.Name = "groupBox30";
this.groupBox30.Size = new System.Drawing.Size(259, 297);
this.groupBox30.TabIndex = 30;
705,6 → 679,15
this.groupBox30.TabStop = false;
this.groupBox30.Text = "Serial connection";
//
// simpleSerialPort
//
this.simpleSerialPort.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.simpleSerialPort.Location = new System.Drawing.Point(24, 19);
this.simpleSerialPort.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.simpleSerialPort.Name = "simpleSerialPort";
this.simpleSerialPort.Size = new System.Drawing.Size(235, 280);
this.simpleSerialPort.TabIndex = 0;
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
729,7 → 712,7
//
// btnOSDAuto
//
this.btnOSDAuto.Location = new System.Drawing.Point(768, 158);
this.btnOSDAuto.Location = new System.Drawing.Point(802, 148);
this.btnOSDAuto.Name = "btnOSDAuto";
this.btnOSDAuto.Size = new System.Drawing.Size(131, 41);
this.btnOSDAuto.TabIndex = 33;
740,7 → 723,7
//
// btnOSD
//
this.btnOSD.Location = new System.Drawing.Point(768, 111);
this.btnOSD.Location = new System.Drawing.Point(802, 101);
this.btnOSD.Name = "btnOSD";
this.btnOSD.Size = new System.Drawing.Size(131, 41);
this.btnOSD.TabIndex = 33;
751,7 → 734,7
//
// button4
//
this.button4.Location = new System.Drawing.Point(768, 64);
this.button4.Location = new System.Drawing.Point(802, 54);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(131, 41);
this.button4.TabIndex = 33;
762,7 → 745,7
//
// button3
//
this.button3.Location = new System.Drawing.Point(768, 22);
this.button3.Location = new System.Drawing.Point(802, 12);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(131, 36);
this.button3.TabIndex = 32;
773,7 → 756,7
//
// btnReadFCFile
//
this.btnReadFCFile.Location = new System.Drawing.Point(340, 17);
this.btnReadFCFile.Location = new System.Drawing.Point(202, 7);
this.btnReadFCFile.Name = "btnReadFCFile";
this.btnReadFCFile.Size = new System.Drawing.Size(86, 28);
this.btnReadFCFile.TabIndex = 25;
783,7 → 766,7
//
// btnLoadFCLabels
//
this.btnLoadFCLabels.Location = new System.Drawing.Point(145, 89);
this.btnLoadFCLabels.Location = new System.Drawing.Point(7, 79);
this.btnLoadFCLabels.Name = "btnLoadFCLabels";
this.btnLoadFCLabels.Size = new System.Drawing.Size(75, 36);
this.btnLoadFCLabels.TabIndex = 24;
793,7 → 776,7
//
// btnSaveFCLabels
//
this.btnSaveFCLabels.Location = new System.Drawing.Point(145, 49);
this.btnSaveFCLabels.Location = new System.Drawing.Point(7, 39);
this.btnSaveFCLabels.Name = "btnSaveFCLabels";
this.btnSaveFCLabels.Size = new System.Drawing.Size(75, 36);
this.btnSaveFCLabels.TabIndex = 23;
804,7 → 787,7
// lbLabels
//
this.lbLabels.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbLabels.Location = new System.Drawing.Point(226, 49);
this.lbLabels.Location = new System.Drawing.Point(88, 39);
this.lbLabels.Name = "lbLabels";
this.lbLabels.Size = new System.Drawing.Size(200, 433);
this.lbLabels.TabIndex = 22;
811,7 → 794,7
//
// button2
//
this.button2.Location = new System.Drawing.Point(145, 147);
this.button2.Location = new System.Drawing.Point(7, 137);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 52);
this.button2.TabIndex = 18;
822,7 → 805,7
// lblFileName
//
this.lblFileName.AutoSize = true;
this.lblFileName.Location = new System.Drawing.Point(225, 26);
this.lblFileName.Location = new System.Drawing.Point(87, 16);
this.lblFileName.Name = "lblFileName";
this.lblFileName.Size = new System.Drawing.Size(136, 18);
this.lblFileName.TabIndex = 8;
855,11 → 838,74
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, 489);
this.tabPage3.Size = new System.Drawing.Size(942, 480);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Visual";
this.tabPage3.UseVisualStyleBackColor = true;
//
// lblNCDistHP1
//
this.lblNCDistHP1.AutoSize = true;
this.lblNCDistHP1.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCDistHP1.Location = new System.Drawing.Point(704, 194);
this.lblNCDistHP1.Name = "lblNCDistHP1";
this.lblNCDistHP1.Size = new System.Drawing.Size(54, 29);
this.lblNCDistHP1.TabIndex = 0;
this.lblNCDistHP1.Text = "Dist";
//
// groupBox8
//
this.groupBox8.Controls.Add(this.lblNCWPCount);
this.groupBox8.Controls.Add(this.label11);
this.groupBox8.Controls.Add(this.lblNCWPIndex);
this.groupBox8.Controls.Add(this.label10);
this.groupBox8.Location = new System.Drawing.Point(803, 257);
this.groupBox8.Name = "groupBox8";
this.groupBox8.Size = new System.Drawing.Size(134, 72);
this.groupBox8.TabIndex = 39;
this.groupBox8.TabStop = false;
this.groupBox8.Text = "Waypoint list";
//
// lblNCWPCount
//
this.lblNCWPCount.AutoSize = true;
this.lblNCWPCount.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCWPCount.Location = new System.Drawing.Point(100, 41);
this.lblNCWPCount.Name = "lblNCWPCount";
this.lblNCWPCount.Size = new System.Drawing.Size(18, 20);
this.lblNCWPCount.TabIndex = 40;
this.lblNCWPCount.Text = "#";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.Location = new System.Drawing.Point(15, 41);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(49, 20);
this.label11.TabIndex = 40;
this.label11.Text = "count";
//
// lblNCWPIndex
//
this.lblNCWPIndex.AutoSize = true;
this.lblNCWPIndex.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCWPIndex.Location = new System.Drawing.Point(100, 21);
this.lblNCWPIndex.Name = "lblNCWPIndex";
this.lblNCWPIndex.Size = new System.Drawing.Size(18, 20);
this.lblNCWPIndex.TabIndex = 40;
this.lblNCWPIndex.Text = "#";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.Location = new System.Drawing.Point(15, 21);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(76, 20);
this.label10.TabIndex = 40;
this.label10.Text = "act. index";
//
// groupBox38
//
this.groupBox38.Controls.Add(this.label9);
914,6 → 960,13
this.lblNCGPSLong.TabIndex = 0;
this.lblNCGPSLong.Text = "Long";
//
// headingIndicator1
//
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;
//
// groupBox7
//
this.groupBox7.Controls.Add(this.dgvMotors2);
982,7 → 1035,7
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.Location = new System.Drawing.Point(800, 194);
this.groupBox39.Name = "groupBox39";
this.groupBox39.Size = new System.Drawing.Size(135, 57);
this.groupBox39.TabIndex = 5;
1109,7 → 1162,7
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(840, 342);
this.groupBox35.Location = new System.Drawing.Point(837, 333);
this.groupBox35.Name = "groupBox35";
this.groupBox35.Size = new System.Drawing.Size(101, 145);
this.groupBox35.TabIndex = 11;
1186,7 → 1239,7
this.groupBox33.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
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.Location = new System.Drawing.Point(800, 131);
this.groupBox33.Name = "groupBox33";
this.groupBox33.Size = new System.Drawing.Size(135, 57);
this.groupBox33.TabIndex = 4;
1355,7 → 1408,7
this.groupBox25.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox25.Controls.Add(this.lblNCGSpeed);
this.groupBox25.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox25.Location = new System.Drawing.Point(803, 12);
this.groupBox25.Location = new System.Drawing.Point(800, 12);
this.groupBox25.Name = "groupBox25";
this.groupBox25.Size = new System.Drawing.Size(135, 57);
this.groupBox25.TabIndex = 3;
1377,7 → 1430,7
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.lblNCAlt);
this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox1.Location = new System.Drawing.Point(803, 71);
this.groupBox1.Location = new System.Drawing.Point(800, 71);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(135, 57);
this.groupBox1.TabIndex = 3;
1394,6 → 1447,18
this.lblNCAlt.TabIndex = 0;
this.lblNCAlt.Text = "Alt";
//
// artificialHorizon1
//
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(467, 221);
this.artificialHorizon1.Name = "artificialHorizon1";
this.artificialHorizon1.pitch_angle = 0D;
this.artificialHorizon1.roll_angle = 0D;
this.artificialHorizon1.Size = new System.Drawing.Size(210, 210);
this.artificialHorizon1.TabIndex = 1;
//
// lblNCCompass
//
this.lblNCCompass.AutoSize = true;
1432,7 → 1497,7
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, 25);
this.lblCRCErr.Location = new System.Drawing.Point(638, 32);
this.lblCRCErr.Name = "lblCRCErr";
this.lblCRCErr.Size = new System.Drawing.Size(14, 16);
this.lblCRCErr.TabIndex = 12;
1443,7 → 1508,7
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, 25);
this.label6.Location = new System.Drawing.Point(557, 32);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(61, 16);
this.label6.TabIndex = 11;
1453,7 → 1518,7
//
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, 6);
this.lblLifeCounter.Location = new System.Drawing.Point(638, 13);
this.lblLifeCounter.Name = "lblLifeCounter";
this.lblLifeCounter.Size = new System.Drawing.Size(14, 14);
this.lblLifeCounter.TabIndex = 10;
1463,7 → 1528,7
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, 4);
this.label1.Location = new System.Drawing.Point(556, 11);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(79, 16);
this.label1.TabIndex = 9;
1474,7 → 1539,7
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, 4);
this.groupBox31.Location = new System.Drawing.Point(473, 11);
this.groupBox31.Name = "groupBox31";
this.groupBox31.Size = new System.Drawing.Size(82, 39);
this.groupBox31.TabIndex = 8;
1491,407 → 1556,243
this.lblNCCtrl.TabIndex = 0;
this.lblNCCtrl.Text = "FC/NC";
//
// tabControl1
// TabControl1
//
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPageTesting);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
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, 520);
this.tabControl1.TabIndex = 15;
this.TabControl1.Controls.Add(this.tabPage3);
this.TabControl1.Controls.Add(this.tabPageSerial);
this.TabControl1.Controls.Add(this.tabPage2);
this.TabControl1.Controls.Add(this.tabPageTesting);
this.TabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.TabControl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.TabControl1.Location = new System.Drawing.Point(0, 0);
this.TabControl1.Name = "TabControl1";
this.TabControl1.SelectedIndex = 0;
this.TabControl1.Size = new System.Drawing.Size(950, 511);
this.TabControl1.TabIndex = 15;
//
// tabPageTesting
// tabPageSerial
//
this.tabPageTesting.Controls.Add(this.groupBox6);
this.tabPageTesting.Controls.Add(this.lbLabels);
this.tabPageTesting.Controls.Add(this.btnOSDAuto);
this.tabPageTesting.Controls.Add(this.btnOSD);
this.tabPageTesting.Controls.Add(this.btnSaveFCLabels);
this.tabPageTesting.Controls.Add(this.btnLoadFCLabels);
this.tabPageTesting.Controls.Add(this.button4);
this.tabPageTesting.Controls.Add(this.lblFileName);
this.tabPageTesting.Controls.Add(this.btnReadFCFile);
this.tabPageTesting.Controls.Add(this.button3);
this.tabPageTesting.Controls.Add(this.button2);
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, 489);
this.tabPageTesting.TabIndex = 3;
this.tabPageTesting.Text = "testing";
this.tabPageTesting.UseVisualStyleBackColor = true;
this.tabPageSerial.Controls.Add(this.groupBox9);
this.tabPageSerial.Controls.Add(this.groupBox6);
this.tabPageSerial.Location = new System.Drawing.Point(4, 27);
this.tabPageSerial.Name = "tabPageSerial";
this.tabPageSerial.Padding = new System.Windows.Forms.Padding(3);
this.tabPageSerial.Size = new System.Drawing.Size(942, 480);
this.tabPageSerial.TabIndex = 4;
this.tabPageSerial.Text = "Serial channels";
this.tabPageSerial.UseVisualStyleBackColor = true;
//
// groupBox6
// groupBox9
//
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";
this.groupBox9.Controls.Add(this.btnSer2_254);
this.groupBox9.Controls.Add(this.btnSer2_127);
this.groupBox9.Controls.Add(this.btnSer2_0);
this.groupBox9.Controls.Add(this.textBoxSerial2);
this.groupBox9.Controls.Add(this.lblTbSerial2);
this.groupBox9.Controls.Add(this.trckbarSerial2);
this.groupBox9.Location = new System.Drawing.Point(8, 134);
this.groupBox9.Name = "groupBox9";
this.groupBox9.Size = new System.Drawing.Size(225, 112);
this.groupBox9.TabIndex = 4;
this.groupBox9.TabStop = false;
this.groupBox9.Text = "Ch #2";
//
// gbM5Curr
// btnSer2_254
//
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";
this.btnSer2_254.Location = new System.Drawing.Point(149, 78);
this.btnSer2_254.Name = "btnSer2_254";
this.btnSer2_254.Size = new System.Drawing.Size(55, 29);
this.btnSer2_254.TabIndex = 3;
this.btnSer2_254.Text = "254";
this.btnSer2_254.UseVisualStyleBackColor = true;
this.btnSer2_254.Click += new System.EventHandler(this.btnSer2_254_Click);
//
// LBLNCM5Cur
// btnSer2_127
//
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";
this.btnSer2_127.Location = new System.Drawing.Point(84, 78);
this.btnSer2_127.Name = "btnSer2_127";
this.btnSer2_127.Size = new System.Drawing.Size(55, 29);
this.btnSer2_127.TabIndex = 3;
this.btnSer2_127.Text = "127";
this.btnSer2_127.UseVisualStyleBackColor = true;
this.btnSer2_127.Click += new System.EventHandler(this.btnSer2_127_Click);
//
// gbM8Temp
// btnSer2_0
//
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";
this.btnSer2_0.Location = new System.Drawing.Point(19, 78);
this.btnSer2_0.Name = "btnSer2_0";
this.btnSer2_0.Size = new System.Drawing.Size(55, 29);
this.btnSer2_0.TabIndex = 3;
this.btnSer2_0.Text = "0";
this.btnSer2_0.UseVisualStyleBackColor = true;
this.btnSer2_0.Click += new System.EventHandler(this.btnSer2_0_Click);
//
// LBLNCM8Temp
// textBoxSerial2
//
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";
this.textBoxSerial2.BackColor = System.Drawing.Color.White;
this.textBoxSerial2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBoxSerial2.Location = new System.Drawing.Point(19, 26);
this.textBoxSerial2.MaxLength = 22;
this.textBoxSerial2.Name = "textBoxSerial2";
this.textBoxSerial2.Size = new System.Drawing.Size(155, 24);
this.textBoxSerial2.TabIndex = 2;
this.textBoxSerial2.WordWrap = false;
this.textBoxSerial2.TextChanged += new System.EventHandler(this.textBoxSerial2_TextChanged);
//
// gbM5Temp
// lblTbSerial2
//
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";
this.lblTbSerial2.AutoSize = true;
this.lblTbSerial2.BackColor = System.Drawing.Color.Transparent;
this.lblTbSerial2.Location = new System.Drawing.Point(173, 28);
this.lblTbSerial2.Name = "lblTbSerial2";
this.lblTbSerial2.Size = new System.Drawing.Size(57, 18);
this.lblTbSerial2.TabIndex = 1;
this.lblTbSerial2.Text = "Serial 2";
//
// LBLNCM5Temp
// trckbarSerial2
//
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";
this.trckbarSerial2.BackColor = System.Drawing.Color.White;
this.trckbarSerial2.Location = new System.Drawing.Point(11, 52);
this.trckbarSerial2.Maximum = 254;
this.trckbarSerial2.Name = "trckbarSerial2";
this.trckbarSerial2.Size = new System.Drawing.Size(201, 45);
this.trckbarSerial2.TabIndex = 0;
this.trckbarSerial2.TickStyle = System.Windows.Forms.TickStyle.None;
this.trckbarSerial2.ValueChanged += new System.EventHandler(this.trckbarSerial2_ValueChanged);
//
// gbM7Temp
// groupBox6
//
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";
this.groupBox6.Controls.Add(this.btnSer1_254);
this.groupBox6.Controls.Add(this.btnSer1_127);
this.groupBox6.Controls.Add(this.btnSer1_0);
this.groupBox6.Controls.Add(this.textBoxSerial1);
this.groupBox6.Controls.Add(this.lblTbSerial1);
this.groupBox6.Controls.Add(this.trckbarSerial1);
this.groupBox6.Location = new System.Drawing.Point(8, 6);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(225, 112);
this.groupBox6.TabIndex = 3;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "Ch #1";
//
// LBLNCM7Temp
// btnSer1_254
//
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";
this.btnSer1_254.Location = new System.Drawing.Point(149, 78);
this.btnSer1_254.Name = "btnSer1_254";
this.btnSer1_254.Size = new System.Drawing.Size(55, 29);
this.btnSer1_254.TabIndex = 3;
this.btnSer1_254.Text = "254";
this.btnSer1_254.UseVisualStyleBackColor = true;
this.btnSer1_254.Click += new System.EventHandler(this.btnSer1_254_Click);
//
// gbM8Curr
// btnSer1_127
//
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";
this.btnSer1_127.Location = new System.Drawing.Point(84, 78);
this.btnSer1_127.Name = "btnSer1_127";
this.btnSer1_127.Size = new System.Drawing.Size(55, 29);
this.btnSer1_127.TabIndex = 3;
this.btnSer1_127.Text = "127";
this.btnSer1_127.UseVisualStyleBackColor = true;
this.btnSer1_127.Click += new System.EventHandler(this.btnSer1_127_Click);
//
// LBLNCM8Cur
// btnSer1_0
//
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";
this.btnSer1_0.Location = new System.Drawing.Point(19, 78);
this.btnSer1_0.Name = "btnSer1_0";
this.btnSer1_0.Size = new System.Drawing.Size(55, 29);
this.btnSer1_0.TabIndex = 3;
this.btnSer1_0.Text = "0";
this.btnSer1_0.UseVisualStyleBackColor = true;
this.btnSer1_0.Click += new System.EventHandler(this.btnSer1_0_Click);
//
// gbM6Curr
// textBoxSerial1
//
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";
this.textBoxSerial1.BackColor = System.Drawing.Color.White;
this.textBoxSerial1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBoxSerial1.Location = new System.Drawing.Point(19, 26);
this.textBoxSerial1.MaxLength = 22;
this.textBoxSerial1.Name = "textBoxSerial1";
this.textBoxSerial1.Size = new System.Drawing.Size(155, 24);
this.textBoxSerial1.TabIndex = 2;
this.textBoxSerial1.WordWrap = false;
this.textBoxSerial1.TextChanged += new System.EventHandler(this.textBoxSerial1_TextChanged);
//
// LBLNCM6Cur
// lblTbSerial1
//
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";
this.lblTbSerial1.AutoSize = true;
this.lblTbSerial1.BackColor = System.Drawing.Color.Transparent;
this.lblTbSerial1.Location = new System.Drawing.Point(173, 28);
this.lblTbSerial1.Name = "lblTbSerial1";
this.lblTbSerial1.Size = new System.Drawing.Size(57, 18);
this.lblTbSerial1.TabIndex = 1;
this.lblTbSerial1.Text = "Serial 1";
//
// gbM7Curr
// trckbarSerial1
//
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";
this.trckbarSerial1.BackColor = System.Drawing.Color.White;
this.trckbarSerial1.Location = new System.Drawing.Point(11, 52);
this.trckbarSerial1.Maximum = 254;
this.trckbarSerial1.Name = "trckbarSerial1";
this.trckbarSerial1.Size = new System.Drawing.Size(201, 45);
this.trckbarSerial1.TabIndex = 0;
this.trckbarSerial1.TickStyle = System.Windows.Forms.TickStyle.None;
this.trckbarSerial1.Scroll += new System.EventHandler(this.tbSerial1_Scroll);
this.trckbarSerial1.ValueChanged += new System.EventHandler(this.trckbarSerial1_ValueChanged);
//
// LBLNCM7Cur
// tabPageTesting
//
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";
this.tabPageTesting.Controls.Add(this.cbWPIndex);
this.tabPageTesting.Controls.Add(this.btnGetWP);
this.tabPageTesting.Controls.Add(this.dgvWP);
this.tabPageTesting.Controls.Add(this.lbLabels);
this.tabPageTesting.Controls.Add(this.btnOSDAuto);
this.tabPageTesting.Controls.Add(this.btnOSD);
this.tabPageTesting.Controls.Add(this.btnSaveFCLabels);
this.tabPageTesting.Controls.Add(this.btnLoadFCLabels);
this.tabPageTesting.Controls.Add(this.button4);
this.tabPageTesting.Controls.Add(this.lblFileName);
this.tabPageTesting.Controls.Add(this.btnReadFCFile);
this.tabPageTesting.Controls.Add(this.button3);
this.tabPageTesting.Controls.Add(this.button2);
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(942, 480);
this.tabPageTesting.TabIndex = 3;
this.tabPageTesting.Text = "testing";
this.tabPageTesting.UseVisualStyleBackColor = true;
//
// gbM6Temp
// cbWPIndex
//
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";
this.cbWPIndex.FormattingEnabled = true;
this.cbWPIndex.Location = new System.Drawing.Point(384, 400);
this.cbWPIndex.Name = "cbWPIndex";
this.cbWPIndex.Size = new System.Drawing.Size(63, 26);
this.cbWPIndex.TabIndex = 36;
//
// LBLNCM6Temp
// btnGetWP
//
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";
this.btnGetWP.Location = new System.Drawing.Point(294, 396);
this.btnGetWP.Name = "btnGetWP";
this.btnGetWP.Size = new System.Drawing.Size(84, 32);
this.btnGetWP.TabIndex = 35;
this.btnGetWP.Text = "button6";
this.btnGetWP.UseVisualStyleBackColor = true;
this.btnGetWP.Click += new System.EventHandler(this.btnGetWP_Click);
//
// gbM1Curr
// dgvWP
//
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";
this.dgvWP.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvWP.Location = new System.Drawing.Point(294, 39);
this.dgvWP.Name = "dgvWP";
this.dgvWP.Size = new System.Drawing.Size(502, 339);
this.dgvWP.TabIndex = 34;
//
// 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, -5);
this.btnConn.Location = new System.Drawing.Point(658, 2);
this.btnConn.Name = "btnConn";
this.btnConn.Size = new System.Drawing.Size(141, 55);
this.btnConn.TabIndex = 28;
1902,7 → 1803,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, -7);
this.rtfError.Location = new System.Drawing.Point(268, 0);
this.rtfError.Name = "rtfError";
this.rtfError.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
this.rtfError.Size = new System.Drawing.Size(204, 58);
1921,7 → 1822,7
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.tabControl1);
this.splitContainer1.Panel1.Controls.Add(this.TabControl1);
//
// splitContainer1.Panel2
//
1934,107 → 1835,16
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, 574);
this.splitContainer1.SplitterDistance = 520;
this.splitContainer1.Size = new System.Drawing.Size(950, 572);
this.splitContainer1.SplitterDistance = 511;
this.splitContainer1.SplitterWidth = 1;
this.splitContainer1.TabIndex = 36;
//
// groupBox8
//
this.groupBox8.Controls.Add(this.lblNCWPCount);
this.groupBox8.Controls.Add(this.label11);
this.groupBox8.Controls.Add(this.lblNCWPIndex);
this.groupBox8.Controls.Add(this.label10);
this.groupBox8.Location = new System.Drawing.Point(803, 257);
this.groupBox8.Name = "groupBox8";
this.groupBox8.Size = new System.Drawing.Size(134, 72);
this.groupBox8.TabIndex = 39;
this.groupBox8.TabStop = false;
this.groupBox8.Text = "Waypoints";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.Location = new System.Drawing.Point(15, 21);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(76, 20);
this.label10.TabIndex = 40;
this.label10.Text = "act. index";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.Location = new System.Drawing.Point(15, 41);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(49, 20);
this.label11.TabIndex = 40;
this.label11.Text = "count";
//
// lblNCWPIndex
//
this.lblNCWPIndex.AutoSize = true;
this.lblNCWPIndex.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCWPIndex.Location = new System.Drawing.Point(100, 21);
this.lblNCWPIndex.Name = "lblNCWPIndex";
this.lblNCWPIndex.Size = new System.Drawing.Size(18, 20);
this.lblNCWPIndex.TabIndex = 40;
this.lblNCWPIndex.Text = "#";
//
// lblNCWPCount
//
this.lblNCWPCount.AutoSize = true;
this.lblNCWPCount.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCWPCount.Location = new System.Drawing.Point(100, 41);
this.lblNCWPCount.Name = "lblNCWPCount";
this.lblNCWPCount.Size = new System.Drawing.Size(18, 20);
this.lblNCWPCount.TabIndex = 40;
this.lblNCWPCount.Text = "#";
//
// lblNCDistHP1
//
this.lblNCDistHP1.AutoSize = true;
this.lblNCDistHP1.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblNCDistHP1.Location = new System.Drawing.Point(704, 194);
this.lblNCDistHP1.Name = "lblNCDistHP1";
this.lblNCDistHP1.Size = new System.Drawing.Size(54, 29);
this.lblNCDistHP1.TabIndex = 0;
this.lblNCDistHP1.Text = "Dist";
//
// headingIndicator1
//
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;
//
// artificialHorizon1
//
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(467, 221);
this.artificialHorizon1.Name = "artificialHorizon1";
this.artificialHorizon1.pitch_angle = 0D;
this.artificialHorizon1.roll_angle = 0D;
this.artificialHorizon1.Size = new System.Drawing.Size(210, 210);
this.artificialHorizon1.TabIndex = 1;
//
// simpleSerialPort
//
this.simpleSerialPort.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.simpleSerialPort.Location = new System.Drawing.Point(24, 19);
this.simpleSerialPort.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.simpleSerialPort.Name = "simpleSerialPort";
this.simpleSerialPort.Size = new System.Drawing.Size(235, 280);
this.simpleSerialPort.TabIndex = 0;
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(953, 574);
this.ClientSize = new System.Drawing.Size(950, 572);
this.Controls.Add(this.splitContainer1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "MainForm";
2051,6 → 1861,8
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.groupBox8.ResumeLayout(false);
this.groupBox8.PerformLayout();
this.groupBox38.ResumeLayout(false);
this.groupBox38.PerformLayout();
this.groupBox7.ResumeLayout(false);
2089,48 → 1901,21
this.groupBox1.PerformLayout();
this.groupBox31.ResumeLayout(false);
this.groupBox31.PerformLayout();
this.tabControl1.ResumeLayout(false);
this.TabControl1.ResumeLayout(false);
this.tabPageSerial.ResumeLayout(false);
this.groupBox9.ResumeLayout(false);
this.groupBox9.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.trckbarSerial2)).EndInit();
this.groupBox6.ResumeLayout(false);
this.groupBox6.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.trckbarSerial1)).EndInit();
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();
((System.ComponentModel.ISupportInitialize)(this.dgvWP)).EndInit();
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.Panel2.PerformLayout();
this.splitContainer1.ResumeLayout(false);
this.groupBox8.ResumeLayout(false);
this.groupBox8.PerformLayout();
this.ResumeLayout(false);
 
}
2187,7 → 1972,7
private System.Windows.Forms.Label lblNCCompass;
private System.Windows.Forms.Label lblNCRoll;
private System.Windows.Forms.Label lblNCPitch;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabControl TabControl1;
private System.Windows.Forms.GroupBox groupBox30;
private System.Windows.Forms.Button btnConn;
private System.Windows.Forms.GroupBox groupBox31;
2244,39 → 2029,6
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;
private System.Windows.Forms.GroupBox groupBox8;
private System.Windows.Forms.Label lblNCWPCount;
private System.Windows.Forms.Label label11;
2283,6 → 2035,24
private System.Windows.Forms.Label lblNCWPIndex;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label lblNCDistHP1;
private System.Windows.Forms.DataGridView dgvWP;
private System.Windows.Forms.Button btnGetWP;
private System.Windows.Forms.ComboBox cbWPIndex;
private System.Windows.Forms.TabPage tabPageSerial;
private System.Windows.Forms.Label lblTbSerial1;
private System.Windows.Forms.TrackBar trckbarSerial1;
private System.Windows.Forms.TextBox textBoxSerial1;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.Button btnSer1_254;
private System.Windows.Forms.Button btnSer1_127;
private System.Windows.Forms.Button btnSer1_0;
private System.Windows.Forms.GroupBox groupBox9;
private System.Windows.Forms.Button btnSer2_254;
private System.Windows.Forms.Button btnSer2_127;
private System.Windows.Forms.Button btnSer2_0;
private System.Windows.Forms.TextBox textBoxSerial2;
private System.Windows.Forms.Label lblTbSerial2;
private System.Windows.Forms.TrackBar trckbarSerial2;
}
}
 
/MKLiveView/Source/MainForm.cs
158,6 → 158,8
int _iLifeCounter = 0;
int iOSDPage = 0;
int iOSDMax = 0;
int[] serChan = new int[12] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
string[] serChanTitle = new string[12];
/// <summary>
/// interval for sending debugdata (multiplied by 10ms)
/// </summary>
184,13 → 186,19
DataTable dtMotors1 = new DataTable();
DataTable dtMotors2 = new DataTable();
 
DataTable dtWaypoints = new DataTable();
 
public MainForm()
{
InitializeComponent();
serChanTitle.Initialize();
 
_readIni();
 
dtAnalog.Columns.Add("ID");
dtAnalog.Columns.Add("Value");
dataGridView1.DataSource = dtAnalog;
 
dtMotors1.Columns.Add("#");
dtMotors1.Columns.Add("Current");
dtMotors1.Columns.Add("Temp");
206,6 → 214,25
dgvMotors2.Columns[0].Width = 24;
dgvMotors2.Columns[1].Width = 74;
dgvMotors2.Columns[2].Width = 74;
 
dtWaypoints.Columns.Add("Index");
dtWaypoints.Columns.Add("Type");
dtWaypoints.Columns.Add("Name");
dtWaypoints.Columns.Add("Latitude");
dtWaypoints.Columns.Add("Longitude");
dtWaypoints.Columns.Add("Altitude");
dtWaypoints.Columns.Add("Heading");
dtWaypoints.Columns.Add("Speed");
dtWaypoints.Columns.Add("Altitude rate");
dtWaypoints.Columns.Add("Tol.radius");
dtWaypoints.Columns.Add("Hold time");
dtWaypoints.Columns.Add("AutoTrigger");
dtWaypoints.Columns.Add("Cam angle");
dtWaypoints.Columns.Add("Event");
dtWaypoints.Columns.Add("Eventchan. Val.");
dtWaypoints.Columns.Add("Status");
dgvWP.DataSource = dtWaypoints;
 
simpleSerialPort.PortClosed += SimpleSerialPort_PortClosed;
simpleSerialPort.PortOpened += SimpleSerialPort_PortOpened;
simpleSerialPort.DataReceived += processMessage;
217,12 → 244,14
labelTimingBLCTRL.Text = (blctrlInterval * 10).ToString();
labelTimingNAV.Text = (navctrlInterval * 10).ToString();
labelTimingOSD.Text = (OSDInterval * 10).ToString();
tabControl1.TabPages.Remove(tabPageTesting);
TabControl1.TabPages.Remove(tabPageTesting);
}
 
#region events
private void MainForm_Shown(object sender, EventArgs e)
{
_loadLabelNames();
_initSerialCtrl();
_init = false;
splitContainer1.SplitterDistance = 514;
}
237,6 → 266,8
_getVersion();
Thread.Sleep(100);
_OSDMenue(0);
Thread.Sleep(200);
_sendSerialData();
// _readCont(true);
}
private void SimpleSerialPort_PortClosed()
331,6 → 362,7
{
System.Diagnostics.Process.Start(e.LinkText);
}
#endregion events
 
/// <summary> Log data to the terminal window. </summary>
406,8 → 438,33
char cmdID;
byte adr;
byte[] data;
byte[] tmp = null;
if (message[0] != '#')
Log(LogMsgType.Normal, s.Trim('\0', '\n','\r'));
{
int iFound = -1;
for(int i=0;i<message.Length;i++) //Sometimes the FC/NC sends strings without termination (like WP messages)
{ //so this is a workaround to not spam the log box
if (message[i] == 35)
{
iFound = i;
break;
}
}
if(iFound>0)
{
s = new string(ASCIIEncoding.ASCII.GetChars(message, 0,iFound));
tmp = new byte[message.Length - iFound];
Buffer.BlockCopy(message, iFound, tmp, 0, message.Length - iFound);
}
s = s.Trim('\0', '\n', '\r');
if(s.Length > 0)
Log(LogMsgType.Normal, s);
if (tmp != null)
{
s = new string(ASCIIEncoding.ASCII.GetChars(tmp, 0, tmp.Length));
processMessage(tmp);
}
}
//Debug.Print(s);
else
{
441,10 → 498,10
lblCtrl.Invoke((Action)(() => lblCtrl.Text = "...."));
break;
}
_loadLabelNames();
_loadLabelNames();
}
// else
// Debug.Print("Address == 0?");
// else
// Debug.Print("Address == 0?");
 
if (data != null && data.Length > 0)
{
458,7 → 515,7
break;
 
case 'D': //Debug data
_processDebugVals(adr,data);
_processDebugVals(adr, data);
break;
 
case 'V': //Version
485,6 → 542,10
_processOSDAuto(data);
break;
 
case 'X': //Waypoint data
_processWPData(data);
break;
 
//default:
// Log(LogMsgType.Incoming, "cmd: " + cmdID.ToString());
// Log(LogMsgType.Incoming, BitConverter.ToString(data));
794,6 → 855,29
 
}
/// <summary>
/// Navi-Ctrl WP data struct 'X'
/// called by index
/// </summary>
/// <param name="data">the received byte array to process</param>
void _processWPData(byte[] data)
{
if (data.Length >= 28)
{
int count = data[0];
int index = data[1];
cbWPIndex.Invoke((Action)(() => cbWPIndex.Items.Clear()));
for (int i = 0; i < count; i++)
cbWPIndex.Invoke((Action)(() => cbWPIndex.Items.Add(i + 1)));
cbWPIndex.Invoke((Action)(() => cbWPIndex.SelectedItem = index));
DataRow dr = dtWaypoints.NewRow();
dr = Waypoints.toDataRow(data, dr);
dtWaypoints.Rows.Add(dr);
dgvWP.Invoke((Action)(() => dgvWP.Update()));
}
else
Debug.Print(new string(ASCIIEncoding.ASCII.GetChars(data, 0, data.Length)));
}
/// <summary>
/// OSD Menue 'L'
/// single page called by pagenumber
/// no autoupdate
1203,6 → 1287,15
blctrlInterval = (byte)Convert.ToInt16(sVal);
sVal = ini.IniReadValue("default", "IntervalOSDData");
OSDInterval = (byte)Convert.ToInt16(sVal);
for(int i = 0; i < 12; i++)
{
sVal = ini.IniReadValue("serial", "ch" + i.ToString() + "Val");
if(sVal != "")
serChan[i] = Convert.ToInt16(sVal);
sVal = ini.IniReadValue("serial", "ch" + i.ToString() + "Title");
if(sVal != "")
serChanTitle[i] = sVal;
}
}
void _writeIni()
{
1219,6 → 1312,13
ini.IniWriteValue("default", "IntervalNavCtrlData", navctrlInterval.ToString());
ini.IniWriteValue("default", "IntervalBLCtrlData", blctrlInterval.ToString());
ini.IniWriteValue("default", "IntervalOSDData", OSDInterval.ToString());
 
for (int i = 0; i < 12; i++)
{
ini.IniWriteValue("serial", "ch" + i.ToString() + "Val", serChan[i].ToString());
ini.IniWriteValue("serial", "ch" + i.ToString() + "Title", serChanTitle[i]);
}
 
}
 
/// <summary>
1280,7 → 1380,11
 
return deg.ToString("0° ") + min.ToString("0") + "' " + sec.ToString("0") + "," + milli.ToString() + "\"";
}
 
/// <summary>
/// Clear the line in the errorlog window
/// containing the error string when error has ceased
/// </summary>
/// <param name="s">substring of errrormessage</param>
void _clearErrorLog(string s)
{
rtfError.Invoke((Action)(() =>
1317,6 → 1421,44
}));
 
}
/// <summary>
/// request the Waypoint at index
/// </summary>
/// <param name="index"></param>
void _getpWP(int index)
{
if (simpleSerialPort.Port.IsOpen)
{
Stream serialStream = simpleSerialPort.Port.BaseStream;
byte[] bytes = FlightControllerMessage.CreateMessage('x', 2, new byte[1] { (byte)index });
serialStream.Write(bytes, 0, bytes.Length);
}
else
Log(LogMsgType.Error, "NOT CONNECTED!");
 
}
/// <summary>
/// Sending the serial channel values
/// </summary>
void _sendSerialData()
{
byte[] serData = new byte[12];
for(int i = 0; i < 12; i++)
{
serData[i] = unchecked((byte)(serChan[i] - 127));
}
_sendControllerMessage('y', 1, serData);
}
 
void _initSerialCtrl()
{
trckbarSerial1.Value = serChan[0];
textBoxSerial1.Text = serChanTitle[0];
lblTbSerial1.Text = serChan[0].ToString();
trckbarSerial2.Value = serChan[1];
textBoxSerial2.Text = serChanTitle[1];
lblTbSerial2.Text = serChan[1].ToString();
}
#endregion functions
 
#region buttons
1438,8 → 1580,74
{
_OSDMenueAutoRefresh(4);
}
private void btnGetWP_Click(object sender, EventArgs e)
{
if(cbWPIndex.Items.Count >0)
_getpWP((int)cbWPIndex.SelectedItem);
else
_getpWP(1);
}
#endregion buttons
 
private void tbSerial1_Scroll(object sender, EventArgs e)
{
lblTbSerial1.Text = trckbarSerial1.Value.ToString();
serChan[0] = trckbarSerial1.Value;
if (!_init) _sendSerialData();
}
private void textBoxSerial1_TextChanged(object sender, EventArgs e)
{
serChanTitle[0] = textBoxSerial1.Text;
}
private void btnSer1_0_Click(object sender, EventArgs e)
{
trckbarSerial1.Value = 0;
}
 
private void btnSer1_127_Click(object sender, EventArgs e)
{
trckbarSerial1.Value = 127;
}
 
private void btnSer1_254_Click(object sender, EventArgs e)
{
trckbarSerial1.Value = 254;
}
 
private void trckbarSerial1_ValueChanged(object sender, EventArgs e)
{
lblTbSerial1.Text = trckbarSerial1.Value.ToString();
serChan[0] = trckbarSerial1.Value;
if (!_init) _sendSerialData();
}
 
private void textBoxSerial2_TextChanged(object sender, EventArgs e)
{
serChanTitle[2] = textBoxSerial2.Text;
}
 
private void trckbarSerial2_ValueChanged(object sender, EventArgs e)
{
lblTbSerial2.Text = trckbarSerial2.Value.ToString();
serChan[1] = trckbarSerial2.Value;
if (!_init) _sendSerialData();
 
}
 
private void btnSer2_0_Click(object sender, EventArgs e)
{
trckbarSerial2.Value = 0;
}
 
private void btnSer2_127_Click(object sender, EventArgs e)
{
trckbarSerial2.Value = 127;
}
 
private void btnSer2_254_Click(object sender, EventArgs e)
{
trckbarSerial2.Value = 254;
}
}
public class IniFile
{