Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2250 → Rev 2254

/MKLiveView/Source/MainForm.Designer.cs
29,6 → 29,8
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.btnReadDebugCont = new System.Windows.Forms.Button();
this.buttonReset = new System.Windows.Forms.Button();
62,7 → 64,6
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();
75,16 → 76,16
this.button2 = new System.Windows.Forms.Button();
this.lblFileName = new System.Windows.Forms.Label();
this.tabPage3 = new System.Windows.Forms.TabPage();
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.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();
121,8 → 122,6
this.lblNCGSpeed = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lblNCAlt = new System.Windows.Forms.Label();
this.headingIndicator1 = new AvionicsInstrumentControl.HeadingIndicator();
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();
170,6 → 169,15
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();
177,11 → 185,11
this.groupBox30.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.tabPage3.SuspendLayout();
this.groupBox38.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.groupBox27.SuspendLayout();
220,6 → 228,7
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.groupBox8.SuspendLayout();
this.SuspendLayout();
//
// btnReadDebugCont
227,7 → 236,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, -2);
this.btnReadDebugCont.Location = new System.Drawing.Point(806, -5);
this.btnReadDebugCont.Name = "btnReadDebugCont";
this.btnReadDebugCont.Size = new System.Drawing.Size(141, 55);
this.btnReadDebugCont.TabIndex = 26;
294,7 → 303,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, -4);
this.rtfTerminal.Location = new System.Drawing.Point(3, -7);
this.rtfTerminal.Name = "rtfTerminal";
this.rtfTerminal.Size = new System.Drawing.Size(259, 58);
this.rtfTerminal.TabIndex = 17;
310,7 → 319,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, 483);
this.tabPage2.Size = new System.Drawing.Size(945, 489);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Settings";
this.tabPage2.UseVisualStyleBackColor = true;
348,7 → 357,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, 323);
this.groupBox34.Location = new System.Drawing.Point(711, 329);
this.groupBox34.Name = "groupBox34";
this.groupBox34.Size = new System.Drawing.Size(226, 150);
this.groupBox34.TabIndex = 34;
696,15 → 705,6
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;
830,6 → 830,8
//
// tabPage3
//
this.tabPage3.Controls.Add(this.lblNCDistHP1);
this.tabPage3.Controls.Add(this.groupBox8);
this.tabPage3.Controls.Add(this.groupBox38);
this.tabPage3.Controls.Add(this.headingIndicator1);
this.tabPage3.Controls.Add(this.groupBox7);
853,11 → 855,65
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, 486);
this.tabPage3.Size = new System.Drawing.Size(945, 489);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Visual";
this.tabPage3.UseVisualStyleBackColor = true;
//
// 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";
//
// groupBox7
//
this.groupBox7.Controls.Add(this.dgvMotors2);
875,6 → 931,14
this.dgvMotors2.AllowUserToDeleteRows = false;
this.dgvMotors2.ColumnHeadersHeight = 26;
this.dgvMotors2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.White;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvMotors2.DefaultCellStyle = dataGridViewCellStyle1;
this.dgvMotors2.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dgvMotors2.Location = new System.Drawing.Point(181, 23);
this.dgvMotors2.Name = "dgvMotors2";
883,6 → 947,7
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.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dgvMotors2.Size = new System.Drawing.Size(172, 162);
this.dgvMotors2.TabIndex = 38;
//
892,6 → 957,14
this.dgvMotors1.AllowUserToDeleteRows = false;
this.dgvMotors1.ColumnHeadersHeight = 26;
this.dgvMotors1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.White;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.Black;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dgvMotors1.DefaultCellStyle = dataGridViewCellStyle2;
this.dgvMotors1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dgvMotors1.Location = new System.Drawing.Point(6, 23);
this.dgvMotors1.Name = "dgvMotors1";
900,6 → 973,7
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.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dgvMotors1.Size = new System.Drawing.Size(172, 162);
this.dgvMotors1.TabIndex = 37;
//
925,60 → 999,6
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);
1089,7 → 1109,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, 339);
this.groupBox35.Location = new System.Drawing.Point(840, 342);
this.groupBox35.Name = "groupBox35";
this.groupBox35.Size = new System.Drawing.Size(101, 145);
this.groupBox35.TabIndex = 11;
1374,25 → 1394,6
this.lblNCAlt.TabIndex = 0;
this.lblNCAlt.Text = "Alt";
//
// 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;
//
// lblNCCompass
//
this.lblNCCompass.AutoSize = true;
1431,7 → 1432,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, 28);
this.lblCRCErr.Location = new System.Drawing.Point(641, 25);
this.lblCRCErr.Name = "lblCRCErr";
this.lblCRCErr.Size = new System.Drawing.Size(14, 16);
this.lblCRCErr.TabIndex = 12;
1442,7 → 1443,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, 28);
this.label6.Location = new System.Drawing.Point(560, 25);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(61, 16);
this.label6.TabIndex = 11;
1452,7 → 1453,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, 9);
this.lblLifeCounter.Location = new System.Drawing.Point(641, 6);
this.lblLifeCounter.Name = "lblLifeCounter";
this.lblLifeCounter.Size = new System.Drawing.Size(14, 14);
this.lblLifeCounter.TabIndex = 10;
1462,7 → 1463,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, 7);
this.label1.Location = new System.Drawing.Point(559, 4);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(79, 16);
this.label1.TabIndex = 9;
1473,7 → 1474,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, 7);
this.groupBox31.Location = new System.Drawing.Point(476, 4);
this.groupBox31.Name = "groupBox31";
this.groupBox31.Size = new System.Drawing.Size(82, 39);
this.groupBox31.TabIndex = 8;
1500,7 → 1501,7
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, 517);
this.tabControl1.Size = new System.Drawing.Size(953, 520);
this.tabControl1.TabIndex = 15;
//
// tabPageTesting
1519,7 → 1520,7
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, 483);
this.tabPageTesting.Size = new System.Drawing.Size(945, 489);
this.tabPageTesting.TabIndex = 3;
this.tabPageTesting.Text = "testing";
this.tabPageTesting.UseVisualStyleBackColor = true;
1890,7 → 1891,7
//
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, -2);
this.btnConn.Location = new System.Drawing.Point(661, -5);
this.btnConn.Name = "btnConn";
this.btnConn.Size = new System.Drawing.Size(141, 55);
this.btnConn.TabIndex = 28;
1901,7 → 1902,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, -4);
this.rtfError.Location = new System.Drawing.Point(268, -7);
this.rtfError.Name = "rtfError";
this.rtfError.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
this.rtfError.Size = new System.Drawing.Size(204, 58);
1908,6 → 1909,7
this.rtfError.TabIndex = 29;
this.rtfError.Text = "";
this.rtfError.WordWrap = false;
this.rtfError.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.rtfError_LinkClicked);
//
// splitContainer1
//
1933,10 → 1935,101
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 = 517;
this.splitContainer1.SplitterDistance = 520;
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);
1958,13 → 2051,13
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.groupBox38.ResumeLayout(false);
this.groupBox38.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);
2036,6 → 2129,8
this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.Panel2.PerformLayout();
this.splitContainer1.ResumeLayout(false);
this.groupBox8.ResumeLayout(false);
this.groupBox8.PerformLayout();
this.ResumeLayout(false);
 
}
2182,6 → 2277,12
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;
private System.Windows.Forms.Label lblNCWPIndex;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label lblNCDistHP1;
}
}
 
