Changeset - bd55ba5f4fde
[Not reviewed]
default
0 2 0
mkanning@CL-ENS241-10.cedarville.edu - 13 years ago 2013-02-26 14:32:50
mkanning@CL-ENS241-10.cedarville.edu
data display is 'finished'. charts are working. minor fixes also done
2 files changed with 206 insertions and 144 deletions:
0 comments (0 inline, 0 general)
Demo.WindowsForms/Forms/MainForm.Designer.cs
Show inline comments
 
@@ -54,34 +54,34 @@
 
            this.ctnBottomChartHolder = new System.Windows.Forms.SplitContainer();
 
            this.lblBottomLeftChartTitle = new System.Windows.Forms.Label();
 
            this.chrtBottomLeft = new System.Windows.Forms.DataVisualization.Charting.Chart();
 
            this.lblBottomRightChartTitle = new System.Windows.Forms.Label();
 
            this.chrtBottomRight = new System.Windows.Forms.DataVisualization.Charting.Chart();
 
            this.tabData = new System.Windows.Forms.TabPage();
 
            this.gboxSlaveData = new System.Windows.Forms.GroupBox();
 
            this.tboxCameraBatteryLevel = new System.Windows.Forms.TextBox();
 
            this.label26 = new System.Windows.Forms.Label();
 
            this.tboxCameraBoardTemp = new System.Windows.Forms.TextBox();
 
            this.label27 = new System.Windows.Forms.Label();
 
            this.label28 = new System.Windows.Forms.Label();
 
            this.textBox15 = new System.Windows.Forms.TextBox();
 
            this.tboxGeigerRads = new System.Windows.Forms.TextBox();
 
            this.label25 = new System.Windows.Forms.Label();
 
            this.tboxGeigerBatteryLevel = new System.Windows.Forms.TextBox();
 
            this.label24 = new System.Windows.Forms.Label();
 
            this.tboxGeigerBoardTemp = new System.Windows.Forms.TextBox();
 
            this.label23 = new System.Windows.Forms.Label();
 
            this.label22 = new System.Windows.Forms.Label();
 
            this.tboxAtmoAltitude = new System.Windows.Forms.TextBox();
 
            this.label21 = new System.Windows.Forms.Label();
 
            this.textBox11 = new System.Windows.Forms.TextBox();
 
            this.tboxAtmoAirTemp = new System.Windows.Forms.TextBox();
 
            this.label19 = new System.Windows.Forms.Label();
 
            this.tboxAtmoHumidity = new System.Windows.Forms.TextBox();
 
            this.label18 = new System.Windows.Forms.Label();
 
            this.tboxAtmoPressure = new System.Windows.Forms.TextBox();
 
            this.label17 = new System.Windows.Forms.Label();
 
            this.tboxAtmoBatteryLevel = new System.Windows.Forms.TextBox();
 
            this.label15 = new System.Windows.Forms.Label();
 
            this.tboxAtmoBoardTemp = new System.Windows.Forms.TextBox();
 
            this.label8 = new System.Windows.Forms.Label();
 
            this.label20 = new System.Windows.Forms.Label();
 
            this.gboxMasterData = new System.Windows.Forms.GroupBox();
 
            this.textBox6 = new System.Windows.Forms.TextBox();
 
@@ -91,24 +91,26 @@
 
            this.label3 = new System.Windows.Forms.Label();
 
            this.tboxMasterLongitude = new System.Windows.Forms.TextBox();
 
            this.label2 = new System.Windows.Forms.Label();
 
            this.tboxMasterLatitude = new System.Windows.Forms.TextBox();
 
            this.label16 = new System.Windows.Forms.Label();
 
            this.tboxMasterBatteryLevel = new System.Windows.Forms.TextBox();
 
            this.tboxMasterBoardTemp = new System.Windows.Forms.TextBox();
 
            this.label1 = new System.Windows.Forms.Label();
 
            this.tboxMessageBox = new System.Windows.Forms.TextBox();
 
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
 
            this.tboxMasterSatellites = new System.Windows.Forms.TextBox();
 
            this.label29 = new System.Windows.Forms.Label();
 
            this.tboxMasterHDOP = new System.Windows.Forms.TextBox();
 
            this.label30 = new System.Windows.Forms.Label();
 
            this.MainMap = new Demo.WindowsForms.Map();
 
            this.splitter1 = new BSE.Windows.Forms.Splitter();
 
            this.panelMenu = new BSE.Windows.Forms.Panel();
 
            this.xPanderPanelList1 = new BSE.Windows.Forms.XPanderPanelList();
 
            this.xPanderPanelMain = new BSE.Windows.Forms.XPanderPanel();
 
            this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
 
            this.tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel();
 
            this.groupBox8 = new System.Windows.Forms.GroupBox();
 
            this.btnZoomCenter = new System.Windows.Forms.Button();
 
            this.xboxPlacemarkInfo = new System.Windows.Forms.CheckBox();
 
            this.btnClearAll = new System.Windows.Forms.Button();
 
            this.btnAddMarker = new System.Windows.Forms.Button();
 
@@ -165,26 +167,26 @@
 
            this.textBoxCacheSize = new System.Windows.Forms.TextBox();
 
            this.textBoxCacheStatus = new System.Windows.Forms.TextBox();
 
            this.button10 = new System.Windows.Forms.Button();
 
            this.textBoxMemory = new System.Windows.Forms.TextBox();
 
            this.checkBoxUseRouteCache = new System.Windows.Forms.CheckBox();
 
            this.button9 = new System.Windows.Forms.Button();
 
            this.button11 = new System.Windows.Forms.Button();
 
            this.label10 = new System.Windows.Forms.Label();
 
            this.button2 = new System.Windows.Forms.Button();
 
            this.label13 = new System.Windows.Forms.Label();
 
            this.label14 = new System.Windows.Forms.Label();
 
            this.button17 = new System.Windows.Forms.Button();
 
            this.tboxMasterHDOP = new System.Windows.Forms.TextBox();
 
            this.label30 = new System.Windows.Forms.Label();
 
            this.tboxAtmoLight = new System.Windows.Forms.TextBox();
 
            this.label31 = new System.Windows.Forms.Label();
 
            this.tabMap.SuspendLayout();
 
            this.panel4.SuspendLayout();
 
            this.panel2.SuspendLayout();
 
            this.tabControl.SuspendLayout();
 
            this.tabGraphs.SuspendLayout();
 
            this.pnlDataListDisplay.SuspendLayout();
 
            this.ctnParentChartHolder.Panel1.SuspendLayout();
 
            this.ctnParentChartHolder.Panel2.SuspendLayout();
 
            this.ctnParentChartHolder.SuspendLayout();
 
            this.ctnTopChartHolder.Panel1.SuspendLayout();
 
            this.ctnTopChartHolder.Panel2.SuspendLayout();
 
            this.ctnTopChartHolder.SuspendLayout();
 
