Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2258 → Rev 2259

/MKLiveView/Source/MainForm.Designer.cs
142,6 → 142,20
this.lblNCCtrl = new System.Windows.Forms.Label();
this.TabControl1 = new System.Windows.Forms.TabControl();
this.tabPageSerial = new System.Windows.Forms.TabPage();
this.groupBox11 = new System.Windows.Forms.GroupBox();
this.btnSer4_254 = new System.Windows.Forms.Button();
this.btnSer4_127 = new System.Windows.Forms.Button();
this.btnSer4_0 = new System.Windows.Forms.Button();
this.textBoxSerial4 = new System.Windows.Forms.TextBox();
this.lblTbSerial4 = new System.Windows.Forms.Label();
this.trckbarSerial4 = new System.Windows.Forms.TrackBar();
this.groupBox10 = new System.Windows.Forms.GroupBox();
this.btnSer3_254 = new System.Windows.Forms.Button();
this.btnSer3_127 = new System.Windows.Forms.Button();
this.btnSer3_0 = new System.Windows.Forms.Button();
this.textBoxSerial3 = new System.Windows.Forms.TextBox();
this.lblTbSerial3 = new System.Windows.Forms.Label();
this.trckbarSerial3 = new System.Windows.Forms.TrackBar();
this.groupBox9 = new System.Windows.Forms.GroupBox();
this.btnSer2_254 = new System.Windows.Forms.Button();
this.btnSer2_127 = new System.Windows.Forms.Button();
194,6 → 208,10
this.groupBox31.SuspendLayout();
this.TabControl1.SuspendLayout();
this.tabPageSerial.SuspendLayout();
this.groupBox11.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trckbarSerial4)).BeginInit();
this.groupBox10.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trckbarSerial3)).BeginInit();
this.groupBox9.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.trckbarSerial2)).BeginInit();
this.groupBox6.SuspendLayout();
210,7 → 228,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(803, 2);
this.btnReadDebugCont.Location = new System.Drawing.Point(803, -7);
this.btnReadDebugCont.Name = "btnReadDebugCont";
this.btnReadDebugCont.Size = new System.Drawing.Size(141, 55);
this.btnReadDebugCont.TabIndex = 26;
277,7 → 295,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, 0);
this.rtfTerminal.Location = new System.Drawing.Point(3, -9);
this.rtfTerminal.Name = "rtfTerminal";
this.rtfTerminal.Size = new System.Drawing.Size(259, 58);
this.rtfTerminal.TabIndex = 17;
293,7 → 311,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(942, 480);
this.tabPage2.Size = new System.Drawing.Size(942, 489);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Settings";
this.tabPage2.UseVisualStyleBackColor = true;
331,7 → 349,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(708, 320);
this.groupBox34.Location = new System.Drawing.Point(708, 329);
this.groupBox34.Name = "groupBox34";
this.groupBox34.Size = new System.Drawing.Size(226, 150);
this.groupBox34.TabIndex = 34;
672,9 → 690,9
//
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(675, 8);
this.groupBox30.Location = new System.Drawing.Point(693, 8);
this.groupBox30.Name = "groupBox30";
this.groupBox30.Size = new System.Drawing.Size(259, 297);
this.groupBox30.Size = new System.Drawing.Size(241, 297);
this.groupBox30.TabIndex = 30;
this.groupBox30.TabStop = false;
this.groupBox30.Text = "Serial connection";
681,11 → 699,12
//
// simpleSerialPort
//
this.simpleSerialPort.Dock = System.Windows.Forms.DockStyle.Fill;
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.Location = new System.Drawing.Point(3, 20);
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.Size = new System.Drawing.Size(235, 274);
this.simpleSerialPort.TabIndex = 0;
//
// dataGridView1
838,7 → 857,7
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(942, 480);
this.tabPage3.Size = new System.Drawing.Size(942, 489);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Visual";
this.tabPage3.UseVisualStyleBackColor = true;
1162,7 → 1181,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(837, 333);
this.groupBox35.Location = new System.Drawing.Point(837, 342);
this.groupBox35.Name = "groupBox35";
this.groupBox35.Size = new System.Drawing.Size(101, 145);
this.groupBox35.TabIndex = 11;
1497,7 → 1516,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(638, 32);
this.lblCRCErr.Location = new System.Drawing.Point(638, 23);
this.lblCRCErr.Name = "lblCRCErr";
this.lblCRCErr.Size = new System.Drawing.Size(14, 16);
this.lblCRCErr.TabIndex = 12;
1508,7 → 1527,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(557, 32);
this.label6.Location = new System.Drawing.Point(557, 23);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(61, 16);
this.label6.TabIndex = 11;
1518,7 → 1537,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(638, 13);
this.lblLifeCounter.Location = new System.Drawing.Point(638, 4);
this.lblLifeCounter.Name = "lblLifeCounter";
this.lblLifeCounter.Size = new System.Drawing.Size(14, 14);
this.lblLifeCounter.TabIndex = 10;
1528,7 → 1547,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(556, 11);
this.label1.Location = new System.Drawing.Point(556, 2);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(79, 16);
this.label1.TabIndex = 9;
1539,7 → 1558,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(473, 11);
this.groupBox31.Location = new System.Drawing.Point(473, 2);
this.groupBox31.Name = "groupBox31";
this.groupBox31.Size = new System.Drawing.Size(82, 39);
this.groupBox31.TabIndex = 8;
1567,21 → 1586,179
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.Size = new System.Drawing.Size(950, 520);
this.TabControl1.TabIndex = 15;
//
// tabPageSerial
//
this.tabPageSerial.Controls.Add(this.groupBox11);
this.tabPageSerial.Controls.Add(this.groupBox10);
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.Size = new System.Drawing.Size(942, 489);
this.tabPageSerial.TabIndex = 4;
this.tabPageSerial.Text = "Serial channels";
this.tabPageSerial.UseVisualStyleBackColor = true;
//
// groupBox11
//
this.groupBox11.Controls.Add(this.btnSer4_254);
this.groupBox11.Controls.Add(this.btnSer4_127);
this.groupBox11.Controls.Add(this.btnSer4_0);
this.groupBox11.Controls.Add(this.textBoxSerial4);
this.groupBox11.Controls.Add(this.lblTbSerial4);
this.groupBox11.Controls.Add(this.trckbarSerial4);
this.groupBox11.Location = new System.Drawing.Point(8, 360);
this.groupBox11.Name = "groupBox11";
this.groupBox11.Size = new System.Drawing.Size(225, 112);
this.groupBox11.TabIndex = 4;
this.groupBox11.TabStop = false;
this.groupBox11.Text = "Ch #4";
//
// btnSer4_254
//
this.btnSer4_254.Location = new System.Drawing.Point(149, 78);
this.btnSer4_254.Name = "btnSer4_254";
this.btnSer4_254.Size = new System.Drawing.Size(55, 29);
this.btnSer4_254.TabIndex = 3;
this.btnSer4_254.Text = "254";
this.btnSer4_254.UseVisualStyleBackColor = true;
this.btnSer4_254.Click += new System.EventHandler(this.btnSer4_254_Click);
//
// btnSer4_127
//
this.btnSer4_127.Location = new System.Drawing.Point(84, 78);
this.btnSer4_127.Name = "btnSer4_127";
this.btnSer4_127.Size = new System.Drawing.Size(55, 29);
this.btnSer4_127.TabIndex = 3;
this.btnSer4_127.Text = "127";
this.btnSer4_127.UseVisualStyleBackColor = true;
this.btnSer4_127.Click += new System.EventHandler(this.btnSer4_127_Click);
//
// btnSer4_0
//
this.btnSer4_0.Location = new System.Drawing.Point(19, 78);
this.btnSer4_0.Name = "btnSer4_0";
this.btnSer4_0.Size = new System.Drawing.Size(55, 29);
this.btnSer4_0.TabIndex = 3;
this.btnSer4_0.Text = "0";
this.btnSer4_0.UseVisualStyleBackColor = true;
this.btnSer4_0.Click += new System.EventHandler(this.btnSer4_0_Click);
//
// textBoxSerial4
//
this.textBoxSerial4.BackColor = System.Drawing.Color.White;
this.textBoxSerial4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBoxSerial4.Location = new System.Drawing.Point(19, 26);
this.textBoxSerial4.MaxLength = 22;
this.textBoxSerial4.Name = "textBoxSerial4";
this.textBoxSerial4.Size = new System.Drawing.Size(155, 24);
this.textBoxSerial4.TabIndex = 2;
this.textBoxSerial4.WordWrap = false;
this.textBoxSerial4.TextChanged += new System.EventHandler(this.textBoxSerial4_TextChanged);
//
// lblTbSerial4
//
this.lblTbSerial4.AutoSize = true;
this.lblTbSerial4.BackColor = System.Drawing.Color.Transparent;
this.lblTbSerial4.Location = new System.Drawing.Point(181, 28);
this.lblTbSerial4.Name = "lblTbSerial4";
this.lblTbSerial4.Size = new System.Drawing.Size(57, 18);
this.lblTbSerial4.TabIndex = 1;
this.lblTbSerial4.Text = "Serial 2";
//
// trckbarSerial4
//
this.trckbarSerial4.BackColor = System.Drawing.Color.White;
this.trckbarSerial4.Location = new System.Drawing.Point(11, 52);
this.trckbarSerial4.Maximum = 254;
this.trckbarSerial4.Name = "trckbarSerial4";
this.trckbarSerial4.Size = new System.Drawing.Size(201, 45);
this.trckbarSerial4.TabIndex = 0;
this.trckbarSerial4.TickStyle = System.Windows.Forms.TickStyle.None;
this.trckbarSerial4.ValueChanged += new System.EventHandler(this.trckbarSerial4_ValueChanged);
//
// groupBox10
//
this.groupBox10.Controls.Add(this.btnSer3_254);
this.groupBox10.Controls.Add(this.btnSer3_127);
this.groupBox10.Controls.Add(this.btnSer3_0);
this.groupBox10.Controls.Add(this.textBoxSerial3);
this.groupBox10.Controls.Add(this.lblTbSerial3);
this.groupBox10.Controls.Add(this.trckbarSerial3);
this.groupBox10.Location = new System.Drawing.Point(8, 242);
this.groupBox10.Name = "groupBox10";
this.groupBox10.Size = new System.Drawing.Size(225, 112);
this.groupBox10.TabIndex = 4;
this.groupBox10.TabStop = false;
this.groupBox10.Text = "Ch #3";
//
// btnSer3_254
//
this.btnSer3_254.Location = new System.Drawing.Point(149, 78);
this.btnSer3_254.Name = "btnSer3_254";
this.btnSer3_254.Size = new System.Drawing.Size(55, 29);
this.btnSer3_254.TabIndex = 3;
this.btnSer3_254.Text = "254";
this.btnSer3_254.UseVisualStyleBackColor = true;
this.btnSer3_254.Click += new System.EventHandler(this.btnSer3_254_Click);
//
// btnSer3_127
//
this.btnSer3_127.Location = new System.Drawing.Point(84, 78);
this.btnSer3_127.Name = "btnSer3_127";
this.btnSer3_127.Size = new System.Drawing.Size(55, 29);
this.btnSer3_127.TabIndex = 3;
this.btnSer3_127.Text = "127";
this.btnSer3_127.UseVisualStyleBackColor = true;
this.btnSer3_127.Click += new System.EventHandler(this.btnSer3_127_Click);
//
// btnSer3_0
//
this.btnSer3_0.Location = new System.Drawing.Point(19, 78);
this.btnSer3_0.Name = "btnSer3_0";
this.btnSer3_0.Size = new System.Drawing.Size(55, 29);
this.btnSer3_0.TabIndex = 3;
this.btnSer3_0.Text = "0";
this.btnSer3_0.UseVisualStyleBackColor = true;
this.btnSer3_0.Click += new System.EventHandler(this.btnSer3_0_Click);
//
// textBoxSerial3
//
this.textBoxSerial3.BackColor = System.Drawing.Color.White;
this.textBoxSerial3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBoxSerial3.Location = new System.Drawing.Point(19, 26);
this.textBoxSerial3.MaxLength = 22;
this.textBoxSerial3.Name = "textBoxSerial3";
this.textBoxSerial3.Size = new System.Drawing.Size(155, 24);
this.textBoxSerial3.TabIndex = 2;
this.textBoxSerial3.WordWrap = false;
this.textBoxSerial3.TextChanged += new System.EventHandler(this.textBoxSerial3_TextChanged);
//
// lblTbSerial3
//
this.lblTbSerial3.AutoSize = true;
this.lblTbSerial3.BackColor = System.Drawing.Color.Transparent;
this.lblTbSerial3.Location = new System.Drawing.Point(181, 28);
this.lblTbSerial3.Name = "lblTbSerial3";
this.lblTbSerial3.Size = new System.Drawing.Size(57, 18);
this.lblTbSerial3.TabIndex = 1;
this.lblTbSerial3.Text = "Serial 2";
//
// trckbarSerial3
//
this.trckbarSerial3.BackColor = System.Drawing.Color.White;
this.trckbarSerial3.Location = new System.Drawing.Point(11, 52);
this.trckbarSerial3.Maximum = 254;
this.trckbarSerial3.Name = "trckbarSerial3";
this.trckbarSerial3.Size = new System.Drawing.Size(201, 45);
this.trckbarSerial3.TabIndex = 0;
this.trckbarSerial3.TickStyle = System.Windows.Forms.TickStyle.None;
this.trckbarSerial3.ValueChanged += new System.EventHandler(this.trckbarSerial3_ValueChanged);
//
// groupBox9
//
this.groupBox9.Controls.Add(this.btnSer2_254);
1590,7 → 1767,7
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.Location = new System.Drawing.Point(8, 124);
this.groupBox9.Name = "groupBox9";
this.groupBox9.Size = new System.Drawing.Size(225, 112);
this.groupBox9.TabIndex = 4;
1643,7 → 1820,7
//
this.lblTbSerial2.AutoSize = true;
this.lblTbSerial2.BackColor = System.Drawing.Color.Transparent;
this.lblTbSerial2.Location = new System.Drawing.Point(173, 28);
this.lblTbSerial2.Location = new System.Drawing.Point(181, 28);
this.lblTbSerial2.Name = "lblTbSerial2";
this.lblTbSerial2.Size = new System.Drawing.Size(57, 18);
this.lblTbSerial2.TabIndex = 1;
1721,7 → 1898,7
//
this.lblTbSerial1.AutoSize = true;
this.lblTbSerial1.BackColor = System.Drawing.Color.Transparent;
this.lblTbSerial1.Location = new System.Drawing.Point(173, 28);
this.lblTbSerial1.Location = new System.Drawing.Point(181, 28);
this.lblTbSerial1.Name = "lblTbSerial1";
this.lblTbSerial1.Size = new System.Drawing.Size(57, 18);
this.lblTbSerial1.TabIndex = 1;
1757,7 → 1934,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(942, 480);
this.tabPageTesting.Size = new System.Drawing.Size(942, 486);
this.tabPageTesting.TabIndex = 3;
this.tabPageTesting.Text = "testing";
this.tabPageTesting.UseVisualStyleBackColor = true;
1792,7 → 1969,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(658, 2);
this.btnConn.Location = new System.Drawing.Point(658, -7);
this.btnConn.Name = "btnConn";
this.btnConn.Size = new System.Drawing.Size(141, 55);
this.btnConn.TabIndex = 28;
1803,7 → 1980,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, 0);
this.rtfError.Location = new System.Drawing.Point(268, -9);
this.rtfError.Name = "rtfError";
this.rtfError.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
this.rtfError.Size = new System.Drawing.Size(204, 58);
1836,7 → 2013,7
this.splitContainer1.Panel2.Controls.Add(this.btnConn);
this.splitContainer1.Panel2.Controls.Add(this.rtfError);
this.splitContainer1.Size = new System.Drawing.Size(950, 572);
this.splitContainer1.SplitterDistance = 511;
this.splitContainer1.SplitterDistance = 520;
this.splitContainer1.SplitterWidth = 1;
this.splitContainer1.TabIndex = 36;
//
1903,6 → 2080,12
this.groupBox31.PerformLayout();
this.TabControl1.ResumeLayout(false);
this.tabPageSerial.ResumeLayout(false);
this.groupBox11.ResumeLayout(false);
this.groupBox11.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.trckbarSerial4)).EndInit();
this.groupBox10.ResumeLayout(false);
this.groupBox10.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.trckbarSerial3)).EndInit();
this.groupBox9.ResumeLayout(false);
this.groupBox9.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.trckbarSerial2)).EndInit();
2053,6 → 2236,20
private System.Windows.Forms.TextBox textBoxSerial2;
private System.Windows.Forms.Label lblTbSerial2;
private System.Windows.Forms.TrackBar trckbarSerial2;
private System.Windows.Forms.GroupBox groupBox11;
private System.Windows.Forms.Button btnSer4_254;
private System.Windows.Forms.Button btnSer4_127;
private System.Windows.Forms.Button btnSer4_0;
private System.Windows.Forms.TextBox textBoxSerial4;
private System.Windows.Forms.Label lblTbSerial4;
private System.Windows.Forms.TrackBar trckbarSerial4;
private System.Windows.Forms.GroupBox groupBox10;
private System.Windows.Forms.Button btnSer3_254;
private System.Windows.Forms.Button btnSer3_127;
private System.Windows.Forms.Button btnSer3_0;
private System.Windows.Forms.TextBox textBoxSerial3;
private System.Windows.Forms.Label lblTbSerial3;
private System.Windows.Forms.TrackBar trckbarSerial3;
}
}
 