/MKLiveView/Source/MainForm.cs
149,6 → 149,7
bool _navCtrlDataAutorefresh = true;
bool _blctrlDataAutorefresh = true;
bool _OSDAutorefresh = true;
bool _bErrorLog = false;
int crcError = 0;
int iLableIndex = 0;
string filePath = Directory.GetCurrentDirectory();
177,7 → 178,9
/// datatable for the debug data array - displayed on settings tabpage in datagridview
/// </summary>
DataTable dtAnalog = new DataTable();
 
/// <summary>
/// datatable for motordata (current,temp)
/// </summary>
DataTable dtMotors1 = new DataTable();
DataTable dtMotors2 = new DataTable();
 
324,6 → 327,10
labelTimingOSD.Text = (OSDInterval * 10).ToString();
}
}
private void rtfError_LinkClicked(object sender, LinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(e.LinkText);
}
#endregion events
 
/// <summary> Log data to the terminal window. </summary>
378,6 → 385,7
rtfError.AppendText(msg + Environment.NewLine);
}));
_bErrorLog = true;
}
 
#region functions
576,8 → 584,8
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")));
dTemp = Math.Sqrt(dTemp) / (double)10;
lblNCDistHP.Invoke((Action)(() => lblNCDistHP.Text = dTemp.ToString("0.0 m")));
break;
case 31: //Sats used
lblNCSat.Invoke((Action)(() => lblNCSat.Text = sAnalogData[index]));
664,6 → 672,8
if (adr == 2)
ErrorLog(LogMsgType.Error, "NC - Unknown HW-ERROR: " + data[6].ToString()); //@moment NC has only one error field
}
if((data[5] + data[6] == 0) && _bErrorLog)
_clearErrorLog(adr==1 ? "FC - HW-Error" : "FC - HW-Error");
 
}
check_HWError = false;
745,8 → 755,21
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
//lblNCGPSLat.Invoke((Action)(() => lblNCGPSLat.Text = _convertDegree(d))); //GPS-Position: Latitude in minutes, seconds
 