@@ -266,25 +268,25 @@
 
            // 
 
            // tabControl
 
            // 
 
            this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
 
            | System.Windows.Forms.AnchorStyles.Left) 
 
            | System.Windows.Forms.AnchorStyles.Right)));
 
            this.tabControl.Controls.Add(this.tabMap);
 
            this.tabControl.Controls.Add(this.tabGraphs);
 
            this.tabControl.Controls.Add(this.tabData);
 
            this.tabControl.Location = new System.Drawing.Point(0, 0);
 
            this.tabControl.Name = "tabControl";
 
            this.tabControl.SelectedIndex = 0;
 
            this.tabControl.Size = new System.Drawing.Size(871, 451);
 
            this.tabControl.Size = new System.Drawing.Size(871, 516);
 
            this.tabControl.TabIndex = 45;
 
            // 
 
            // tabGraphs
 
            // 
 
            this.tabGraphs.Controls.Add(this.pnlDataListDisplay);
 
            this.tabGraphs.Controls.Add(this.ctnParentChartHolder);
 
            this.tabGraphs.Location = new System.Drawing.Point(4, 22);
 
            this.tabGraphs.Name = "tabGraphs";
 
            this.tabGraphs.Padding = new System.Windows.Forms.Padding(3);
 
            this.tabGraphs.Size = new System.Drawing.Size(863, 425);
 
            this.tabGraphs.TabIndex = 2;
 
            this.tabGraphs.Text = "Graphs";
 