/MKLiveView/Source/MainForm.cs
35,6 → 35,21
/// and the FilghtControllerMessage class
///
///============================================================================
/// DISCLAIMER
/// ===========
///
/// I created this software with my best knowledge and belief.
///
/// IN NO EVENT, UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING,
/// SHALL I, OR ANY PERSON BE LIABLE FOR ANY LOSS, EXPENSE OR DAMAGE,
/// OF ANY TYPE OR NATURE ARISING OUT OF THE USE OF,
/// OR INABILITY TO USE THIS SOFTWARE OR PROGRAM,
/// INCLUDING, BUT NOT LIMITED TO, CLAIMS, SUITS OR CAUSES OF ACTION
/// INVOLVING ALLEGED INFRINGEMENT OF COPYRIGHTS,
/// PATENTS, TRADEMARKS, TRADE SECRETS, OR UNFAIR COMPETITION.
///
/// This means: use it & have fun (but @ Your own risk...)
/// ===========================================================================
 
using System;
using System.Data;
195,44 → 210,8
 
_readIni();
 
dtAnalog.Columns.Add("ID");
dtAnalog.Columns.Add("Value");
dataGridView1.DataSource = dtAnalog;
_dataTablesInit();
 
dtMotors1.Columns.Add("#");
dtMotors1.Columns.Add("Current");
dtMotors1.Columns.Add("Temp");
dtMotors2.Columns.Add("#");
dtMotors2.Columns.Add("Current");
dtMotors2.Columns.Add("Temp");
dgvMotors1.DataSource = dtMotors1;
dgvMotors2.DataSource = dtMotors2;
_initDTMotors();
dgvMotors1.Columns[0].Width = 24;
dgvMotors1.Columns[1].Width = 74;
dgvMotors1.Columns[2].Width = 74;
dgvMotors2.Columns[0].Width = 24;
dgvMotors2.Columns[1].Width = 74;
dgvMotors2.Columns[2].Width = 74;
 
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;
1263,6 → 1242,53
cbOSD.Invoke((Action)(() => cbOSD.SelectedItem = iOSDPage));
_bCBInit = false;
}
/// <summary>
/// initialize the datatables
/// with columnnames etc
/// </summary>
void _dataTablesInit()
{
dtAnalog.Columns.Add("ID");
dtAnalog.Columns.Add("Value");
dataGridView1.DataSource = dtAnalog;
 
dtMotors1.Columns.Add("#");
dtMotors1.Columns.Add("Current");
dtMotors1.Columns.Add("Temp");
dtMotors2.Columns.Add("#");
dtMotors2.Columns.Add("Current");
dtMotors2.Columns.Add("Temp");
dgvMotors1.DataSource = dtMotors1;
dgvMotors2.DataSource = dtMotors2;
_initDTMotors();
dgvMotors1.Columns[0].Width = 24;
dgvMotors1.Columns[1].Width = 74;
dgvMotors1.Columns[2].Width = 74;
dgvMotors2.Columns[0].Width = 24;
dgvMotors2.Columns[1].Width = 74;
dgvMotors2.Columns[2].Width = 74;
 
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;
}
/// <summary>
/// read settings from ini-file
/// </summary>
void _readIni()
{
if (!File.Exists(filePath + "\\MKLiveViewSettings.ini"))
1297,6 → 1323,9
serChanTitle[i] = sVal;
}
}
/// <summary>
/// save settings to ini-file
/// </summary>
void _writeIni()
{
 
1449,7 → 1478,10
}
_sendControllerMessage('y', 1, serData);
}
 