i_16 = data[28];
i_16 = (Int16)(i_16 << 8);
iVal = data[27] + i_16;
lblNCDistWP.Invoke((Action)(() => lblNCDistWP.Text = ((double)iVal/ (double)10).ToString("0.0 m"))); //Distance to next WP
 
i_16 = data[45];
i_16 = (Int16)(i_16 << 8);
iVal = data[44] + i_16;
lblNCDistHP1.Invoke((Action)(() => lblNCDistHP1.Text = ((double)iVal/ (double)10).ToString("0.0 m"))); //Distance to next WP
 
lblNCWPIndex.Invoke((Action)(() => lblNCWPIndex.Text = data[48].ToString())); //Waypoint index
lblNCWPCount.Invoke((Action)(() => lblNCWPCount.Text = data[49].ToString())); //Waypoints count
 
i_16 = data[81];
i_16 = (Int16)(i_16 << 8);
iVal = data[80] + i_16;
766,6 → 789,8
//break;
if (data[69] > 0 & data[69] < 44)
ErrorLog(LogMsgType.Error, "NC Error [" + data[69].ToString() + "]: " + NC_Error[data[69]]);
else
if(_bErrorLog) _clearErrorLog("NC Error");
 
}
/// <summary>
1097,6 → 1122,9
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
lblNCDistWP.Invoke((Action)(() => lblNCDistWP.Text = "NA")); //next WP distance
lblNCWPIndex.Invoke((Action)(() => lblNCWPIndex.Text = "NA")); //index of actual WP
lblNCWPCount.Invoke((Action)(() => lblNCWPCount.Text = "NA")); //count of items in WP list
}
/// <summary>
/// one time query of the OSD Menue with pagenumber
1252,6 → 1280,43
 
return deg.ToString("0° ") + min.ToString("0") + "' " + sec.ToString("0") + "," + milli.ToString() + "\"";
}
 
void _clearErrorLog(string s)
{
rtfError.Invoke((Action)(() =>
{
if (rtfError.Text.Contains(s))
{
int iLength = 0;
int iStart = rtfError.Text.IndexOf(s);
int iEnd = rtfError.Text.IndexOf('\n', iStart);
if (iEnd > 0)
{
iLength = iEnd + 1;
int iHttp = rtfError.Text.IndexOf("http", iEnd);
if (iHttp == iLength)
{
int iEnd2 = rtfError.Text.IndexOf('\n', iLength);
if (iEnd2 > iLength)
{
iLength = iEnd2 + 1;
rtfError.Select(iStart, iLength);
rtfError.SelectedText = string.Empty;
if(rtfError.Text.Length < 2) _bErrorLog = false;
}
 
}
else
{
rtfError.Select(iStart, iLength);
rtfError.SelectedText = string.Empty;
if(rtfError.Text.Length < 2) _bErrorLog = false;
}
}
}
}));
 
}
#endregion functions
 
#region buttons
1374,6 → 1439,7
_OSDMenueAutoRefresh(4);
}
#endregion buttons
 
}
public class IniFile
{