@@ -546,241 +548,243 @@
 
            this.chrtBottomRight.Size = new System.Drawing.Size(426, 197);
 
            this.chrtBottomRight.TabIndex = 1;
 
            this.chrtBottomRight.Text = "chart2";
 
            this.chrtBottomRight.Click += new System.EventHandler(this.chrtBottomRight_Click);
 
            // 
 
            // tabData
 
            // 
 
            this.tabData.Controls.Add(this.gboxSlaveData);
 
            this.tabData.Controls.Add(this.gboxMasterData);
 
            this.tabData.Location = new System.Drawing.Point(4, 22);
 
            this.tabData.Name = "tabData";
 
            this.tabData.Padding = new System.Windows.Forms.Padding(10);
 
            this.tabData.Size = new System.Drawing.Size(863, 425);
 
            this.tabData.Size = new System.Drawing.Size(863, 490);
 
            this.tabData.TabIndex = 3;
 
            this.tabData.Text = "Data";
 
            this.tabData.UseVisualStyleBackColor = true;
 
            // 
 
            // gboxSlaveData
 
            // 
 
            this.gboxSlaveData.Controls.Add(this.tboxAtmoLight);
 
            this.gboxSlaveData.Controls.Add(this.label31);
 
            this.gboxSlaveData.Controls.Add(this.tboxCameraBatteryLevel);
 
            this.gboxSlaveData.Controls.Add(this.label26);
 
            this.gboxSlaveData.Controls.Add(this.tboxCameraBoardTemp);
 
            this.gboxSlaveData.Controls.Add(this.label27);
 
            this.gboxSlaveData.Controls.Add(this.label28);
 
            this.gboxSlaveData.Controls.Add(this.textBox15);
 
            this.gboxSlaveData.Controls.Add(this.tboxGeigerRads);
 
            this.gboxSlaveData.Controls.Add(this.label25);
 
            this.gboxSlaveData.Controls.Add(this.tboxGeigerBatteryLevel);
 
            this.gboxSlaveData.Controls.Add(this.label24);
 
            this.gboxSlaveData.Controls.Add(this.tboxGeigerBoardTemp);
 
            this.gboxSlaveData.Controls.Add(this.label23);
 
            this.gboxSlaveData.Controls.Add(this.label22);
 
            this.gboxSlaveData.Controls.Add(this.tboxAtmoAltitude);
 
            this.gboxSlaveData.Controls.Add(this.label21);
 
            this.gboxSlaveData.Controls.Add(this.textBox11);
 
            this.gboxSlaveData.Controls.Add(this.tboxAtmoAirTemp);
 
            this.gboxSlaveData.Controls.Add(this.label19);
 
            this.gboxSlaveData.Controls.Add(this.tboxAtmoHumidity);
 
            this.gboxSlaveData.Controls.Add(this.label18);
 
            this.gboxSlaveData.Controls.Add(this.tboxAtmoPressure);
 
            this.gboxSlaveData.Controls.Add(this.label17);
 
            this.gboxSlaveData.Controls.Add(this.tboxAtmoBatteryLevel);
 
            this.gboxSlaveData.Controls.Add(this.label15);
 
            this.gboxSlaveData.Controls.Add(this.tboxAtmoBoardTemp);
 
            this.gboxSlaveData.Controls.Add(this.label8);
 
            this.gboxSlaveData.Controls.Add(this.label20);
 
            this.gboxSlaveData.Location = new System.Drawing.Point(259, 13);
 
            this.gboxSlaveData.Name = "gboxSlaveData";
 
            this.gboxSlaveData.Padding = new System.Windows.Forms.Padding(10);
 
            this.gboxSlaveData.Size = new System.Drawing.Size(297, 438);
 
            this.gboxSlaveData.TabIndex = 1;
 
            this.gboxSlaveData.TabStop = false;
 
            this.gboxSlaveData.Text = "Slave Modules";
 
            // 
 
            // tboxCameraBatteryLevel
 
            // 
 
            this.tboxCameraBatteryLevel.Location = new System.Drawing.Point(146, 378);
 
            this.tboxCameraBatteryLevel.Location = new System.Drawing.Point(146, 403);
 
            this.tboxCameraBatteryLevel.Name = "tboxCameraBatteryLevel";
 
            this.tboxCameraBatteryLevel.ReadOnly = true;
 
            this.tboxCameraBatteryLevel.Size = new System.Drawing.Size(100, 20);
 
            this.tboxCameraBatteryLevel.TabIndex = 41;
 
            // 
 
            // label26
 
            // 
 
            this.label26.AutoSize = true;
 
            this.label26.Location = new System.Drawing.Point(40, 381);
 
            this.label26.Location = new System.Drawing.Point(40, 406);
 
            this.label26.Margin = new System.Windows.Forms.Padding(30, 7, 5, 7);
 
            this.label26.Name = "label26";
 
            this.label26.Size = new System.Drawing.Size(69, 13);
 
            this.label26.TabIndex = 40;
 
            this.label26.Text = "Battery Level";
 
            // 
 
            // tboxCameraBoardTemp
 
            // 
 
            this.tboxCameraBoardTemp.Location = new System.Drawing.Point(146, 351);
 
            this.tboxCameraBoardTemp.Location = new System.Drawing.Point(146, 376);
 
            this.tboxCameraBoardTemp.Name = "tboxCameraBoardTemp";
 
            this.tboxCameraBoardTemp.ReadOnly = true;
 
            this.tboxCameraBoardTemp.Size = new System.Drawing.Size(100, 20);
 
            this.tboxCameraBoardTemp.TabIndex = 39;
 
            // 
 
            // label27
 
            // 
 
            this.label27.AutoSize = true;
 
            this.label27.Location = new System.Drawing.Point(40, 354);
 
            this.label27.Location = new System.Drawing.Point(40, 379);
 
            this.label27.Margin = new System.Windows.Forms.Padding(30, 7, 5, 7);
 
            this.label27.Name = "label27";
 
            this.label27.Size = new System.Drawing.Size(98, 13);
 
            this.label27.TabIndex = 38;
 
            this.label27.Text = "Board Temperature";
 
            // 
 
            // label28
 
            // 
 
            this.label28.AutoSize = true;
 
            this.label28.Location = new System.Drawing.Point(15, 327);
 
            this.label28.Location = new System.Drawing.Point(15, 352);
 
            this.label28.Margin = new System.Windows.Forms.Padding(5, 7, 5, 7);
 
            this.label28.Name = "label28";
 
            this.label28.Size = new System.Drawing.Size(81, 13);
 
            this.label28.TabIndex = 37;
 
            this.label28.Text = "Camera Module";
 
            // 
 
            // textBox15
 
            // tboxGeigerRads
 
            // 
 
            this.textBox15.Location = new System.Drawing.Point(146, 297);
 
            this.textBox15.Name = "textBox15";
 
            this.textBox15.ReadOnly = true;
 
            this.textBox15.Size = new System.Drawing.Size(100, 20);
 
            this.textBox15.TabIndex = 36;
 
            this.tboxGeigerRads.Location = new System.Drawing.Point(146, 322);
 
            this.tboxGeigerRads.Name = "tboxGeigerRads";
 
            this.tboxGeigerRads.ReadOnly = true;
 
            this.tboxGeigerRads.Size = new System.Drawing.Size(100, 20);
 
            this.tboxGeigerRads.TabIndex = 36;
 
            // 
 
            // label25
 
            // 
 
            this.label25.AutoSize = true;
 
            this.label25.Location = new System.Drawing.Point(40, 300);
 
            this.label25.Location = new System.Drawing.Point(40, 325);
 
            this.label25.Margin = new System.Windows.Forms.Padding(30, 7, 5, 7);
 
            this.label25.Name = "label25";
 
            this.label25.Size = new System.Drawing.Size(52, 13);
 
            this.label25.TabIndex = 35;
 
            this.label25.Text = "Radiation";
 
            // 
 
            // tboxGeigerBatteryLevel
 
            // 
 
            this.tboxGeigerBatteryLevel.Location = new System.Drawing.Point(146, 270);
 
            this.tboxGeigerBatteryLevel.Location = new System.Drawing.Point(146, 295);
 
            this.tboxGeigerBatteryLevel.Name = "tboxGeigerBatteryLevel";
 
            this.tboxGeigerBatteryLevel.ReadOnly = true;
 
            this.tboxGeigerBatteryLevel.Size = new System.Drawing.Size(100, 20);
 
            this.tboxGeigerBatteryLevel.TabIndex = 34;
 
            // 
 
            // label24
 
            // 
 
            this.label24.AutoSize = true;
 
            this.label24.Location = new System.Drawing.Point(40, 273);
 
            this.label24.Location = new System.Drawing.Point(40, 298);
 
            this.label24.Margin = new System.Windows.Forms.Padding(30, 7, 5, 7);
 
            this.label24.Name = "label24";
 
            this.label24.Size = new System.Drawing.Size(69, 13);
 
            this.label24.TabIndex = 33;
 
            this.label24.Text = "Battery Level";
 
            // 
 
            // tboxGeigerBoardTemp
 
            // 
 
            this.tboxGeigerBoardTemp.Location = new System.Drawing.Point(146, 243);
 
            this.tboxGeigerBoardTemp.Location = new System.Drawing.Point(146, 268);
 
            this.tboxGeigerBoardTemp.Name = "tboxGeigerBoardTemp";
 
            this.tboxGeigerBoardTemp.ReadOnly = true;
 
            this.tboxGeigerBoardTemp.Size = new System.Drawing.Size(100, 20);
 
            this.tboxGeigerBoardTemp.TabIndex = 32;
 
            // 
 
            // label23
 
            // 
 
            this.label23.AutoSize = true;
 
            this.label23.Location = new System.Drawing.Point(40, 246);
 
            this.label23.Location = new System.Drawing.Point(40, 271);
 
            this.label23.Margin = new System.Windows.Forms.Padding(30, 7, 5, 7);
 
            this.label23.Name = "label23";
 
            this.label23.Size = new System.Drawing.Size(98, 13);
 
            this.label23.TabIndex = 31;
 
            this.label23.Text = "Board Temperature";
 
            // 
 
            // label22
 
            // 
 
            this.label22.AutoSize = true;
 
            this.label22.Location = new System.Drawing.Point(15, 219);
 
            this.label22.Location = new System.Drawing.Point(15, 244);
 
            this.label22.Margin = new System.Windows.Forms.Padding(5, 7, 5, 7);
 
            this.label22.Name = "label22";
 
            this.label22.Size = new System.Drawing.Size(76, 13);
 
            this.label22.TabIndex = 30;
 
            this.label22.Text = "Geiger Module";
 
            // 
 
            // tboxAtmoAltitude
 
            // 
 
            this.tboxAtmoAltitude.Location = new System.Drawing.Point(146, 189);
 
            this.tboxAtmoAltitude.Location = new System.Drawing.Point(146, 214);
 
            this.tboxAtmoAltitude.Name = "tboxAtmoAltitude";
 
            this.tboxAtmoAltitude.ReadOnly = true;
 
            this.tboxAtmoAltitude.Size = new System.Drawing.Size(100, 20);
 
            this.tboxAtmoAltitude.TabIndex = 29;
 
            // 
 
            // label21
 
            // 
 
            this.label21.AutoSize = true;
 
            this.label21.Location = new System.Drawing.Point(40, 192);
 
            this.label21.Location = new System.Drawing.Point(40, 217);
 
            this.label21.Margin = new System.Windows.Forms.Padding(30, 7, 5, 7);
 
            this.label21.Name = "label21";
 
            this.label21.Size = new System.Drawing.Size(42, 13);
 
            this.label21.TabIndex = 28;
 
            this.label21.Text = "Altitude";
 
            // 
 
            // textBox11
 
            // tboxAtmoAirTemp
 
            // 
 
            this.textBox11.Location = new System.Drawing.Point(146, 108);
 
            this.textBox11.Name = "textBox11";
 
            this.textBox11.ReadOnly = true;
 
            this.textBox11.Size = new System.Drawing.Size(100, 20);
 
            this.textBox11.TabIndex = 27;
 
            this.tboxAtmoAirTemp.Location = new System.Drawing.Point(146, 108);
 
            this.tboxAtmoAirTemp.Name = "tboxAtmoAirTemp";
 
            this.tboxAtmoAirTemp.ReadOnly = true;
 
            this.tboxAtmoAirTemp.Size = new System.Drawing.Size(100, 20);
 
            this.tboxAtmoAirTemp.TabIndex = 27;
 
            // 
 
            // label19
 
            // 
 
            this.label19.AutoSize = true;
 
            this.label19.Location = new System.Drawing.Point(40, 111);
 
            this.label19.Margin = new System.Windows.Forms.Padding(30, 7, 5, 7);
 
            this.label19.Name = "label19";
 
            this.label19.Size = new System.Drawing.Size(82, 13);
 
            this.label19.TabIndex = 26;
 
            this.label19.Text = "Air Temperature";
 
            // 
 
            // tboxAtmoHumidity
 
            // 
 
            this.tboxAtmoHumidity.BackColor = System.Drawing.SystemColors.Control;
 
            this.tboxAtmoHumidity.Location = new System.Drawing.Point(146, 135);
 
            this.tboxAtmoHumidity.Location = new System.Drawing.Point(146, 160);
 
            this.tboxAtmoHumidity.Name = "tboxAtmoHumidity";
 
            this.tboxAtmoHumidity.ReadOnly = true;
 
            this.tboxAtmoHumidity.Size = new System.Drawing.Size(100, 20);
 
            this.tboxAtmoHumidity.TabIndex = 25;
 
            // 
 
            // label18
 
            // 
 
            this.label18.AutoSize = true;
 
            this.label18.Location = new System.Drawing.Point(40, 138);
 
            this.label18.Location = new System.Drawing.Point(40, 163);
 
            this.label18.Margin = new System.Windows.Forms.Padding(30, 7, 5, 7);
 
            this.label18.Name = "label18";
 
            this.label18.Size = new System.Drawing.Size(47, 13);
 
            this.label18.TabIndex = 24;
 
            this.label18.Text = "Humidity";
 
            // 
 
            // tboxAtmoPressure
 
            // 
 
            this.tboxAtmoPressure.Location = new System.Drawing.Point(146, 162);
 
            this.tboxAtmoPressure.Location = new System.Drawing.Point(146, 187);
 
            this.tboxAtmoPressure.Name = "tboxAtmoPressure";
 
            this.tboxAtmoPressure.ReadOnly = true;
 
            this.tboxAtmoPressure.Size = new System.Drawing.Size(100, 20);
 
            this.tboxAtmoPressure.TabIndex = 23;
 
            // 
 
            // label17
 
            // 
 
            this.label17.AutoSize = true;
 
            this.label17.Location = new System.Drawing.Point(40, 165);
 
            this.label17.Location = new System.Drawing.Point(40, 190);
 
            this.label17.Margin = new System.Windows.Forms.Padding(30, 7, 5, 7);
 
            this.label17.Name = "label17";
 
            this.label17.Size = new System.Drawing.Size(48, 13);
 
            this.label17.TabIndex = 22;
 
            this.label17.Text = "Pressure";
 
            // 
 
            // tboxAtmoBatteryLevel
 
            // 
 
            this.tboxAtmoBatteryLevel.Location = new System.Drawing.Point(146, 81);
 
            this.tboxAtmoBatteryLevel.Name = "tboxAtmoBatteryLevel";
 
            this.tboxAtmoBatteryLevel.ReadOnly = true;
 
            this.tboxAtmoBatteryLevel.Size = new System.Drawing.Size(100, 20);
 