/// <summary>
/// init the controls for displaying
/// and setting serial control channels
/// </summary>
void _initSerialCtrl()
{
trckbarSerial1.Value = serChan[0];
1458,6 → 1490,12
trckbarSerial2.Value = serChan[1];
textBoxSerial2.Text = serChanTitle[1];
lblTbSerial2.Text = serChan[1].ToString();
trckbarSerial3.Value = serChan[2];
textBoxSerial3.Text = serChanTitle[2];
lblTbSerial3.Text = serChan[2].ToString();
trckbarSerial4.Value = serChan[3];
textBoxSerial4.Text = serChanTitle[3];
lblTbSerial4.Text = serChan[3].ToString();
}
#endregion functions
 
1588,7 → 1626,7
_getpWP(1);
}
#endregion buttons
 
#region serial control channels - buttons & events
private void tbSerial1_Scroll(object sender, EventArgs e)
{
lblTbSerial1.Text = trckbarSerial1.Value.ToString();
1603,17 → 1641,14
{
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();
1620,34 → 1655,74
serChan[0] = trckbarSerial1.Value;
if (!_init) _sendSerialData();
}
 
private void textBoxSerial2_TextChanged(object sender, EventArgs e)
{
serChanTitle[2] = textBoxSerial2.Text;
serChanTitle[1] = 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;
}
private void textBoxSerial3_TextChanged(object sender, EventArgs e)
{
serChanTitle[2] = textBoxSerial3.Text;
}
private void trckbarSerial3_ValueChanged(object sender, EventArgs e)
{
lblTbSerial3.Text = trckbarSerial3.Value.ToString();
serChan[2] = trckbarSerial3.Value;
if (!_init) _sendSerialData();
}
private void btnSer3_0_Click(object sender, EventArgs e)
{
trckbarSerial3.Value = 0;
}
private void btnSer3_127_Click(object sender, EventArgs e)
{
trckbarSerial3.Value = 127;
}
private void btnSer3_254_Click(object sender, EventArgs e)
{
trckbarSerial3.Value = 254;
}
private void textBoxSerial4_TextChanged(object sender, EventArgs e)
{
serChanTitle[3] = textBoxSerial4.Text;
}
private void trckbarSerial4_ValueChanged(object sender, EventArgs e)
{
lblTbSerial4.Text = trckbarSerial4.Value.ToString();
serChan[3] = trckbarSerial4.Value;
if (!_init) _sendSerialData();
}
private void btnSer4_0_Click(object sender, EventArgs e)
{
trckbarSerial4.Value = 0;
}
private void btnSer4_127_Click(object sender, EventArgs e)
{
trckbarSerial4.Value = 127;
}
private void btnSer4_254_Click(object sender, EventArgs e)
{
trckbarSerial4.Value = 254;
}
#endregion serial control channels
 
}
public class IniFile
{