@@ -962,65 +966,83 @@
 
            // tboxMessageBox
 
            // 
 
            this.tboxMessageBox.AcceptsReturn = true;
 
            this.tboxMessageBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
 
            | System.Windows.Forms.AnchorStyles.Left) 
 
            | System.Windows.Forms.AnchorStyles.Right)));
 
            this.tboxMessageBox.BackColor = System.Drawing.SystemColors.ScrollBar;
 
            this.tboxMessageBox.Location = new System.Drawing.Point(0, 3);
 
            this.tboxMessageBox.Multiline = true;
 
            this.tboxMessageBox.Name = "tboxMessageBox";
 
            this.tboxMessageBox.ReadOnly = true;
 
            this.tboxMessageBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
 
            this.tboxMessageBox.Size = new System.Drawing.Size(868, 69);
 
            this.tboxMessageBox.Size = new System.Drawing.Size(868, 81);
 
            this.tboxMessageBox.TabIndex = 30;
 
            // 
 
            // splitContainer1
 
            // 
 
            this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
 
            | System.Windows.Forms.AnchorStyles.Left) 
 
            | System.Windows.Forms.AnchorStyles.Right)));
 
            this.splitContainer1.Location = new System.Drawing.Point(12, 12);
 
            this.splitContainer1.Name = "splitContainer1";
 
            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
 
            // 
 
            // splitContainer1.Panel1
 
            // 
 
            this.splitContainer1.Panel1.Controls.Add(this.tabControl);
 
            // 
 
            // splitContainer1.Panel2
 
            // 
 
            this.splitContainer1.Panel2.Controls.Add(this.tboxMessageBox);
 
            this.splitContainer1.Size = new System.Drawing.Size(871, 526);
 
            this.splitContainer1.SplitterDistance = 450;
 
            this.splitContainer1.Size = new System.Drawing.Size(871, 603);
 
            this.splitContainer1.SplitterDistance = 515;
 
            this.splitContainer1.TabIndex = 46;
 
            // 
 
            // tboxMasterSatellites
 
            // 
 
            this.tboxMasterSatellites.Location = new System.Drawing.Point(121, 188);
 
            this.tboxMasterSatellites.Name = "tboxMasterSatellites";
 
            this.tboxMasterSatellites.ReadOnly = true;
 
            this.tboxMasterSatellites.Size = new System.Drawing.Size(100, 20);
 
            this.tboxMasterSatellites.TabIndex = 19;
 
            // 
 
            // label29
 
            // 
 
            this.label29.AutoSize = true;
 
            this.label29.Location = new System.Drawing.Point(15, 191);
 
            this.label29.Margin = new System.Windows.Forms.Padding(5, 7, 5, 7);
 
            this.label29.Name = "label29";
 
            this.label29.Size = new System.Drawing.Size(86, 13);
 
            this.label29.TabIndex = 18;
 
            this.label29.Text = "Satellites in View";
 
            // 
 
            // tboxMasterHDOP
 
            // 
 
            this.tboxMasterHDOP.Location = new System.Drawing.Point(120, 214);
 
            this.tboxMasterHDOP.Name = "tboxMasterHDOP";
 
            this.tboxMasterHDOP.ReadOnly = true;
 
            this.tboxMasterHDOP.Size = new System.Drawing.Size(100, 20);
 
            this.tboxMasterHDOP.TabIndex = 21;
 
            // 
 
            // label30
 
            // 
 
            this.label30.AutoSize = true;
 
            this.label30.Location = new System.Drawing.Point(14, 217);
 
            this.label30.Margin = new System.Windows.Forms.Padding(5, 7, 5, 7);
 
            this.label30.Name = "label30";
 
            this.label30.Size = new System.Drawing.Size(38, 13);
 
            this.label30.TabIndex = 20;
 
            this.label30.Text = "HDOP";
 
            // 
 
            // MainMap
 
            // 
 
            this.MainMap.Bearing = 0F;
 
            this.MainMap.CanDragMap = true;
 
            this.MainMap.Dock = System.Windows.Forms.DockStyle.Fill;
 
            this.MainMap.EmptyTileColor = System.Drawing.Color.Navy;
 
            this.MainMap.GrayScaleMode = false;
 
            this.MainMap.HelperLineOption = GMap.NET.WindowsForms.HelperLineOptions.DontShow;
 
            this.MainMap.LevelsKeepInMemmory = 5;
 
            this.MainMap.Location = new System.Drawing.Point(0, 0);
 
            this.MainMap.MarkersEnabled = true;
 
            this.MainMap.MaxZoom = 17;
 
@@ -2029,48 +2051,49 @@
 
            // 
 
            // button17
 
            // 
 
            this.button17.Dock = System.Windows.Forms.DockStyle.Fill;
 
            this.button17.Location = new System.Drawing.Point(17, 122);
 
            this.button17.Margin = new System.Windows.Forms.Padding(2);
 
            this.button17.Name = "button17";
 
            this.button17.Size = new System.Drawing.Size(222, 19);
 
            this.button17.TabIndex = 50;
 
            this.button17.Text = "Open cache location";
 
            this.button17.UseVisualStyleBackColor = true;
 
            // 
 
            // tboxMasterHDOP
 
            // tboxAtmoLight
 
            // 
 
            this.tboxMasterHDOP.Location = new System.Drawing.Point(120, 214);
 
            this.tboxMasterHDOP.Name = "tboxMasterHDOP";
 
            this.tboxMasterHDOP.ReadOnly = true;
 
            this.tboxMasterHDOP.Size = new System.Drawing.Size(100, 20);
 
            this.tboxMasterHDOP.TabIndex = 21;
 
            this.tboxAtmoLight.BackColor = System.Drawing.SystemColors.Control;
 
            this.tboxAtmoLight.Location = new System.Drawing.Point(146, 134);
 
            this.tboxAtmoLight.Name = "tboxAtmoLight";
 
            this.tboxAtmoLight.ReadOnly = true;
 
            this.tboxAtmoLight.Size = new System.Drawing.Size(100, 20);
 
            this.tboxAtmoLight.TabIndex = 43;
 
            // 
 
            // label30
 
            // label31
 
            // 
 
            this.label30.AutoSize = true;
 
            this.label30.Location = new System.Drawing.Point(14, 217);
 
            this.label30.Margin = new System.Windows.Forms.Padding(5, 7, 5, 7);
 
            this.label30.Name = "label30";
 
            this.label30.Size = new System.Drawing.Size(38, 13);
 
            this.label30.TabIndex = 20;
 
            this.label30.Text = "HDOP";
 
            this.label31.AutoSize = true;
 
            this.label31.Location = new System.Drawing.Point(40, 137);
 
            this.label31.Margin = new System.Windows.Forms.Padding(30, 7, 5, 7);
 
            this.label31.Name = "label31";
 
            this.label31.Size = new System.Drawing.Size(71, 13);
 
            this.label31.TabIndex = 42;
 
            this.label31.Text = "Ambient Light";
 
            // 
 
            // MainForm
 
            // 
 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
 
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 
            this.BackColor = System.Drawing.Color.AliceBlue;
 
            this.ClientSize = new System.Drawing.Size(895, 550);
 
            this.ClientSize = new System.Drawing.Size(895, 627);
 
            this.Controls.Add(this.splitContainer1);
 
            this.KeyPreview = true;
 
            this.MinimumSize = new System.Drawing.Size(554, 105);
 
            this.Name = "MainForm";
 
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
 
            this.Text = "GMap.NET - Great Maps for Windows Forms";
 
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
 
            this.Load += new System.EventHandler(this.MainForm_Load);
 
            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.MainForm_KeyPress);
 
            this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.MainForm_KeyUp);
 
            this.tabMap.ResumeLayout(false);
 
            this.panel4.ResumeLayout(false);
 
@@ -2247,43 +2270,45 @@
 
      private System.Windows.Forms.TextBox tboxMasterLongitude;
 
      private System.Windows.Forms.Label label2;
 
      private System.Windows.Forms.TextBox tboxMasterLatitude;
 
      private System.Windows.Forms.Label label16;
 
      private System.Windows.Forms.TextBox tboxMasterBatteryLevel;
 
      private System.Windows.Forms.TextBox tboxMasterBoardTemp;
 
      private System.Windows.Forms.Label label1;
 
      private System.Windows.Forms.TextBox tboxCameraBatteryLevel;
 
      private System.Windows.Forms.Label label26;
 
      private System.Windows.Forms.TextBox tboxCameraBoardTemp;
 
      private System.Windows.Forms.Label label27;
 
      private System.Windows.Forms.Label label28;
 
      private System.Windows.Forms.TextBox textBox15;
 
      private System.Windows.Forms.TextBox tboxGeigerRads;
 
      private System.Windows.Forms.Label label25;
 
      private System.Windows.Forms.TextBox tboxGeigerBatteryLevel;
 
      private System.Windows.Forms.Label label24;
 
      private System.Windows.Forms.TextBox tboxGeigerBoardTemp;
 
      private System.Windows.Forms.Label label23;
 
      private System.Windows.Forms.Label label22;
 
      private System.Windows.Forms.TextBox tboxAtmoAltitude;
 
      private System.Windows.Forms.Label label21;
 
      private System.Windows.Forms.TextBox textBox11;
 
      private System.Windows.Forms.TextBox tboxAtmoAirTemp;
 
      private System.Windows.Forms.Label label19;
 
      private System.Windows.Forms.TextBox tboxAtmoHumidity;
 
      private System.Windows.Forms.Label label18;
 
      private System.Windows.Forms.TextBox tboxAtmoPressure;
 
      private System.Windows.Forms.Label label17;
 
      private System.Windows.Forms.TextBox tboxAtmoBatteryLevel;
 
      private System.Windows.Forms.Label label15;
 
      private System.Windows.Forms.TextBox tboxAtmoBoardTemp;
 
      private System.Windows.Forms.Label label8;
 
      private System.Windows.Forms.Label label20;
 
      private System.Windows.Forms.CheckBox cboxCollectData;
 
      private System.Windows.Forms.SplitContainer splitContainer1;
 
      private System.Windows.Forms.TextBox tboxMasterSatellites;
 
      private System.Windows.Forms.Label label29;
 
      private System.Windows.Forms.TextBox tboxMasterHDOP;
 
      private System.Windows.Forms.Label label30;
 
      private System.Windows.Forms.TextBox tboxAtmoLight;
 
      private System.Windows.Forms.Label label31;
 
 
 
   }
 
}
 
Demo.WindowsForms/Forms/MainForm.cs
Show inline comments
 
@@ -2414,27 +2414,25 @@ namespace Demo.WindowsForms
 
            {
 
                string argument = "/select, \"" + MainMap.CacheLocation + "TileDBv5\"";
 
                System.Diagnostics.Process.Start("explorer.exe", argument);
 
            }
 
            catch (Exception ex)
 
            {
 
                MessageBox.Show("Failed to open: " + ex.Message, "GMap.NET", MessageBoxButtons.OK, MessageBoxIcon.Error);
 
            }
 
        }
 
 
        #endregion
 
 
        #region graph and map functions
 
 
        #region chart coloring
 
        #region chart click events
 
        //this method clears the background of all charts
 
        private void ResetChartColors()
 
        {
 
            chrtTopLeft.BackColor = Color.LightGray;
 
            chrtTopRight.BackColor = Color.LightGray;
 
            chrtBottomLeft.BackColor = Color.LightGray;
 
            chrtBottomRight.BackColor = Color.LightGray;
 
        }
 
 
        //highlight Top Left chart on click
 
        //set text box values based on this chart
 
        private void chrtTopLeft_Click(object sender, EventArgs e)
 
@@ -2480,24 +2478,30 @@ namespace Demo.WindowsForms
 
        {
 
            ResetChartColors();
 
            chrtBottomRight.BackColor = Color.Gray;
 
            tboxChartData.Text = "Map";
 
            tboxCurrent.Text = "";
 
            tboxAverage.Text = "";
 
            tboxMax.Text = "";
 
            tboxMin.Text = "";
 
        }
 
 
        #endregion
 
 
        #region transmission handling
 
        //variable declarations
 
        string latitude;
 
        string longitude;
 
        bool firstTransmissionDatum = false;
 
 
        //runs on init 
 
        public void PrepareGraphs(){
 
 
            //set up for graphs MDKEdit
 
            // http://www.youtube.com/watch?v=zTod4-Fg6Ew - split containers
 
            // http://www.youtube.com/watch?v=bMXtgPk875I - chart controls
 
 
            chrtTopLeft.ChartAreas.Add("altitudeArea");
 
            chrtTopLeft.Series.Add("altitudeTrend");
 
 
            chrtTopRight.ChartAreas.Add("humidityArea");
 
            chrtTopRight.Series.Add("humidityTrend");
 
@@ -2508,163 +2512,184 @@ namespace Demo.WindowsForms
 
            chrtBottomRight.ChartAreas.Add("velocityArea");
 
            chrtBottomRight.Series.Add("velocityTrend");
 
 
            // declare all series, data points to be modified dynamically at run
 
 
            //---------prep altitude area BEGIN 
 
            chrtTopLeft.Series["altitudeTrend"].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
 
            chrtTopLeft.Series["altitudeTrend"].Color = Color.Green;
 
            System.Windows.Forms.DataVisualization.Charting.AxisName.X.Equals("Time");
 
            System.Windows.Forms.DataVisualization.Charting.AxisName.Y.Equals("Altitude");
 
            
 
            ///required initial value
 
            chrtTopLeft.Series["altitudeTrend"].Points.AddXY(0, 0);
 
            chrtTopLeft.Series["altitudeTrend"].Points.AddXY(0, 140);
 
            //---------prep altitude area END 
 
 
 
            //-----------prep humidity area BEGIN
 
            chrtTopRight.Series["humidityTrend"].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
 
            chrtTopRight.Series["humidityTrend"].Color = Color.Red;
 
            System.Windows.Forms.DataVisualization.Charting.AxisName.X.Equals("Time");
 
            System.Windows.Forms.DataVisualization.Charting.AxisName.Y.Equals("Humidity");
 
 
            ///required initial value
 
            chrtTopRight.Series["humidityTrend"].Points.AddXY(0, 0);
 
            chrtTopRight.Series["humidityTrend"].Points.AddXY(0, 50);
 
            //-----------prep humidity area END
 
 
 
            //-----------prep pressure area BEGIN
 
            chrtBottomLeft.Series["pressureTrend"].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
 
            chrtBottomLeft.Series["pressureTrend"].Color = Color.Blue;
 
            System.Windows.Forms.DataVisualization.Charting.AxisName.X.Equals("Time");
 
            System.Windows.Forms.DataVisualization.Charting.AxisName.Y.Equals("Pressure");
 
 
            ///required initial value
 
            chrtBottomLeft.Series["pressureTrend"].Points.AddXY(0, 0);
 
            chrtBottomLeft.Series["pressureTrend"].Points.AddXY(0, 100000);
 
            //-----------prep pressure area END
 
 
 
            //----------prep velocity area BEGIN
 
            chrtBottomRight.Series["velocityTrend"].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line;
 
            chrtBottomRight.Series["velocityTrend"].Color = Color.Green;
 
            System.Windows.Forms.DataVisualization.Charting.AxisName.X.Equals("Time");
 
            System.Windows.Forms.DataVisualization.Charting.AxisName.Y.Equals("Altitude");
 
 
            ///required initial value
 
            chrtBottomRight.Series["velocityTrend"].Points.AddXY(0, 0);
 
            //----------prep velocity area END
 
 
            //put chart displays in a ready state
 
            ResetChartColors();
 
        }
 
        
 
        string latitude;
 
        string longitude;
 
 
        //parses transmissions and saves data to CSV file
 
        public void ParseIncomingData(string rawDataReceived)
 
        {
 
            //check to see if data should be processed
 
            if (!cboxCollectData.Checked && rawDataReceived.StartsWith("KD8TDF"))
 
            if (!cboxCollectData.Checked )
 
            {
 
                AddTextDelegate("Bad transmission: " + rawDataReceived +"\r\n");
 
                AddTextDelegate("Transmission not saved: " + rawDataReceived +"\r\n");
 
                return;
 
            }
 
            else if (!rawDataReceived.StartsWith("KD8TDF"))
 
            {
 
                AddTextDelegate("Foreign transmission: " + rawDataReceived + "\r\n");
 
                return;
 
            }
 
 
            /* sample stansmissions
 
             * KD8TDF-9>APRS,WIDE2-1:/191950zN/WO/ T79 S00 V H99.99 _ |
 
             * KD8TDF-9>APRS,WIDE2-1:/151916z3944.87N/08348.75WO005/0.013 SV:09 A-30.5 B45.64 C99542
 
             */
 
 
            //find and store latitude string
 
            int indexStart = rawDataReceived.IndexOf("z");
 
            int indexEnd = rawDataReceived.IndexOf("N/");
 
            latitude = rawDataReceived.Substring(indexStart + 1, indexEnd - indexStart - 1);
 
 
            //find and store longitude string
 
            indexStart = rawDataReceived.IndexOf("N/");
 
            indexEnd = rawDataReceived.IndexOf("WO");
 
            longitude = rawDataReceived.Substring(indexStart + 2, indexEnd - indexStart - 2);
 
            
 
            //remove APRS overhead from string
 
            string transmissionCommentField= rawDataReceived.Substring(rawDataReceived.IndexOf(" ")); 
 
 
            //place each datum in its own variable
 
            string[] dataTransmission;
 
            dataTransmission = transmissionCommentField.Split(' ');
 
            dataTransmission = transmissionCommentField.Split('~');
 
 
            //variables for processing datums
 
            string typeCode;
 
            double data;
 
            string data;
 
            string csvData = "";
 
            string testString = "";
 
 
            //loop through all datums in the transmission and send them to the chart builder
 
            for (int i = 1; i < dataTransmission.Length; i++)
 
            for (int i = 0; i < dataTransmission.Length; i++)
 
            {
 
                if (i == 0)
 
            {
 
                    firstTransmissionDatum = true;
 
                }
 
                else
 
                {
 
                    firstTransmissionDatum = false;
 
                }
 
 
                //remove unwanted characters
 
                dataTransmission[i] = dataTransmission[i].Trim('\r');
 
                dataTransmission[i] = dataTransmission[i].Trim();
 
 
                //zero not always trasmitted properly so add '0.0' to any transmission with no data
 
                if (dataTransmission[i].Length == 1) 
 
                {
 
                    dataTransmission[i] += "0";
 
                }
 
                
 
                //pull out data and data type and send to processing function
 
                typeCode = dataTransmission[i].Substring(0, 1);
 
                data = double.Parse(dataTransmission[i].Substring(1));
 
                if (typeCode != "e")
 
                {
 
                    testString = dataTransmission[i].Substring(1);
 
                    data = dataTransmission[i].Substring(1);
 
                processTransmissionDatum(typeCode, data);
 
 
                //append data to string for CSV write
 
                csvData += typeCode + data + ",";
 
            }
 
                else
 
                {
 
                    AddTextDelegate("Error Message: " + dataTransmission[i].Substring(1) + "\r\n");
 
                }
 
            }
 
 
            //handle case of no GPS fix
 
            if (latitude == "" || longitude == "")
 
            {
 
                AddTextDelegate("No GPS fix: ");
 
            }
 
            else
 
            {
 
                //marker added here so extra accuracy can be added
 
                addMarkerFromTransmit(latitude, longitude);
 
            }
 
 
            //display transmission in message box
 
            AddTextDelegate(rawDataReceived + "\r\n");
 
 
            //write the data to CSV file
 
            WriteToCSV(csvData);
 
        }
 
 
        //method to process data from transmissions (usually chart inserts)
 
        private void processTransmissionDatum(string dataType, string data)
 
        {
 
            //TODO: add inserts for all charts. altitude is finished and is a template
 
            ///data types organized by listing in google doc
 
            //MASTER MODULE DATA VALUES
 
            ChartDelegate(dataType, data);
 
 
        }
 
 
        //write the data to CSV file
 
        private void WriteToCSV(string data)
 
        {
 
            string path = Directory.GetCurrentDirectory();
 
            string filename = path+"\\debug" + unixTime.Milliseconds + ".csv";
 
            using (StreamWriter writer = new StreamWriter(filename, true))
 
            {
 
                writer.WriteLine(data);
 
            }
 
        }
 
        
 
        //method to process data from transmissions (usually chart inserts)
 
        private void processTransmissionDatum(string dataType, double data)
 
        {
 
            //TODO: add inserts for all charts. altitude is finished and is a template
 
            ///data types organized by listing in google doc
 
            //MASTER MODULE DATA VALUES
 
            ChartDelegate(dataType, data);
 
 
        }
 
 
        //must change lat/long coords to properly place map marker
 
        float conv_coords(float in_coords)
 
        {
 
            //Initialize the location.
 
            float f = in_coords;
 
            // Get the first two digits by turning f into an integer, then doing an integer divide by 100;
 
            // firsttowdigits should be 77 at this point.
 
            int firsttwodigits = ((int)f) / 100;                               //This assumes that f < 10000.
 
            float nexttwodigits = f - (float)(firsttwodigits * 100);
 
            float theFinalAnswer = (float)(firsttwodigits + nexttwodigits / 60.0);
 
            return theFinalAnswer;
 
@@ -2691,201 +2716,213 @@ namespace Demo.WindowsForms
 
            if (xboxPlacemarkInfo.Checked)
 
            {
 
                GeoCoderStatusCode status;
 
                var ret = GMapProviders.GoogleMap.GetPlacemark(currentMarker.Position, out status);
 
                if (status == GeoCoderStatusCode.G_GEO_SUCCESS && ret != null)
 
                {
 
                    p = ret;
 
                }
 
            }
 
 
            objects.Markers.Add(m);
 
        }
 
 
        private void ClearTboxColor()
 
        {
 
            //tboxAtmoHumidity.BorderStyle = BorderStyle.FixedSingle;
 
            tboxAtmoHumidity.BackColor = Color.White;
 
            tboxAtmoPressure.BackColor = Color.White;
 
            tboxAtmoAltitude.BackColor = Color.White;
 
            tboxMasterVelocity.BackColor = Color.White;
 
            tboxCameraBoardTemp.BackColor = Color.White;
 
            tboxGeigerBoardTemp.BackColor = Color.White;
 
            tboxAtmoBoardTemp.BackColor = Color.White;
 
            tboxMasterBoardTemp.BackColor = Color.White;
 
            return;
 
        }
 
        #endregion
 
 
        #region cross theading
 
 
        ///
 
        //places text in the message box
 
        delegate void SetTextDelegate(string value);
 
        public void AddTextDelegate(string value)
 
        {
 
            if (InvokeRequired)
 
            {
 
                Invoke(new SetTextDelegate(AddTextDelegate), value);
 
            }
 
            else
 
            {
 
                tboxMessageBox.AppendText(value);// += value;
 
                textBoxMarkerCount.Text = objects.Markers.Count.ToString();
 
            }
 
        }
 
 
        delegate void ChartDataDelegate(string dataType, double data);
 
        public void ChartDelegate(string dataType, double data)
 
        //this is where most of the transmission processing is done
 
        delegate void ChartDataDelegate(string dataType, string data);
 
        public void ChartDelegate(string dataType, string data)
 
        {
 
            if (InvokeRequired)
 
            {
 
                Invoke(new ChartDataDelegate(ChartDelegate), dataType, data);
 
            }
 
            else
 
            {
 
                if (firstTransmissionDatum)
 
                {
 
                ClearTboxColor();
 
 
                }
 
                ///UNIVERSAL DATA TYPES
 
                if (dataType.Equals("t"))  //board temperature
 
                {
 
                    string dataString = data.ToString();
 
                    if (dataString.StartsWith("9"))
 
                    if (dataString.StartsWith("9")) //Master Module
 
                    {
 
                        tboxMasterBoardTemp.Text = dataString.Substring(1);
 
                        tboxMasterBoardTemp.BackColor = Color.Chartreuse;
 
                    }
 
                    else if (dataString.StartsWith("0"))
 
                    else if (dataString.StartsWith("0")) //Atmo Module
 
                    {
 
                        tboxAtmoBoardTemp.Text = dataString.Substring(1);
 
                        tboxAtmoBoardTemp.BackColor = Color.Chartreuse;
 
                    }
 
                    else if (dataString.StartsWith("1"))
 
                    else if (dataString.StartsWith("1")) //Geiger Module
 
                    {
 
                        tboxGeigerBoardTemp.Text = dataString.Substring(1);
 
                        tboxGeigerBoardTemp.BackColor = Color.Chartreuse;
 
                    }
 
                    else if (dataString.StartsWith("2"))
 
                    else if (dataString.StartsWith("2")) //Camera Module
 
                    {
 
                        tboxCameraBoardTemp.Text = dataString.Substring(1);
 
                        tboxCameraBoardTemp.BackColor = Color.Chartreuse;
 
                    }
 
                }
 
                else if (dataType.Equals("l"))  //battery level
 
                {
 
                    string dataString = data.ToString();
 
                    if (dataString.StartsWith("9"))
 
                    if (dataString.StartsWith("9")) //Master Module
 
                    {
 
                        tboxMasterBatteryLevel.Text = dataString.Substring(1);
 
                        tboxMasterBatteryLevel.BackColor = Color.Chartreuse;
 
                    }
 
                    else if (dataString.StartsWith("0"))
 
                    else if (dataString.StartsWith("0")) //Atmo Module
 
                    {
 
                        tboxAtmoBatteryLevel.Text = dataString.Substring(1);
 
                        tboxAtmoBatteryLevel.BackColor = Color.Chartreuse;
 
                    }
 
                    else if (dataString.StartsWith("1"))
 
                    else if (dataString.StartsWith("1"))  //Geiger Module
 
                    {
 
                        tboxGeigerBatteryLevel.Text = dataString.Substring(1);
 
                        tboxGeigerBatteryLevel.BackColor = Color.Chartreuse;
 
                    }
 
                    else if (dataString.StartsWith("2"))
 
                    else if (dataString.StartsWith("2")) //Camera Module
 
                    {
 
                        tboxCameraBatteryLevel.Text = dataString.Substring(1);
 
                        tboxCameraBatteryLevel.BackColor = Color.Chartreuse;
 
                    }
 
                }
 
                else if (dataType.Equals("i"))  //Info/error Message
 
                else if (dataType.Equals("i")) //Info Message
 
                {
 
                    AddTextDelegate("Info: " + data + "\r\n");
 
                }
 
 
                ///MASTER MODULE DATA TYPES
 
                //TODO: lat/long multi calls not needed; streamline
 
                else if (dataType.Equals("_"))  //latitude
 
                {
 
                    //TODO: check math and decimal placement
 
                    latitude += data.ToString();
 
                    tboxMasterLatitude.Text = latitude;
 
                    tboxMasterLatitude.BackColor = Color.Chartreuse;
 
                }
 
                else if (dataType.Equals("|"))  //longitude
 
                {
 
                    //TODO: check math and decimal placement
 
                    longitude += data.ToString();
 
                    tboxMasterLongitude.Text = longitude;
 
                    tboxMasterLongitude.BackColor = Color.Chartreuse;
 
                }
 
                else if (dataType.Equals("h"))  //HDOP
 
                {
 
                    tboxMasterHDOP.Text = data.ToString();
 
                    tboxMasterHDOP.BackColor = Color.Chartreuse;
 
                }
 
                else if (dataType.Equals("v"))  //Velocity
 
                {
 
                    chrtBottomRight.Series.FindByName("velocityTrend").Points.AddY(double.Parse(data));
 
                    tboxMasterVelocity.Text = data.ToString();
 
                    tboxMasterVelocity.BackColor = Color.Chartreuse;
 
                }
 
                else if (dataType.Equals("s"))  //satellites in view
 
                {
 
                    tboxMasterSatellites.Text = data.ToString();
 
                    tboxMasterSatellites.BackColor = Color.Chartreuse;
 
                }
 
                else if (dataType.Equals("x"))  //Latitude
 
                {
 
 
                }
 
                else if (dataType.Equals("y"))  //Longitude
 
                {
 
 
                }
 
                else if (dataType.Equals("v"))  //Velocity
 
                {
 
                    chrtBottomRight.Series.FindByName("velocityTrend").Points.AddY(data);
 
                    tboxMasterVelocity.Text = data.ToString();
 
                    tboxMasterVelocity.BackColor = Color.Chartreuse;
 
                }
 
                else if (dataType.Equals("_"))  //extra latitude decimals
 
                {
 
                    //TODO: check math and decimal placement
 
                    latitude += data.ToString();
 
                    tboxMasterLatitude.Text = latitude;
 
                    tboxMasterLatitude.BackColor = Color.Chartreuse;
 
                }
 
                else if (dataType.Equals("|"))  //extra longitude decimals
 
                {
 
                    //TODO: check math and decimal placement
 
                    longitude += data.ToString();
 
                    tboxMasterLongitude.Text = longitude;
 
                    tboxMasterLongitude.BackColor = Color.Chartreuse;
 
                }
 
 
                ///ATMOSPHERIC MODULE DATA VALUES
 
                else if (dataType.Equals("C"))  //Air Temperature
 
                {
 
 
                    tboxAtmoAirTemp.Text = data.ToString();
 
                    tboxAtmoAirTemp.BackColor = Color.Chartreuse;
 
                }
 
                else if (dataType.Equals("L"))  //Ambient Light
 
                {
 
                    tboxAtmoLight.Text = data.ToString();
 
                    tboxAtmoLight.BackColor = Color.Chartreuse;
 
                }
 
                else if (dataType.Equals("H"))  //Humidity
 
                {
 
                    chrtTopRight.Series.FindByName("humidityTrend").Points.AddY(data);
 
                    chrtTopRight.Series.FindByName("humidityTrend").Points.AddY(double.Parse(data));
 
                    tboxAtmoHumidity.Text = data.ToString();
 
                    tboxAtmoHumidity.BackColor = Color.Chartreuse;
 
                }
 
                else if (dataType.Equals("P"))  //Pressure
 
                {
 
                    chrtBottomLeft.Series.FindByName("pressureTrend").Points.AddY(data);
 
                    chrtBottomLeft.Series.FindByName("pressureTrend").Points.AddY(double.Parse(data));
 
                    tboxAtmoPressure.Text = data.ToString();
 
                    tboxAtmoPressure.BackColor = Color.Chartreuse;
 
                }
 
                else if (dataType.Equals("A"))  //Altitude
 
                {
 
                    chrtTopLeft.Series.FindByName("altitudeTrend").Points.AddY(data);
 
                    chrtTopLeft.Series.FindByName("altitudeTrend").Points.AddY(double.Parse(data));
 
                    tboxAtmoAltitude.Text = data.ToString();
 
                    tboxAtmoAltitude.BackColor = Color.Chartreuse;
 
                }
 
 
                ///GEIGER MODULE DATA VALUES
 
                else if (dataType.Equals("R"))  //radiation (CPM)
 
                {
 
 
                    tboxGeigerRads.Text = data.ToString();
 
                    tboxGeigerRads.BackColor = Color.Chartreuse;
 
                }
 
 
                /// CAMERA MODULE DATA VALUES
 
 
                //INVALID DATA TYPE
 
                else
 
                {
 
 
                    AddTextDelegate("Info: " + data + "\r\n");
 
                }
 
                }
 
            }
 
 
        private void ClearTboxColor()
 
        {
 
            //tboxAtmoHumidity.BorderStyle = BorderStyle.FixedSingle;
 
            tboxMasterBoardTemp.BackColor = Color.White;
 
            tboxAtmoBoardTemp.BackColor = Color.White;
 
            tboxGeigerBoardTemp.BackColor = Color.White;
 
            tboxCameraBoardTemp.BackColor = Color.White;
 
            tboxMasterBatteryLevel.BackColor = Color.White;
 
            tboxAtmoBatteryLevel.BackColor = Color.White;
 
            tboxGeigerBatteryLevel.BackColor = Color.White;
 
            tboxCameraBatteryLevel.BackColor = Color.White;
 
            tboxMasterLatitude.BackColor = Color.White;
 
            tboxMasterLongitude.BackColor = Color.White;
 
            tboxMasterHDOP.BackColor = Color.White;
 
            tboxMasterVelocity.BackColor = Color.White;
 
            tboxMasterSatellites.BackColor = Color.White;
 
            tboxAtmoAirTemp.BackColor = Color.White;
 
            tboxAtmoLight.BackColor = Color.White;
 
            tboxAtmoHumidity.BackColor = Color.White;
 
            tboxAtmoPressure.BackColor = Color.White;
 
            tboxAtmoAltitude.BackColor = Color.White;
 
            tboxGeigerRads.BackColor = Color.White;
 
            return;
 
        }
 
 
        #endregion
 
 
        #region testing
 
        
 
        //click event on the test button
 
        //currently simulates serial inputs
 
        string testData;
 
        int testIteration = 0;
 
        double testLat = 39.751248, testLng = -83.809848, testVelocity = 5.8, testAltitude = 100, testPressure = 700, testHumidity = 38;
 
        private void btnTest_Click(object sender, EventArgs e)
0 comments (0 inline, 0 general)