diff --git a/SourceCode/GPS/AgOpenGPS.csproj b/SourceCode/GPS/AgOpenGPS.csproj index ade4c7e17..b69ebe437 100644 --- a/SourceCode/GPS/AgOpenGPS.csproj +++ b/SourceCode/GPS/AgOpenGPS.csproj @@ -134,12 +134,6 @@ - - Form - - - FormABPick.cs - Form @@ -389,9 +383,6 @@ True True - - FormABPick.cs - FormNumeric.cs @@ -559,6 +550,19 @@ + + + + + + + + + + + + Always + Always @@ -718,9 +722,7 @@ - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - 25 - - \ No newline at end of file diff --git a/SourceCode/GPS/Forms/FormFieldDir.cs b/SourceCode/GPS/Forms/FormFieldDir.cs index 9a9321396..34b914c58 100644 --- a/SourceCode/GPS/Forms/FormFieldDir.cs +++ b/SourceCode/GPS/Forms/FormFieldDir.cs @@ -191,8 +191,8 @@ private void btnSave_Click(object sender, EventArgs e) mf.FileCreateContour(); mf.FileCreateElevation(); mf.FileSaveFlags(); - mf.FileSaveABLine(); - mf.FileSaveCurveLine(); + //mf.FileSaveABLine(); + //mf.FileSaveCurveLine(); //mf.FileSaveHeadland(); } } diff --git a/SourceCode/GPS/Forms/FormGPS.Designer.cs b/SourceCode/GPS/Forms/FormGPS.Designer.cs index a4c6fd56d..e9f3d9499 100644 --- a/SourceCode/GPS/Forms/FormGPS.Designer.cs +++ b/SourceCode/GPS/Forms/FormGPS.Designer.cs @@ -35,6 +35,7 @@ private void InitializeComponent() this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); this.googleEarthOpenGLContextMenu = new System.Windows.Forms.ToolStripMenuItem(); this.txtDistanceOffABLine = new System.Windows.Forms.TextBox(); + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); this.menustripLanguage = new System.Windows.Forms.ToolStripMenuItem(); @@ -76,7 +77,6 @@ private void InitializeComponent() this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); this.simulatorOnToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); - this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.tmrWatchdog = new System.Windows.Forms.Timer(this.components); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.toolStripBatman = new System.Windows.Forms.ToolStripDropDownButton(); @@ -152,8 +152,9 @@ private void InitializeComponent() this.btnFileExplorer = new System.Windows.Forms.Button(); this.btnPerimeter = new System.Windows.Forms.Button(); this.DataPage = new System.Windows.Forms.TabPage(); + this.label17 = new System.Windows.Forms.Label(); + this.lblMoveDistance = new System.Windows.Forms.Label(); this.lblTimeRemaining = new System.Windows.Forms.Label(); - this.btnTinyAutoSteerConfig = new System.Windows.Forms.Button(); this.pbarFieldAreaRemainPercent = new System.Windows.Forms.ProgressBar(); this.label13 = new System.Windows.Forms.Label(); this.label12 = new System.Windows.Forms.Label(); @@ -189,12 +190,14 @@ private void InitializeComponent() this.label10 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); - this.btnGPSData = new System.Windows.Forms.Button(); this.lblPercentRemaining = new System.Windows.Forms.Label(); + this.btnTinyAutoSteerConfig = new System.Windows.Forms.Button(); + this.btnGPSData = new System.Windows.Forms.Button(); this.cboxpRowWidth = new System.Windows.Forms.ComboBox(); this.oglZoom = new OpenTK.GLControl(); - this.lblFixQuality = new System.Windows.Forms.Label(); this.panelBatman = new System.Windows.Forms.Panel(); + this.label11 = new System.Windows.Forms.Label(); + this.lblMoveDistanceBatman = new System.Windows.Forms.Label(); this.label26 = new System.Windows.Forms.Label(); this.pbarUDPSmall = new System.Windows.Forms.ProgressBar(); this.pbarSteerSmall = new System.Windows.Forms.ProgressBar(); @@ -246,8 +249,8 @@ private void InitializeComponent() this.oglMain = new OpenTK.GLControl(); this.oglBack = new OpenTK.GLControl(); this.lblHz = new System.Windows.Forms.Label(); + this.btnCycleLines = new System.Windows.Forms.Button(); this.btnMakeLinesFromBoundary = new System.Windows.Forms.Button(); - this.btnZoomExtents = new System.Windows.Forms.Button(); this.btnZoomIn = new ProXoft.WinForms.RepeatButton(); this.btnZoomOut = new ProXoft.WinForms.RepeatButton(); this.btnSwapDirection = new System.Windows.Forms.Button(); @@ -323,7 +326,7 @@ private void InitializeComponent() this.txtDistanceOffABLine.BorderStyle = System.Windows.Forms.BorderStyle.None; this.txtDistanceOffABLine.Font = new System.Drawing.Font("Tahoma", 21.75F); this.txtDistanceOffABLine.ForeColor = System.Drawing.Color.Green; - this.txtDistanceOffABLine.Location = new System.Drawing.Point(579, 3); + this.txtDistanceOffABLine.Location = new System.Drawing.Point(616, 3); this.txtDistanceOffABLine.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4); this.txtDistanceOffABLine.Name = "txtDistanceOffABLine"; this.txtDistanceOffABLine.ReadOnly = true; @@ -332,6 +335,21 @@ private void InitializeComponent() this.txtDistanceOffABLine.Text = "00000"; this.txtDistanceOffABLine.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // + // menuStrip1 + // + this.menuStrip1.AutoSize = false; + this.menuStrip1.BackColor = System.Drawing.SystemColors.ScrollBar; + this.menuStrip1.Font = new System.Drawing.Font("Tahoma", 22F); + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fileToolStripMenuItem, + this.settingsToolStripMenuItem}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Padding = new System.Windows.Forms.Padding(0); + this.menuStrip1.Size = new System.Drawing.Size(1091, 40); + this.menuStrip1.TabIndex = 49; + this.menuStrip1.Text = "menuStrip1"; + // // fileToolStripMenuItem // this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -348,10 +366,11 @@ private void InitializeComponent() this.fieldToolStripMenuItem, this.aboutToolStripMenuItem, this.shortcutKeysToolStripMenuItem}); + this.fileToolStripMenuItem.Image = global::AgOpenGPS.Properties.Resources.fileMenu; + this.fileToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.fileToolStripMenuItem.Size = new System.Drawing.Size(69, 40); - this.fileToolStripMenuItem.Text = "File"; + this.fileToolStripMenuItem.Size = new System.Drawing.Size(108, 40); // // toolStripSeparator9 // @@ -516,10 +535,11 @@ private void InitializeComponent() this.toolStripSeparator6, this.simulatorOnToolStripMenuItem, this.toolStripSeparator7}); + this.settingsToolStripMenuItem.Image = global::AgOpenGPS.Properties.Resources.displayMenu; + this.settingsToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; this.settingsToolStripMenuItem.Padding = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.settingsToolStripMenuItem.Size = new System.Drawing.Size(118, 40); - this.settingsToolStripMenuItem.Text = "Display"; + this.settingsToolStripMenuItem.Size = new System.Drawing.Size(108, 40); // // toolStripSeparator1 // @@ -664,21 +684,6 @@ private void InitializeComponent() this.toolStripSeparator7.Name = "toolStripSeparator7"; this.toolStripSeparator7.Size = new System.Drawing.Size(260, 6); // - // menuStrip1 - // - this.menuStrip1.AutoSize = false; - this.menuStrip1.BackColor = System.Drawing.SystemColors.ScrollBar; - this.menuStrip1.Font = new System.Drawing.Font("Tahoma", 22F); - this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.fileToolStripMenuItem, - this.settingsToolStripMenuItem}); - this.menuStrip1.Location = new System.Drawing.Point(0, 0); - this.menuStrip1.Name = "menuStrip1"; - this.menuStrip1.Padding = new System.Windows.Forms.Padding(0); - this.menuStrip1.Size = new System.Drawing.Size(1017, 40); - this.menuStrip1.TabIndex = 49; - this.menuStrip1.Text = "menuStrip1"; - // // tmrWatchdog // this.tmrWatchdog.Interval = 15; @@ -703,7 +708,7 @@ private void InitializeComponent() this.statusStrip1.Location = new System.Drawing.Point(0, 645); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; - this.statusStrip1.Size = new System.Drawing.Size(1017, 56); + this.statusStrip1.Size = new System.Drawing.Size(1091, 56); this.statusStrip1.TabIndex = 95; this.statusStrip1.Text = "statusStrip1"; // @@ -848,7 +853,7 @@ private void InitializeComponent() this.stripEqWidth.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.stripEqWidth.Margin = new System.Windows.Forms.Padding(0); this.stripEqWidth.Name = "stripEqWidth"; - this.stripEqWidth.Size = new System.Drawing.Size(331, 56); + this.stripEqWidth.Size = new System.Drawing.Size(270, 56); this.stripEqWidth.Spring = true; this.stripEqWidth.Text = "Width"; // @@ -1078,7 +1083,7 @@ private void InitializeComponent() this.toolstripField.Image = global::AgOpenGPS.Properties.Resources.JobActive; this.toolstripField.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.toolstripField.Name = "toolstripField"; - this.toolstripField.Size = new System.Drawing.Size(300, 70); + this.toolstripField.Size = new System.Drawing.Size(316, 86); this.toolstripField.Text = "Field"; this.toolstripField.Click += new System.EventHandler(this.toolstripField_Click); // @@ -1089,7 +1094,7 @@ private void InitializeComponent() this.toolstripBoundary.Image = global::AgOpenGPS.Properties.Resources.BoundaryMenu; this.toolstripBoundary.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.toolstripBoundary.Name = "toolstripBoundary"; - this.toolstripBoundary.Size = new System.Drawing.Size(300, 70); + this.toolstripBoundary.Size = new System.Drawing.Size(316, 86); this.toolstripBoundary.Text = "Boundary"; this.toolstripBoundary.Click += new System.EventHandler(this.toolstripBoundary_Click); // @@ -1100,17 +1105,17 @@ private void InitializeComponent() this.toolstripResetTrip.Image = global::AgOpenGPS.Properties.Resources.Cancel64; this.toolstripResetTrip.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.toolstripResetTrip.Name = "toolstripResetTrip"; - this.toolstripResetTrip.Size = new System.Drawing.Size(300, 70); + this.toolstripResetTrip.Size = new System.Drawing.Size(316, 86); this.toolstripResetTrip.Text = ">0< Trip"; this.toolstripResetTrip.Click += new System.EventHandler(this.toolstripResetTrip_Click_1); // // toolstripExit // this.toolstripExit.Font = new System.Drawing.Font("Tahoma", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.toolstripExit.Image = global::AgOpenGPS.Properties.Resources.Start64; + this.toolstripExit.Image = global::AgOpenGPS.Properties.Resources.SwitchOff; this.toolstripExit.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.toolstripExit.Name = "toolstripExit"; - this.toolstripExit.Size = new System.Drawing.Size(300, 70); + this.toolstripExit.Size = new System.Drawing.Size(316, 86); this.toolstripExit.Text = "Exit"; this.toolstripExit.Click += new System.EventHandler(this.ToolstripExit_Click); // @@ -1154,7 +1159,7 @@ private void InitializeComponent() this.lblSpeed.BackColor = System.Drawing.Color.Transparent; this.lblSpeed.Font = new System.Drawing.Font("Tahoma", 20F, System.Drawing.FontStyle.Bold); this.lblSpeed.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblSpeed.Location = new System.Drawing.Point(777, 5); + this.lblSpeed.Location = new System.Drawing.Point(851, 5); this.lblSpeed.Name = "lblSpeed"; this.lblSpeed.Size = new System.Drawing.Size(87, 31); this.lblSpeed.TabIndex = 116; @@ -1301,7 +1306,7 @@ private void InitializeComponent() this.lblSpeedUnits.BackColor = System.Drawing.SystemColors.ScrollBar; this.lblSpeedUnits.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold); this.lblSpeedUnits.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblSpeedUnits.Location = new System.Drawing.Point(863, 13); + this.lblSpeedUnits.Location = new System.Drawing.Point(937, 13); this.lblSpeedUnits.Name = "lblSpeedUnits"; this.lblSpeedUnits.Size = new System.Drawing.Size(38, 17); this.lblSpeedUnits.TabIndex = 139; @@ -1314,7 +1319,7 @@ private void InitializeComponent() this.lblHeading.BackColor = System.Drawing.Color.Transparent; this.lblHeading.Font = new System.Drawing.Font("Tahoma", 20.25F, System.Drawing.FontStyle.Bold); this.lblHeading.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblHeading.Location = new System.Drawing.Point(906, 5); + this.lblHeading.Location = new System.Drawing.Point(980, 5); this.lblHeading.Name = "lblHeading"; this.lblHeading.Size = new System.Drawing.Size(109, 31); this.lblHeading.TabIndex = 117; @@ -1391,10 +1396,10 @@ private void InitializeComponent() this.tabControl1.Font = new System.Drawing.Font("Tahoma", 20.25F); this.tabControl1.ImageList = this.imageList1; this.tabControl1.ItemSize = new System.Drawing.Size(110, 68); - this.tabControl1.Location = new System.Drawing.Point(-3, 41); + this.tabControl1.Location = new System.Drawing.Point(-3, 47); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(340, 601); + this.tabControl1.Size = new System.Drawing.Size(340, 595); this.tabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; this.tabControl1.TabIndex = 150; // @@ -1409,7 +1414,7 @@ private void InitializeComponent() this.autoPage4.ImageIndex = 3; this.autoPage4.Location = new System.Drawing.Point(4, 72); this.autoPage4.Name = "autoPage4"; - this.autoPage4.Size = new System.Drawing.Size(332, 525); + this.autoPage4.Size = new System.Drawing.Size(332, 519); this.autoPage4.TabIndex = 4; // // nudElevation @@ -1518,7 +1523,7 @@ private void InitializeComponent() this.configPage1.Location = new System.Drawing.Point(4, 72); this.configPage1.Name = "configPage1"; this.configPage1.Padding = new System.Windows.Forms.Padding(3); - this.configPage1.Size = new System.Drawing.Size(332, 525); + this.configPage1.Size = new System.Drawing.Size(332, 519); this.configPage1.TabIndex = 0; // // btnFixOffset @@ -1626,8 +1631,9 @@ private void InitializeComponent() // DataPage // this.DataPage.BackColor = System.Drawing.SystemColors.ControlLight; + this.DataPage.Controls.Add(this.label17); + this.DataPage.Controls.Add(this.lblMoveDistance); this.DataPage.Controls.Add(this.lblTimeRemaining); - this.DataPage.Controls.Add(this.btnTinyAutoSteerConfig); this.DataPage.Controls.Add(this.pbarFieldAreaRemainPercent); this.DataPage.Controls.Add(this.label13); this.DataPage.Controls.Add(this.label12); @@ -1667,49 +1673,55 @@ private void InitializeComponent() this.DataPage.Controls.Add(this.label8); this.DataPage.Controls.Add(this.lblEasting); this.DataPage.Controls.Add(this.lblNorthing); - this.DataPage.Controls.Add(this.btnGPSData); this.DataPage.Controls.Add(this.lblPercentRemaining); + this.DataPage.Controls.Add(this.btnTinyAutoSteerConfig); + this.DataPage.Controls.Add(this.btnGPSData); this.DataPage.Cursor = System.Windows.Forms.Cursors.Arrow; this.DataPage.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.DataPage.ImageIndex = 1; this.DataPage.Location = new System.Drawing.Point(4, 72); this.DataPage.Name = "DataPage"; - this.DataPage.Size = new System.Drawing.Size(332, 525); + this.DataPage.Size = new System.Drawing.Size(332, 519); this.DataPage.TabIndex = 3; // + // label17 + // + this.label17.AutoSize = true; + this.label17.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold); + this.label17.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.label17.Location = new System.Drawing.Point(180, 322); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(32, 19); + this.label17.TabIndex = 317; + this.label17.Text = "cm"; + // + // lblMoveDistance + // + this.lblMoveDistance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblMoveDistance.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.lblMoveDistance.Location = new System.Drawing.Point(106, 319); + this.lblMoveDistance.Name = "lblMoveDistance"; + this.lblMoveDistance.Size = new System.Drawing.Size(74, 23); + this.lblMoveDistance.TabIndex = 314; + this.lblMoveDistance.Text = "0.0"; + this.lblMoveDistance.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // // lblTimeRemaining // this.lblTimeRemaining.AutoSize = true; this.lblTimeRemaining.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold); this.lblTimeRemaining.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblTimeRemaining.Location = new System.Drawing.Point(4, 426); + this.lblTimeRemaining.Location = new System.Drawing.Point(4, 417); this.lblTimeRemaining.Name = "lblTimeRemaining"; this.lblTimeRemaining.Size = new System.Drawing.Size(106, 19); this.lblTimeRemaining.TabIndex = 313; this.lblTimeRemaining.Text = "13.56 Hours"; // - // btnTinyAutoSteerConfig - // - this.btnTinyAutoSteerConfig.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnTinyAutoSteerConfig.BackColor = System.Drawing.Color.Lavender; - this.btnTinyAutoSteerConfig.BackgroundImage = global::AgOpenGPS.Properties.Resources.AutoSteerConf; - this.btnTinyAutoSteerConfig.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.btnTinyAutoSteerConfig.FlatAppearance.BorderColor = System.Drawing.SystemColors.HotTrack; - this.btnTinyAutoSteerConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnTinyAutoSteerConfig.Font = new System.Drawing.Font("Tahoma", 14.25F); - this.btnTinyAutoSteerConfig.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnTinyAutoSteerConfig.Location = new System.Drawing.Point(4, 461); - this.btnTinyAutoSteerConfig.Name = "btnTinyAutoSteerConfig"; - this.btnTinyAutoSteerConfig.Size = new System.Drawing.Size(70, 60); - this.btnTinyAutoSteerConfig.TabIndex = 310; - this.btnTinyAutoSteerConfig.UseVisualStyleBackColor = false; - this.btnTinyAutoSteerConfig.Click += new System.EventHandler(this.BtnTinyAutoSteerConfig_Click); - // // pbarFieldAreaRemainPercent // this.pbarFieldAreaRemainPercent.BackColor = System.Drawing.Color.Maroon; this.pbarFieldAreaRemainPercent.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.pbarFieldAreaRemainPercent.Location = new System.Drawing.Point(6, 447); + this.pbarFieldAreaRemainPercent.Location = new System.Drawing.Point(6, 438); this.pbarFieldAreaRemainPercent.Name = "pbarFieldAreaRemainPercent"; this.pbarFieldAreaRemainPercent.Size = new System.Drawing.Size(322, 5); this.pbarFieldAreaRemainPercent.Step = 1; @@ -1721,7 +1733,7 @@ private void InitializeComponent() this.label13.AutoSize = true; this.label13.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label13.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.label13.Location = new System.Drawing.Point(150, 483); + this.label13.Location = new System.Drawing.Point(150, 474); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(34, 13); this.label13.TabIndex = 309; @@ -1732,7 +1744,7 @@ private void InitializeComponent() this.label12.AutoSize = true; this.label12.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label12.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.label12.Location = new System.Drawing.Point(157, 505); + this.label12.Location = new System.Drawing.Point(157, 496); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(27, 13); this.label12.TabIndex = 308; @@ -1743,7 +1755,7 @@ private void InitializeComponent() this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.label7.Location = new System.Drawing.Point(151, 460); + this.label7.Location = new System.Drawing.Point(151, 451); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(33, 13); this.label7.TabIndex = 307; @@ -1754,7 +1766,7 @@ private void InitializeComponent() this.pbarUDPComm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.pbarUDPComm.BackColor = System.Drawing.Color.Maroon; this.pbarUDPComm.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.pbarUDPComm.Location = new System.Drawing.Point(187, 506); + this.pbarUDPComm.Location = new System.Drawing.Point(187, 491); this.pbarUDPComm.Name = "pbarUDPComm"; this.pbarUDPComm.Size = new System.Drawing.Size(60, 10); this.pbarUDPComm.TabIndex = 306; @@ -1764,7 +1776,7 @@ private void InitializeComponent() this.pbarAutoSteerComm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.pbarAutoSteerComm.BackColor = System.Drawing.Color.Maroon; this.pbarAutoSteerComm.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.pbarAutoSteerComm.Location = new System.Drawing.Point(187, 462); + this.pbarAutoSteerComm.Location = new System.Drawing.Point(187, 447); this.pbarAutoSteerComm.Name = "pbarAutoSteerComm"; this.pbarAutoSteerComm.Size = new System.Drawing.Size(60, 10); this.pbarAutoSteerComm.TabIndex = 305; @@ -1774,7 +1786,7 @@ private void InitializeComponent() this.pbarRelayComm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.pbarRelayComm.BackColor = System.Drawing.Color.Maroon; this.pbarRelayComm.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.pbarRelayComm.Location = new System.Drawing.Point(187, 484); + this.pbarRelayComm.Location = new System.Drawing.Point(187, 469); this.pbarRelayComm.Name = "pbarRelayComm"; this.pbarRelayComm.Size = new System.Drawing.Size(60, 10); this.pbarRelayComm.TabIndex = 304; @@ -1793,7 +1805,7 @@ private void InitializeComponent() // this.lblActualSteerAngle2.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Bold); this.lblActualSteerAngle2.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblActualSteerAngle2.Location = new System.Drawing.Point(76, 494); + this.lblActualSteerAngle2.Location = new System.Drawing.Point(76, 485); this.lblActualSteerAngle2.Margin = new System.Windows.Forms.Padding(0); this.lblActualSteerAngle2.Name = "lblActualSteerAngle2"; this.lblActualSteerAngle2.Size = new System.Drawing.Size(69, 23); @@ -1805,7 +1817,7 @@ private void InitializeComponent() // this.lblSetpointSteerAngle2.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Bold); this.lblSetpointSteerAngle2.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblSetpointSteerAngle2.Location = new System.Drawing.Point(76, 463); + this.lblSetpointSteerAngle2.Location = new System.Drawing.Point(76, 454); this.lblSetpointSteerAngle2.Margin = new System.Windows.Forms.Padding(0); this.lblSetpointSteerAngle2.Name = "lblSetpointSteerAngle2"; this.lblSetpointSteerAngle2.Size = new System.Drawing.Size(69, 23); @@ -2114,6 +2126,34 @@ private void InitializeComponent() this.label8.TabIndex = 2; this.label8.Text = "GPS:"; // + // lblPercentRemaining + // + this.lblPercentRemaining.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold); + this.lblPercentRemaining.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.lblPercentRemaining.Location = new System.Drawing.Point(240, 417); + this.lblPercentRemaining.Name = "lblPercentRemaining"; + this.lblPercentRemaining.Size = new System.Drawing.Size(83, 19); + this.lblPercentRemaining.TabIndex = 312; + this.lblPercentRemaining.Text = "55.6885"; + this.lblPercentRemaining.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // btnTinyAutoSteerConfig + // + this.btnTinyAutoSteerConfig.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnTinyAutoSteerConfig.BackColor = System.Drawing.Color.Lavender; + this.btnTinyAutoSteerConfig.BackgroundImage = global::AgOpenGPS.Properties.Resources.AutoSteerConf; + this.btnTinyAutoSteerConfig.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.btnTinyAutoSteerConfig.FlatAppearance.BorderColor = System.Drawing.SystemColors.HotTrack; + this.btnTinyAutoSteerConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnTinyAutoSteerConfig.Font = new System.Drawing.Font("Tahoma", 14.25F); + this.btnTinyAutoSteerConfig.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.btnTinyAutoSteerConfig.Location = new System.Drawing.Point(4, 452); + this.btnTinyAutoSteerConfig.Name = "btnTinyAutoSteerConfig"; + this.btnTinyAutoSteerConfig.Size = new System.Drawing.Size(70, 60); + this.btnTinyAutoSteerConfig.TabIndex = 310; + this.btnTinyAutoSteerConfig.UseVisualStyleBackColor = false; + this.btnTinyAutoSteerConfig.Click += new System.EventHandler(this.BtnTinyAutoSteerConfig_Click); + // // btnGPSData // this.btnGPSData.BackColor = System.Drawing.Color.Lavender; @@ -2124,7 +2164,7 @@ private void InitializeComponent() this.btnGPSData.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnGPSData.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnGPSData.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnGPSData.Location = new System.Drawing.Point(256, 459); + this.btnGPSData.Location = new System.Drawing.Point(256, 450); this.btnGPSData.Name = "btnGPSData"; this.btnGPSData.Size = new System.Drawing.Size(72, 64); this.btnGPSData.TabIndex = 138; @@ -2132,17 +2172,6 @@ private void InitializeComponent() this.btnGPSData.UseVisualStyleBackColor = false; this.btnGPSData.Click += new System.EventHandler(this.btnGPSData_Click); // - // lblPercentRemaining - // - this.lblPercentRemaining.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold); - this.lblPercentRemaining.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblPercentRemaining.Location = new System.Drawing.Point(240, 426); - this.lblPercentRemaining.Name = "lblPercentRemaining"; - this.lblPercentRemaining.Size = new System.Drawing.Size(83, 19); - this.lblPercentRemaining.TabIndex = 312; - this.lblPercentRemaining.Text = "55.6885"; - this.lblPercentRemaining.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // // cboxpRowWidth // this.cboxpRowWidth.BackColor = System.Drawing.Color.Lavender; @@ -2172,7 +2201,7 @@ private void InitializeComponent() // oglZoom // this.oglZoom.BackColor = System.Drawing.Color.Black; - this.oglZoom.Location = new System.Drawing.Point(0, 2); + this.oglZoom.Location = new System.Drawing.Point(0, 1); this.oglZoom.Margin = new System.Windows.Forms.Padding(0); this.oglZoom.Name = "oglZoom"; this.oglZoom.Size = new System.Drawing.Size(240, 240); @@ -2182,23 +2211,13 @@ private void InitializeComponent() this.oglZoom.Paint += new System.Windows.Forms.PaintEventHandler(this.oglZoom_Paint); this.oglZoom.Resize += new System.EventHandler(this.oglZoom_Resize); // - // lblFixQuality - // - this.lblFixQuality.AutoSize = true; - this.lblFixQuality.BackColor = System.Drawing.Color.Transparent; - this.lblFixQuality.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Bold); - this.lblFixQuality.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblFixQuality.Location = new System.Drawing.Point(365, 9); - this.lblFixQuality.Name = "lblFixQuality"; - this.lblFixQuality.Size = new System.Drawing.Size(53, 25); - this.lblFixQuality.TabIndex = 181; - this.lblFixQuality.Text = "PPS"; - // // panelBatman // this.panelBatman.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.panelBatman.BackColor = System.Drawing.SystemColors.ScrollBar; + this.panelBatman.Controls.Add(this.label11); + this.panelBatman.Controls.Add(this.lblMoveDistanceBatman); this.panelBatman.Controls.Add(this.label26); this.panelBatman.Controls.Add(this.pbarUDPSmall); this.panelBatman.Controls.Add(this.pbarSteerSmall); @@ -2233,12 +2252,34 @@ private void InitializeComponent() this.panelBatman.Controls.Add(this.label14); this.panelBatman.Controls.Add(this.label20); this.panelBatman.Controls.Add(this.label15); - this.panelBatman.Location = new System.Drawing.Point(0, 40); + this.panelBatman.Location = new System.Drawing.Point(0, 46); this.panelBatman.Name = "panelBatman"; - this.panelBatman.Size = new System.Drawing.Size(241, 600); + this.panelBatman.Size = new System.Drawing.Size(241, 592); this.panelBatman.TabIndex = 182; this.panelBatman.Visible = false; // + // label11 + // + this.label11.AutoSize = true; + this.label11.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold); + this.label11.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.label11.Location = new System.Drawing.Point(132, 428); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(32, 19); + this.label11.TabIndex = 316; + this.label11.Text = "cm"; + // + // lblMoveDistanceBatman + // + this.lblMoveDistanceBatman.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblMoveDistanceBatman.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.lblMoveDistanceBatman.Location = new System.Drawing.Point(66, 425); + this.lblMoveDistanceBatman.Name = "lblMoveDistanceBatman"; + this.lblMoveDistanceBatman.Size = new System.Drawing.Size(64, 23); + this.lblMoveDistanceBatman.TabIndex = 315; + this.lblMoveDistanceBatman.Text = "0.0"; + this.lblMoveDistanceBatman.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // // label26 // this.label26.AutoSize = true; @@ -2255,7 +2296,7 @@ private void InitializeComponent() this.pbarUDPSmall.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.pbarUDPSmall.BackColor = System.Drawing.Color.Maroon; this.pbarUDPSmall.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.pbarUDPSmall.Location = new System.Drawing.Point(22, 523); + this.pbarUDPSmall.Location = new System.Drawing.Point(22, 515); this.pbarUDPSmall.Name = "pbarUDPSmall"; this.pbarUDPSmall.Size = new System.Drawing.Size(60, 10); this.pbarUDPSmall.TabIndex = 308; @@ -2265,7 +2306,7 @@ private void InitializeComponent() this.pbarSteerSmall.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.pbarSteerSmall.BackColor = System.Drawing.Color.Maroon; this.pbarSteerSmall.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.pbarSteerSmall.Location = new System.Drawing.Point(22, 511); + this.pbarSteerSmall.Location = new System.Drawing.Point(22, 503); this.pbarSteerSmall.Name = "pbarSteerSmall"; this.pbarSteerSmall.Size = new System.Drawing.Size(60, 10); this.pbarSteerSmall.TabIndex = 307; @@ -2280,7 +2321,7 @@ private void InitializeComponent() this.btnSmallSnapRight.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSmallSnapRight.Font = new System.Drawing.Font("Tahoma", 14.25F); this.btnSmallSnapRight.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnSmallSnapRight.Location = new System.Drawing.Point(128, 404); + this.btnSmallSnapRight.Location = new System.Drawing.Point(128, 387); this.btnSmallSnapRight.Name = "btnSmallSnapRight"; this.btnSmallSnapRight.Size = new System.Drawing.Size(90, 35); this.btnSmallSnapRight.TabIndex = 278; @@ -2299,7 +2340,7 @@ private void InitializeComponent() this.btnSmallSnapLeft.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSmallSnapLeft.Font = new System.Drawing.Font("Tahoma", 14.25F); this.btnSmallSnapLeft.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnSmallSnapLeft.Location = new System.Drawing.Point(15, 404); + this.btnSmallSnapLeft.Location = new System.Drawing.Point(15, 387); this.btnSmallSnapLeft.Name = "btnSmallSnapLeft"; this.btnSmallSnapLeft.Size = new System.Drawing.Size(91, 35); this.btnSmallSnapLeft.TabIndex = 277; @@ -2318,7 +2359,7 @@ private void InitializeComponent() this.btnSnapRight.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSnapRight.Font = new System.Drawing.Font("Tahoma", 14.25F); this.btnSnapRight.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnSnapRight.Location = new System.Drawing.Point(128, 467); + this.btnSnapRight.Location = new System.Drawing.Point(128, 450); this.btnSnapRight.Name = "btnSnapRight"; this.btnSnapRight.Size = new System.Drawing.Size(90, 35); this.btnSnapRight.TabIndex = 276; @@ -2333,7 +2374,7 @@ private void InitializeComponent() this.lblUturnByte.AutoSize = true; this.lblUturnByte.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold); this.lblUturnByte.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblUturnByte.Location = new System.Drawing.Point(150, 523); + this.lblUturnByte.Location = new System.Drawing.Point(150, 515); this.lblUturnByte.Name = "lblUturnByte"; this.lblUturnByte.Size = new System.Drawing.Size(69, 19); this.lblUturnByte.TabIndex = 272; @@ -2345,7 +2386,7 @@ private void InitializeComponent() this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Tahoma", 12F); this.label6.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.label6.Location = new System.Drawing.Point(94, 523); + this.label6.Location = new System.Drawing.Point(94, 515); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(60, 19); this.label6.TabIndex = 275; @@ -2357,7 +2398,7 @@ private void InitializeComponent() this.lblWatch.AutoSize = true; this.lblWatch.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.lblWatch.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblWatch.Location = new System.Drawing.Point(95, 549); + this.lblWatch.Location = new System.Drawing.Point(95, 541); this.lblWatch.Name = "lblWatch"; this.lblWatch.Size = new System.Drawing.Size(94, 13); this.lblWatch.TabIndex = 274; @@ -2367,7 +2408,7 @@ private void InitializeComponent() // this.btnStartStopNtrip.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnStartStopNtrip.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnStartStopNtrip.Location = new System.Drawing.Point(10, 537); + this.btnStartStopNtrip.Location = new System.Drawing.Point(10, 529); this.btnStartStopNtrip.Name = "btnStartStopNtrip"; this.btnStartStopNtrip.Size = new System.Drawing.Size(75, 33); this.btnStartStopNtrip.TabIndex = 250; @@ -2381,7 +2422,7 @@ private void InitializeComponent() this.lblNTRIPSeconds.AutoSize = true; this.lblNTRIPSeconds.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.lblNTRIPSeconds.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblNTRIPSeconds.Location = new System.Drawing.Point(95, 571); + this.lblNTRIPSeconds.Location = new System.Drawing.Point(95, 563); this.lblNTRIPSeconds.Name = "lblNTRIPSeconds"; this.lblNTRIPSeconds.Size = new System.Drawing.Size(60, 13); this.lblNTRIPSeconds.TabIndex = 273; @@ -2397,7 +2438,7 @@ private void InitializeComponent() this.btnSnapLeft.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSnapLeft.Font = new System.Drawing.Font("Tahoma", 14.25F); this.btnSnapLeft.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnSnapLeft.Location = new System.Drawing.Point(15, 467); + this.btnSnapLeft.Location = new System.Drawing.Point(15, 450); this.btnSnapLeft.Name = "btnSnapLeft"; this.btnSnapLeft.Size = new System.Drawing.Size(91, 35); this.btnSnapLeft.TabIndex = 251; @@ -2412,7 +2453,7 @@ private void InitializeComponent() this.lblNtripBytes.AutoSize = true; this.lblNtripBytes.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.lblNtripBytes.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblNtripBytes.Location = new System.Drawing.Point(7, 572); + this.lblNtripBytes.Location = new System.Drawing.Point(7, 564); this.lblNtripBytes.Name = "lblNtripBytes"; this.lblNtripBytes.Size = new System.Drawing.Size(31, 13); this.lblNtripBytes.TabIndex = 271; @@ -2423,7 +2464,7 @@ private void InitializeComponent() this.pbarNtrip.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.pbarNtrip.BackColor = System.Drawing.Color.Maroon; this.pbarNtrip.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.pbarNtrip.Location = new System.Drawing.Point(7, 589); + this.pbarNtrip.Location = new System.Drawing.Point(7, 581); this.pbarNtrip.Maximum = 256; this.pbarNtrip.Name = "pbarNtrip"; this.pbarNtrip.Size = new System.Drawing.Size(202, 8); @@ -2578,7 +2619,7 @@ private void InitializeComponent() this.label20.AutoSize = true; this.label20.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.label20.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.label20.Location = new System.Drawing.Point(6, 521); + this.label20.Location = new System.Drawing.Point(6, 513); this.label20.Name = "label20"; this.label20.Size = new System.Drawing.Size(15, 13); this.label20.TabIndex = 310; @@ -2590,7 +2631,7 @@ private void InitializeComponent() this.label15.AutoSize = true; this.label15.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.label15.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.label15.Location = new System.Drawing.Point(6, 508); + this.label15.Location = new System.Drawing.Point(6, 500); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(14, 13); this.label15.TabIndex = 309; @@ -2910,7 +2951,7 @@ private void InitializeComponent() this.oglMain.Location = new System.Drawing.Point(338, 41); this.oglMain.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1); this.oglMain.Name = "oglMain"; - this.oglMain.Size = new System.Drawing.Size(596, 601); + this.oglMain.Size = new System.Drawing.Size(669, 601); this.oglMain.TabIndex = 180; this.oglMain.VSync = false; this.oglMain.Load += new System.EventHandler(this.oglMain_Load); @@ -2922,7 +2963,7 @@ private void InitializeComponent() // this.oglBack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.oglBack.BackColor = System.Drawing.Color.Black; - this.oglBack.Location = new System.Drawing.Point(291, 111); + this.oglBack.Location = new System.Drawing.Point(365, 111); this.oglBack.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1); this.oglBack.Name = "oglBack"; this.oglBack.Size = new System.Drawing.Size(500, 500); @@ -2936,13 +2977,35 @@ private void InitializeComponent() // this.lblHz.AutoSize = true; this.lblHz.BackColor = System.Drawing.Color.Transparent; - this.lblHz.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Bold); + this.lblHz.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblHz.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.lblHz.Location = new System.Drawing.Point(273, 9); + this.lblHz.Location = new System.Drawing.Point(228, 0); this.lblHz.Name = "lblHz"; - this.lblHz.Size = new System.Drawing.Size(90, 25); + this.lblHz.Size = new System.Drawing.Size(70, 38); this.lblHz.TabIndex = 249; - this.lblHz.Text = "5 Hz 32"; + this.lblHz.Text = "5 Hz 32\r\nPPS"; + // + // btnCycleLines + // + this.btnCycleLines.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnCycleLines.BackColor = System.Drawing.Color.Lavender; + this.btnCycleLines.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnCycleLines.Enabled = false; + this.btnCycleLines.FlatAppearance.BorderColor = System.Drawing.Color.RoyalBlue; + this.btnCycleLines.FlatAppearance.BorderSize = 3; + this.btnCycleLines.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnCycleLines.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold); + this.btnCycleLines.Image = global::AgOpenGPS.Properties.Resources.ABLineCycle; + this.btnCycleLines.ImageAlign = System.Drawing.ContentAlignment.TopCenter; + this.btnCycleLines.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.btnCycleLines.Location = new System.Drawing.Point(921, 201); + this.btnCycleLines.Name = "btnCycleLines"; + this.btnCycleLines.Size = new System.Drawing.Size(80, 80); + this.btnCycleLines.TabIndex = 251; + this.btnCycleLines.Text = "-"; + this.btnCycleLines.TextAlign = System.Drawing.ContentAlignment.BottomCenter; + this.btnCycleLines.UseVisualStyleBackColor = false; + this.btnCycleLines.Click += new System.EventHandler(this.btnCycleLines_Click); // // btnMakeLinesFromBoundary // @@ -2956,7 +3019,7 @@ private void InitializeComponent() this.btnMakeLinesFromBoundary.Font = new System.Drawing.Font("Tahoma", 12F); this.btnMakeLinesFromBoundary.Image = global::AgOpenGPS.Properties.Resources.PointStart; this.btnMakeLinesFromBoundary.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnMakeLinesFromBoundary.Location = new System.Drawing.Point(847, 186); + this.btnMakeLinesFromBoundary.Location = new System.Drawing.Point(921, 94); this.btnMakeLinesFromBoundary.Name = "btnMakeLinesFromBoundary"; this.btnMakeLinesFromBoundary.Size = new System.Drawing.Size(80, 80); this.btnMakeLinesFromBoundary.TabIndex = 250; @@ -2964,24 +3027,6 @@ private void InitializeComponent() this.btnMakeLinesFromBoundary.UseVisualStyleBackColor = false; this.btnMakeLinesFromBoundary.Click += new System.EventHandler(this.BtnMakeLinesFromBoundary_Click); // - // btnZoomExtents - // - this.btnZoomExtents.BackColor = System.Drawing.Color.Lavender; - this.btnZoomExtents.ContextMenuStrip = this.contextMenuStripFlag; - this.btnZoomExtents.FlatAppearance.BorderColor = System.Drawing.SystemColors.HotTrack; - this.btnZoomExtents.FlatAppearance.BorderSize = 2; - this.btnZoomExtents.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnZoomExtents.Font = new System.Drawing.Font("Tahoma", 14.25F); - this.btnZoomExtents.Image = global::AgOpenGPS.Properties.Resources.Extents; - this.btnZoomExtents.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnZoomExtents.Location = new System.Drawing.Point(339, 476); - this.btnZoomExtents.Name = "btnZoomExtents"; - this.btnZoomExtents.Size = new System.Drawing.Size(64, 64); - this.btnZoomExtents.TabIndex = 248; - this.btnZoomExtents.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.btnZoomExtents.UseVisualStyleBackColor = false; - this.btnZoomExtents.Click += new System.EventHandler(this.btnZoomExtents_Click); - // // btnZoomIn // this.btnZoomIn.BackColor = System.Drawing.Color.Lavender; @@ -3018,7 +3063,7 @@ private void InitializeComponent() // // btnSwapDirection // - this.btnSwapDirection.BackColor = System.Drawing.Color.LightSkyBlue; + this.btnSwapDirection.BackColor = System.Drawing.Color.Indigo; this.btnSwapDirection.ContextMenuStrip = this.contextMenuStripFlag; this.btnSwapDirection.FlatAppearance.BorderColor = System.Drawing.SystemColors.HotTrack; this.btnSwapDirection.FlatAppearance.BorderSize = 2; @@ -3026,10 +3071,10 @@ private void InitializeComponent() this.btnSwapDirection.Font = new System.Drawing.Font("Tahoma", 14.25F); this.btnSwapDirection.Image = global::AgOpenGPS.Properties.Resources.YouTurnReverse; this.btnSwapDirection.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnSwapDirection.Location = new System.Drawing.Point(565, 94); + this.btnSwapDirection.Location = new System.Drawing.Point(565, 111); this.btnSwapDirection.Margin = new System.Windows.Forms.Padding(0); this.btnSwapDirection.Name = "btnSwapDirection"; - this.btnSwapDirection.Size = new System.Drawing.Size(96, 64); + this.btnSwapDirection.Size = new System.Drawing.Size(79, 53); this.btnSwapDirection.TabIndex = 179; this.btnSwapDirection.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnSwapDirection.UseVisualStyleBackColor = false; @@ -3047,7 +3092,7 @@ private void InitializeComponent() this.btnContourPriority.Font = new System.Drawing.Font("Tahoma", 14.25F); this.btnContourPriority.Image = global::AgOpenGPS.Properties.Resources.Snap2; this.btnContourPriority.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnContourPriority.Location = new System.Drawing.Point(935, 43); + this.btnContourPriority.Location = new System.Drawing.Point(1009, 43); this.btnContourPriority.Name = "btnContourPriority"; this.btnContourPriority.Size = new System.Drawing.Size(80, 80); this.btnContourPriority.TabIndex = 178; @@ -3064,10 +3109,10 @@ private void InitializeComponent() this.btnCurve.FlatAppearance.BorderColor = System.Drawing.Color.RoyalBlue; this.btnCurve.FlatAppearance.BorderSize = 3; this.btnCurve.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnCurve.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnCurve.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnCurve.Image = global::AgOpenGPS.Properties.Resources.CurveOff; this.btnCurve.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnCurve.Location = new System.Drawing.Point(935, 138); + this.btnCurve.Location = new System.Drawing.Point(1009, 141); this.btnCurve.Name = "btnCurve"; this.btnCurve.Size = new System.Drawing.Size(80, 80); this.btnCurve.TabIndex = 173; @@ -3080,13 +3125,13 @@ private void InitializeComponent() this.btnLeftYouTurn.BackColor = System.Drawing.Color.LightSteelBlue; this.btnLeftYouTurn.ContextMenuStrip = this.contextMenuStripFlag; this.btnLeftYouTurn.Enabled = false; - this.btnLeftYouTurn.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold); + this.btnLeftYouTurn.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnLeftYouTurn.Image = global::AgOpenGPS.Properties.Resources.ArrowLeft; this.btnLeftYouTurn.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnLeftYouTurn.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnLeftYouTurn.Location = new System.Drawing.Point(479, 113); + this.btnLeftYouTurn.Location = new System.Drawing.Point(479, 138); this.btnLeftYouTurn.Name = "btnLeftYouTurn"; - this.btnLeftYouTurn.Size = new System.Drawing.Size(94, 86); + this.btnLeftYouTurn.Size = new System.Drawing.Size(80, 65); this.btnLeftYouTurn.TabIndex = 143; this.btnLeftYouTurn.Text = "8888 ft"; this.btnLeftYouTurn.TextAlign = System.Drawing.ContentAlignment.BottomCenter; @@ -3104,9 +3149,9 @@ private void InitializeComponent() this.btnEnableAutoYouTurn.Font = new System.Drawing.Font("Tahoma", 14.25F); this.btnEnableAutoYouTurn.Image = global::AgOpenGPS.Properties.Resources.YouTurnNo; this.btnEnableAutoYouTurn.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnEnableAutoYouTurn.Location = new System.Drawing.Point(847, 351); + this.btnEnableAutoYouTurn.Location = new System.Drawing.Point(921, 366); this.btnEnableAutoYouTurn.Name = "btnEnableAutoYouTurn"; - this.btnEnableAutoYouTurn.Size = new System.Drawing.Size(80, 100); + this.btnEnableAutoYouTurn.Size = new System.Drawing.Size(80, 80); this.btnEnableAutoYouTurn.TabIndex = 132; this.btnEnableAutoYouTurn.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnEnableAutoYouTurn.UseVisualStyleBackColor = false; @@ -3124,7 +3169,7 @@ private void InitializeComponent() this.btnSectionOffAutoOn.Font = new System.Drawing.Font("Tahoma", 15.75F); this.btnSectionOffAutoOn.Image = global::AgOpenGPS.Properties.Resources.SectionMasterOff; this.btnSectionOffAutoOn.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnSectionOffAutoOn.Location = new System.Drawing.Point(935, 521); + this.btnSectionOffAutoOn.Location = new System.Drawing.Point(1009, 533); this.btnSectionOffAutoOn.Margin = new System.Windows.Forms.Padding(0); this.btnSectionOffAutoOn.Name = "btnSectionOffAutoOn"; this.btnSectionOffAutoOn.Size = new System.Drawing.Size(80, 100); @@ -3168,7 +3213,6 @@ private void InitializeComponent() // // btnFlag // - this.btnFlag.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnFlag.BackColor = System.Drawing.Color.Lavender; this.btnFlag.ContextMenuStrip = this.contextMenuStripFlag; this.btnFlag.FlatAppearance.BorderColor = System.Drawing.SystemColors.HotTrack; @@ -3177,9 +3221,9 @@ private void InitializeComponent() this.btnFlag.Font = new System.Drawing.Font("Tahoma", 14.25F); this.btnFlag.Image = global::AgOpenGPS.Properties.Resources.FlagRed; this.btnFlag.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnFlag.Location = new System.Drawing.Point(847, 87); + this.btnFlag.Location = new System.Drawing.Point(339, 473); this.btnFlag.Name = "btnFlag"; - this.btnFlag.Size = new System.Drawing.Size(80, 80); + this.btnFlag.Size = new System.Drawing.Size(64, 70); this.btnFlag.TabIndex = 121; this.btnFlag.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnFlag.UseVisualStyleBackColor = false; @@ -3197,7 +3241,7 @@ private void InitializeComponent() this.btnAutoSteer.Image = global::AgOpenGPS.Properties.Resources.AutoSteerOff; this.btnAutoSteer.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnAutoSteer.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnAutoSteer.Location = new System.Drawing.Point(847, 463); + this.btnAutoSteer.Location = new System.Drawing.Point(921, 463); this.btnAutoSteer.Margin = new System.Windows.Forms.Padding(0); this.btnAutoSteer.Name = "btnAutoSteer"; this.btnAutoSteer.Size = new System.Drawing.Size(80, 100); @@ -3212,13 +3256,13 @@ private void InitializeComponent() this.btnRightYouTurn.BackColor = System.Drawing.Color.LightSteelBlue; this.btnRightYouTurn.ContextMenuStrip = this.contextMenuStripFlag; this.btnRightYouTurn.Enabled = false; - this.btnRightYouTurn.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold); + this.btnRightYouTurn.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnRightYouTurn.Image = global::AgOpenGPS.Properties.Resources.ArrowRight; this.btnRightYouTurn.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnRightYouTurn.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnRightYouTurn.Location = new System.Drawing.Point(720, 113); + this.btnRightYouTurn.Location = new System.Drawing.Point(794, 138); this.btnRightYouTurn.Name = "btnRightYouTurn"; - this.btnRightYouTurn.Size = new System.Drawing.Size(94, 86); + this.btnRightYouTurn.Size = new System.Drawing.Size(80, 65); this.btnRightYouTurn.TabIndex = 142; this.btnRightYouTurn.Text = "8888 ft"; this.btnRightYouTurn.TextAlign = System.Drawing.ContentAlignment.BottomCenter; @@ -3234,10 +3278,10 @@ private void InitializeComponent() this.btnContour.FlatAppearance.BorderColor = System.Drawing.SystemColors.HotTrack; this.btnContour.FlatAppearance.BorderSize = 2; this.btnContour.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnContour.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold); + this.btnContour.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnContour.Image = global::AgOpenGPS.Properties.Resources.ContourOff; this.btnContour.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnContour.Location = new System.Drawing.Point(935, 233); + this.btnContour.Location = new System.Drawing.Point(1009, 239); this.btnContour.Name = "btnContour"; this.btnContour.Size = new System.Drawing.Size(80, 80); this.btnContour.TabIndex = 105; @@ -3257,7 +3301,7 @@ private void InitializeComponent() this.btnManualOffOn.Font = new System.Drawing.Font("Tahoma", 14.25F); this.btnManualOffOn.Image = global::AgOpenGPS.Properties.Resources.ManualOff; this.btnManualOffOn.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnManualOffOn.Location = new System.Drawing.Point(935, 425); + this.btnManualOffOn.Location = new System.Drawing.Point(1009, 435); this.btnManualOffOn.Name = "btnManualOffOn"; this.btnManualOffOn.Size = new System.Drawing.Size(80, 80); this.btnManualOffOn.TabIndex = 98; @@ -3276,7 +3320,7 @@ private void InitializeComponent() this.btnABLine.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnABLine.Image = global::AgOpenGPS.Properties.Resources.ABLineOff; this.btnABLine.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.btnABLine.Location = new System.Drawing.Point(935, 329); + this.btnABLine.Location = new System.Drawing.Point(1009, 337); this.btnABLine.Name = "btnABLine"; this.btnABLine.Size = new System.Drawing.Size(80, 80); this.btnABLine.TabIndex = 0; @@ -3289,15 +3333,12 @@ private void InitializeComponent() this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.BackColor = System.Drawing.SystemColors.ScrollBar; - this.ClientSize = new System.Drawing.Size(1017, 701); - this.Controls.Add(this.tabControl1); - this.Controls.Add(this.panelBatman); + this.ClientSize = new System.Drawing.Size(1091, 701); + this.Controls.Add(this.lblHz); + this.Controls.Add(this.btnCycleLines); this.Controls.Add(this.btnMakeLinesFromBoundary); - this.Controls.Add(this.lblFixQuality); - this.Controls.Add(this.btnZoomExtents); this.Controls.Add(this.btnZoomIn); this.Controls.Add(this.btnZoomOut); - this.Controls.Add(this.lblHz); this.Controls.Add(this.panelSimControls); this.Controls.Add(this.cboxpRowWidth); this.Controls.Add(this.btnSwapDirection); @@ -3333,14 +3374,16 @@ private void InitializeComponent() this.Controls.Add(this.btnSection10Man); this.Controls.Add(this.btnSection9Man); this.Controls.Add(this.oglMain); + this.Controls.Add(this.panelBatman); this.Controls.Add(this.oglBack); + this.Controls.Add(this.tabControl1); this.Font = new System.Drawing.Font("Tahoma", 12F); this.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this.menuStrip1; this.MinimumSize = new System.Drawing.Size(800, 740); this.Name = "FormGPS"; - this.Text = "AgOpenGPS - Be So Good They Can\'t Ignore You"; + this.Text = "AgOpenGPS - No Field Loaded"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormGPS_FormClosing); this.Load += new System.EventHandler(this.FormGPS_Load); this.Resize += new System.EventHandler(this.FormGPS_Resize); @@ -3466,7 +3509,6 @@ private void InitializeComponent() private System.Windows.Forms.Label lblLatitude; private System.Windows.Forms.Label label16; private System.Windows.Forms.Label lblAltitude; - private System.Windows.Forms.Label lblFixQuality; private System.Windows.Forms.Label lblSats; public System.Windows.Forms.Button btnSectionOffAutoOn; private System.Windows.Forms.ToolStripStatusLabel stripEqWidth; @@ -3539,7 +3581,6 @@ private void InitializeComponent() private System.Windows.Forms.Label label39; private System.Windows.Forms.Button btnFlagsGoogleEarth; private System.Windows.Forms.Panel panelSimControls; - private System.Windows.Forms.Button btnZoomExtents; private System.Windows.Forms.Label lblHz; private System.Windows.Forms.Label label14; private System.Windows.Forms.Label lblpFieldAreaRemain; @@ -3600,6 +3641,11 @@ private void InitializeComponent() private System.Windows.Forms.Label lblPercentRemaining; private System.Windows.Forms.Label lblTimeRemaining; public System.Windows.Forms.ToolStripMenuItem menustripLanguage; + private System.Windows.Forms.Label lblMoveDistance; + private System.Windows.Forms.Label lblMoveDistanceBatman; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label11; + public System.Windows.Forms.Button btnCycleLines; } } diff --git a/SourceCode/GPS/Forms/FormGPS.cs b/SourceCode/GPS/Forms/FormGPS.cs index c030fd783..7512174cc 100644 --- a/SourceCode/GPS/Forms/FormGPS.cs +++ b/SourceCode/GPS/Forms/FormGPS.cs @@ -4,10 +4,12 @@ using OpenTK; using OpenTK.Graphics.OpenGL; using System; +using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.Drawing.Imaging; using System.IO; +using System.Media; using System.Net; using System.Net.Sockets; using System.Reflection; @@ -217,6 +219,12 @@ public partial class FormGPS : Form /// public CWorkSwitch workSwitch; + /// + /// Sound for approaching boundary + /// + public SoundPlayer sndBoundaryAlarm; + + #endregion // Class Props and instances // Constructor, Initializes a new instance of the "FormGPS" class. @@ -228,7 +236,7 @@ public FormGPS() btnManualAutoDrive.Text = gStr.gsAbout; //file menu - fileToolStripMenuItem.Text = gStr.gsFile; + //fileToolStripMenuItem.Text = gStr.gsFile; setWorkingDirectoryToolStripMenuItem.Text = gStr.gsDirectories; enterSimCoordsToolStripMenuItem.Text = gStr.gsEnterSimCoords; loadVehicleToolStripMenuItem.Text = gStr.gsLoadVehicle; @@ -239,7 +247,7 @@ public FormGPS() menustripLanguage.Text = gStr.gsLanguage; //Display Menu - settingsToolStripMenuItem.Text = gStr.gsDisplay; + //settingsToolStripMenuItem.Text = gStr.gsDisplay; resetALLToolStripMenuItem.Text = gStr.gsResetAll; colorsToolStripMenuItem.Text = gStr.gsColors; toolStripUnitsMenu.Text = gStr.gsUnits; @@ -400,10 +408,6 @@ private void ZoomByMouseWheel(object sender, MouseEventArgs e) //Initialize items before the form Loads or is visible private void FormGPS_Load(object sender, EventArgs e) { - //tooltips of controls - ToolTip ToolTip1 = new ToolTip(); - ToolTip1.SetToolTip(btnABLine, "Set and configure\n an ABLine"); - this.MouseWheel += ZoomByMouseWheel; if (Settings.Default.setF_workingDirectory == "Default") @@ -436,6 +440,17 @@ private void FormGPS_Load(object sender, EventArgs e) } } + string directoryName = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location); + string wave = Path.Combine(directoryName, "Dependencies\\Audio", "Boundary.Wav"); + if (File.Exists(wave)) + { + sndBoundaryAlarm = new SoundPlayer(wave); + } + else + { + sndBoundaryAlarm = new SoundPlayer(Properties.Resources.Alarm10); + } + //grab the current vehicle filename - make sure it exists vehiclefileName = Vehicle.Default.setVehicle_Name; @@ -631,6 +646,8 @@ private void FormGPS_Resize(object sender, EventArgs e) // Procedures and Functions --------------------------------------- public uint LoadGLTextures() { + //sndRedAlert.Play(); + GL.Enable(EnableCap.Texture2D); try { @@ -839,21 +856,20 @@ private void NudElevation_ValueChanged(object sender, EventArgs e) sim.altitude = (double)nudElevation.Value; } - public void GetAB() { curve.isOkToAddPoints = false; - curve.isCurveSet = false; - DisableYouTurnButtons(); + //curve.isCurveSet = false; + //DisableYouTurnButtons(); btnContourPriority.Enabled = false; - curve.isCurveBtnOn = false; - btnCurve.Image = Properties.Resources.CurveOff; + //curve.isCurveBtnOn = false; + //btnCurve.Image = Properties.Resources.CurveOff; - ABLine.isABLineSet = false; + //ABLine.isABLineSet = false; ABLine.tramPassEvery = 0; ABLine.passBasedOn = 0; - btnABLine.Image = Properties.Resources.ABLineOff; - ABLine.isBtnABLineOn = false; + //btnABLine.Image = Properties.Resources.ABLineOff; + //ABLine.isBtnABLineOn = false; if (ct.isContourBtnOn) { if (ct.isContourBtnOn) btnContour.PerformClick(); } @@ -864,7 +880,13 @@ public void GetAB() if (result == DialogResult.OK) { } + ABLine.moveDistance = 0; + curve.moveDistance = 0; } + + if (curve.isCurveBtnOn) btnCycleLines.Text = "Cu-" + curve.numCurveLineSelected; + if (ABLine.isBtnABLineOn) btnCycleLines.Text = "AB-" + ABLine.numABLineSelected; + } public void KeypadToNUD(NumericUpDown sender) @@ -1037,6 +1059,7 @@ public void JobNew() btnContour.Enabled = true; btnCurve.Enabled = true; btnMakeLinesFromBoundary.Enabled = true; + btnCycleLines.Enabled = true; ABLine.abHeading = 0.00; @@ -1155,6 +1178,7 @@ public void JobClose() ct.isContourOn = false; btnMakeLinesFromBoundary.Enabled = false; + btnCycleLines.Enabled = false; //AutoSteer btnAutoSteer.Enabled = false; diff --git a/SourceCode/GPS/Forms/FormGPS.resx b/SourceCode/GPS/Forms/FormGPS.resx index 2afec12a2..964aa452d 100644 --- a/SourceCode/GPS/Forms/FormGPS.resx +++ b/SourceCode/GPS/Forms/FormGPS.resx @@ -143,7 +143,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACO - MgAAAk1TRnQBSQFMAgEBBAEAAYgBJAGIASQBQAEAAUABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + MgAAAk1TRnQBSQFMAgEBBAEAAZABJQGQASUBQAEAAUABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo BAABAQIAAYADAAEBAQABCAYAAYAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA @@ -361,9 +361,6 @@ AQEY/wH+AQED/wH4AQABDxn/AQMD/wH4AQABfxn/AYcD/wH4AQEe/wH8AT8W/ws= - - True - True diff --git a/SourceCode/GPS/Forms/FormMakeBndCon.Designer.cs b/SourceCode/GPS/Forms/FormMakeBndCon.Designer.cs index ccadacef5..ed9d7803f 100644 --- a/SourceCode/GPS/Forms/FormMakeBndCon.Designer.cs +++ b/SourceCode/GPS/Forms/FormMakeBndCon.Designer.cs @@ -56,6 +56,7 @@ private void InitializeComponent() this.nudPass.Name = "nudPass"; this.nudPass.Size = new System.Drawing.Size(120, 85); this.nudPass.TabIndex = 5; + this.nudPass.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.nudPass.Value = new decimal(new int[] { 1, 0, @@ -93,15 +94,21 @@ private void InitializeComponent() // this.nudSpacing.BackColor = System.Drawing.Color.AliceBlue; this.nudSpacing.Font = new System.Drawing.Font("Tahoma", 48F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.nudSpacing.Location = new System.Drawing.Point(37, 246); + this.nudSpacing.Location = new System.Drawing.Point(30, 246); + this.nudSpacing.Maximum = new decimal(new int[] { + 4000, + 0, + 0, + 0}); this.nudSpacing.Minimum = new decimal(new int[] { 1, 0, 0, 0}); this.nudSpacing.Name = "nudSpacing"; - this.nudSpacing.Size = new System.Drawing.Size(120, 85); + this.nudSpacing.Size = new System.Drawing.Size(166, 85); this.nudSpacing.TabIndex = 252; + this.nudSpacing.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.nudSpacing.Value = new decimal(new int[] { 20, 0, diff --git a/SourceCode/GPS/Forms/FormSettings.Designer.cs b/SourceCode/GPS/Forms/FormSettings.Designer.cs index 75a34e457..4f25d93d3 100644 --- a/SourceCode/GPS/Forms/FormSettings.Designer.cs +++ b/SourceCode/GPS/Forms/FormSettings.Designer.cs @@ -101,6 +101,8 @@ private void InitializeComponent() this.nudSection1 = new System.Windows.Forms.NumericUpDown(); this.label2 = new System.Windows.Forms.Label(); this.tabGuidance = new System.Windows.Forms.TabPage(); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.nudLineWidth = new System.Windows.Forms.NumericUpDown(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.nudLightbarCmPerPixel = new System.Windows.Forms.NumericUpDown(); this.groupBox9 = new System.Windows.Forms.GroupBox(); @@ -157,6 +159,8 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.nudSection2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nudSection1)).BeginInit(); this.tabGuidance.SuspendLayout(); + this.groupBox4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.nudLineWidth)).BeginInit(); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.nudLightbarCmPerPixel)).BeginInit(); this.groupBox9.SuspendLayout(); @@ -1440,6 +1444,7 @@ private void InitializeComponent() // tabGuidance // this.tabGuidance.BackColor = System.Drawing.SystemColors.Window; + this.tabGuidance.Controls.Add(this.groupBox4); this.tabGuidance.Controls.Add(this.groupBox2); this.tabGuidance.Controls.Add(this.groupBox9); this.tabGuidance.Controls.Add(this.groupBox8); @@ -1451,13 +1456,51 @@ private void InitializeComponent() this.tabGuidance.TabIndex = 13; this.tabGuidance.Text = " Guidance "; // + // groupBox4 + // + this.groupBox4.Controls.Add(this.nudLineWidth); + this.groupBox4.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupBox4.Location = new System.Drawing.Point(714, 59); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.Size = new System.Drawing.Size(232, 172); + this.groupBox4.TabIndex = 124; + this.groupBox4.TabStop = false; + this.groupBox4.Text = "Guidance Line Width"; + // + // nudLineWidth + // + this.nudLineWidth.BackColor = System.Drawing.Color.AliceBlue; + this.nudLineWidth.Font = new System.Drawing.Font("Tahoma", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.nudLineWidth.InterceptArrowKeys = false; + this.nudLineWidth.Location = new System.Drawing.Point(44, 76); + this.nudLineWidth.Maximum = new decimal(new int[] { + 8, + 0, + 0, + 0}); + this.nudLineWidth.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.nudLineWidth.Name = "nudLineWidth"; + this.nudLineWidth.Size = new System.Drawing.Size(148, 65); + this.nudLineWidth.TabIndex = 118; + this.nudLineWidth.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.nudLineWidth.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.nudLineWidth.Enter += new System.EventHandler(this.nudLineWidth_Enter); + // // groupBox2 // this.groupBox2.Controls.Add(this.nudLightbarCmPerPixel); this.groupBox2.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox2.Location = new System.Drawing.Point(414, 59); + this.groupBox2.Location = new System.Drawing.Point(394, 59); this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(341, 142); + this.groupBox2.Size = new System.Drawing.Size(250, 172); this.groupBox2.TabIndex = 123; this.groupBox2.TabStop = false; this.groupBox2.Text = "cm / Lightbar Pixel"; @@ -1467,7 +1510,7 @@ private void InitializeComponent() this.nudLightbarCmPerPixel.BackColor = System.Drawing.Color.AliceBlue; this.nudLightbarCmPerPixel.Font = new System.Drawing.Font("Tahoma", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.nudLightbarCmPerPixel.InterceptArrowKeys = false; - this.nudLightbarCmPerPixel.Location = new System.Drawing.Point(23, 40); + this.nudLightbarCmPerPixel.Location = new System.Drawing.Point(26, 73); this.nudLightbarCmPerPixel.Maximum = new decimal(new int[] { 20, 0, @@ -1494,9 +1537,9 @@ private void InitializeComponent() // this.groupBox9.Controls.Add(this.cboxAutoSteerAuto); this.groupBox9.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBox9.Location = new System.Drawing.Point(415, 262); + this.groupBox9.Location = new System.Drawing.Point(394, 288); this.groupBox9.Name = "groupBox9"; - this.groupBox9.Size = new System.Drawing.Size(340, 192); + this.groupBox9.Size = new System.Drawing.Size(250, 192); this.groupBox9.TabIndex = 92; this.groupBox9.TabStop = false; this.groupBox9.Text = "Auto/Manual AutoSteer Button"; @@ -1509,7 +1552,7 @@ private void InitializeComponent() this.cboxAutoSteerAuto.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.cboxAutoSteerAuto.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cboxAutoSteerAuto.Image = global::AgOpenGPS.Properties.Resources.AutoSteerOn; - this.cboxAutoSteerAuto.Location = new System.Drawing.Point(60, 65); + this.cboxAutoSteerAuto.Location = new System.Drawing.Point(60, 79); this.cboxAutoSteerAuto.Name = "cboxAutoSteerAuto"; this.cboxAutoSteerAuto.Size = new System.Drawing.Size(86, 96); this.cboxAutoSteerAuto.TabIndex = 0; @@ -1524,7 +1567,7 @@ private void InitializeComponent() this.groupBox8.Font = new System.Drawing.Font("Tahoma", 15.75F); this.groupBox8.Location = new System.Drawing.Point(45, 59); this.groupBox8.Name = "groupBox8"; - this.groupBox8.Size = new System.Drawing.Size(317, 142); + this.groupBox8.Size = new System.Drawing.Size(279, 172); this.groupBox8.TabIndex = 91; this.groupBox8.TabStop = false; this.groupBox8.Text = "< > Snap Distance (cm)"; @@ -1534,7 +1577,7 @@ private void InitializeComponent() this.nudSnapDistanceSmall.BackColor = System.Drawing.Color.AliceBlue; this.nudSnapDistanceSmall.Font = new System.Drawing.Font("Tahoma", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.nudSnapDistanceSmall.InterceptArrowKeys = false; - this.nudSnapDistanceSmall.Location = new System.Drawing.Point(23, 40); + this.nudSnapDistanceSmall.Location = new System.Drawing.Point(23, 73); this.nudSnapDistanceSmall.Maximum = new decimal(new int[] { 500, 0, @@ -1556,9 +1599,9 @@ private void InitializeComponent() // this.groupBox1.Controls.Add(this.nudSnapDistance); this.groupBox1.Font = new System.Drawing.Font("Tahoma", 15.75F); - this.groupBox1.Location = new System.Drawing.Point(45, 262); + this.groupBox1.Location = new System.Drawing.Point(45, 288); this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(317, 142); + this.groupBox1.Size = new System.Drawing.Size(279, 168); this.groupBox1.TabIndex = 90; this.groupBox1.TabStop = false; this.groupBox1.Text = "<< >> Snap Distance"; @@ -1568,7 +1611,7 @@ private void InitializeComponent() this.nudSnapDistance.BackColor = System.Drawing.Color.AliceBlue; this.nudSnapDistance.Font = new System.Drawing.Font("Tahoma", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.nudSnapDistance.InterceptArrowKeys = false; - this.nudSnapDistance.Location = new System.Drawing.Point(23, 32); + this.nudSnapDistance.Location = new System.Drawing.Point(23, 73); this.nudSnapDistance.Maximum = new decimal(new int[] { 500, 0, @@ -1833,6 +1876,8 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.nudSection2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudSection1)).EndInit(); this.tabGuidance.ResumeLayout(false); + this.groupBox4.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.nudLineWidth)).EndInit(); this.groupBox2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.nudLightbarCmPerPixel)).EndInit(); this.groupBox9.ResumeLayout(false); @@ -1947,5 +1992,7 @@ private void InitializeComponent() private System.Windows.Forms.NumericUpDown nudLightbarCmPerPixel; private System.Windows.Forms.Label label25; private System.Windows.Forms.ComboBox cboxNumSections; + private System.Windows.Forms.NumericUpDown nudLineWidth; + private System.Windows.Forms.GroupBox groupBox4; } } \ No newline at end of file diff --git a/SourceCode/GPS/Forms/FormSettings.cs b/SourceCode/GPS/Forms/FormSettings.cs index 055d9194e..3618592c2 100644 --- a/SourceCode/GPS/Forms/FormSettings.cs +++ b/SourceCode/GPS/Forms/FormSettings.cs @@ -119,6 +119,7 @@ public FormSettings(Form callingForm, int page) nudTankHitch.Controls[0].Enabled = false; nudTurnOffDelay.Controls[0].Enabled = false; nudWheelbase.Controls[0].Enabled = false; + nudLineWidth.Controls[0].Enabled = false; if (mf.isMetric) { @@ -204,8 +205,6 @@ private void FormSettings_Load(object sender, EventArgs e) numberOfSections = Properties.Vehicle.Default.setVehicle_numSections; temp = numberOfSections; - //if (nudNumberOfSections.CheckValue(ref temp)) nudNumberOfSections.BackColor = System.Drawing.Color.OrangeRed; - //numberOfSections = (int)temp; cutoffSpeed = Properties.Vehicle.Default.setVehicle_slowSpeedCutoff / cutoffMetricImperial; temp = (decimal)cutoffSpeed; @@ -338,11 +337,6 @@ private void FormSettings_Load(object sender, EventArgs e) nudLookAhead.Value = (decimal)(toolLookAhead); nudLookAhead.ValueChanged += nudLookAhead_ValueChanged; - //grab number of sections - //nudNumberOfSections.ValueChanged -= nudNumberOfSections_ValueChanged; - //nudNumberOfSections.Value = numberOfSections; - //nudNumberOfSections.ValueChanged += nudNumberOfSections_ValueChanged; - cboxNumSections.Text = numberOfSections.ToString(); //calc the 8 section widths based on settings.settings also meters to inches @@ -388,6 +382,8 @@ private void FormSettings_Load(object sender, EventArgs e) nudCutoffSpeed.ValueChanged -= nudCutoffSpeed_ValueChanged; nudCutoffSpeed.Value = (decimal)cutoffSpeed; nudCutoffSpeed.ValueChanged += nudCutoffSpeed_ValueChanged; + + nudLineWidth.Value = Properties.Settings.Default.setDisplay_lineWidth; } private void btnOK_Click(object sender, EventArgs e) @@ -514,6 +510,9 @@ private void btnOK_Click(object sender, EventArgs e) Properties.Vehicle.Default.setVehicle_slowSpeedCutoff = cutoffSpeed * cutoffMetricImperial; mf.vehicle.slowSpeedCutoff = cutoffSpeed * cutoffMetricImperial; + Properties.Settings.Default.setDisplay_lineWidth = (int)(nudLineWidth.Value); + mf.ABLine.lineWidth = (float)(nudLineWidth.Value); + Properties.Settings.Default.Save(); Properties.Vehicle.Default.Save(); @@ -720,6 +719,12 @@ private void NudLightbarCmPerPixel_Enter(object sender, EventArgs e) btnCancel.Focus(); } + private void nudLineWidth_Enter(object sender, EventArgs e) + { + mf.KeypadToNUD((NumericUpDown)sender); + btnCancel.Focus(); + } + private void CboxNumSections_SelectedIndexChanged(object sender, EventArgs e) { numberOfSections = cboxNumSections.SelectedIndex + 1; diff --git a/SourceCode/GPS/Forms/FormShortcutKeys.Designer.cs b/SourceCode/GPS/Forms/FormShortcutKeys.Designer.cs index dd8628a6c..8b2bda481 100644 --- a/SourceCode/GPS/Forms/FormShortcutKeys.Designer.cs +++ b/SourceCode/GPS/Forms/FormShortcutKeys.Designer.cs @@ -28,9 +28,9 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormShortcutKeys)); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); - this.btnExit = new System.Windows.Forms.Button(); this.SuspendLayout(); // // textBox1 @@ -39,57 +39,44 @@ private void InitializeComponent() | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textBox1.BackColor = System.Drawing.Color.AliceBlue; - this.textBox1.Font = new System.Drawing.Font("Tahoma", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBox1.Location = new System.Drawing.Point(56, 10); + this.textBox1.Font = new System.Drawing.Font("Tahoma", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox1.Location = new System.Drawing.Point(153, 10); this.textBox1.Margin = new System.Windows.Forms.Padding(5); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.ReadOnly = true; - this.textBox1.Size = new System.Drawing.Size(281, 434); + this.textBox1.Size = new System.Drawing.Size(245, 719); this.textBox1.TabIndex = 2; - this.textBox1.Text = "Auto Section On Off\r\n\r\nAuto Steer On Off\r\nAuto Steer Config\r\nAuto Steer Chart\r\n\r\n" + - "Field Open/Close\r\nSnap\r\nFlag Mark\r\n\r\nUTurn Settings\r\nVehicle Settings"; + this.textBox1.Text = resources.GetString("textBox1.Text"); // // textBox2 // this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.textBox2.BackColor = System.Drawing.Color.AliceBlue; - this.textBox2.Font = new System.Drawing.Font("Tahoma", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox2.Font = new System.Drawing.Font("Tahoma", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox2.Location = new System.Drawing.Point(14, 10); this.textBox2.Margin = new System.Windows.Forms.Padding(5); this.textBox2.Multiline = true; this.textBox2.Name = "textBox2"; this.textBox2.ReadOnly = true; - this.textBox2.Size = new System.Drawing.Size(37, 434); + this.textBox2.Size = new System.Drawing.Size(129, 719); this.textBox2.TabIndex = 1; - this.textBox2.Text = "D\r\n\r\nA\r\nS\r\nC\r\n\r\nF\r\nP\r\nG\r\n\r\nU\r\nV"; - // - // btnExit - // - this.btnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnExit.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnExit.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(64)))), ((int)(((byte)(0))))); - this.btnExit.Image = global::AgOpenGPS.Properties.Resources.Cancel64; - this.btnExit.Location = new System.Drawing.Point(240, 464); - this.btnExit.Name = "btnExit"; - this.btnExit.Size = new System.Drawing.Size(97, 70); - this.btnExit.TabIndex = 0; - this.btnExit.UseVisualStyleBackColor = true; - this.btnExit.Click += new System.EventHandler(this.btnExit_Click); + this.textBox2.Text = "N\r\nM\r\n\r\nA\r\nS\r\nC\r\n\r\nF\r\nP\r\nG\r\n\r\nU\r\nV\r\nNumPad 0\r\nNumPad 1\r\n\r\n\r\nUp\r\nDown\r\nLeft\r\nRight" + + "\r\nPeriod .\r\n?\r\nL"; + this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; // // FormShortcutKeys // this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 23F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(351, 546); - this.ControlBox = false; - this.Controls.Add(this.btnExit); + this.ClientSize = new System.Drawing.Size(402, 733); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); this.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Margin = new System.Windows.Forms.Padding(5); + this.MaximizeBox = false; + this.MinimizeBox = false; this.Name = "FormShortcutKeys"; this.ShowInTaskbar = false; this.Text = "Shortcut Keys"; @@ -103,6 +90,5 @@ private void InitializeComponent() private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.TextBox textBox2; - private System.Windows.Forms.Button btnExit; } } \ No newline at end of file diff --git a/SourceCode/GPS/Forms/FormShortcutKeys.resx b/SourceCode/GPS/Forms/FormShortcutKeys.resx index 1af7de150..b18a0ce6b 100644 --- a/SourceCode/GPS/Forms/FormShortcutKeys.resx +++ b/SourceCode/GPS/Forms/FormShortcutKeys.resx @@ -117,4 +117,30 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Auto Section On/Off +Manual On/Off + +Auto Steer On/Off +Auto Steer Config +Auto Steer Chart + +Field Open/Close +Snap +Flag Mark + +UTurn Settings +Vehicle Settings +Section Auto On/Off +Manual On/Off + +Sim Controls: +Speed Up +Slow Down +Turn Left +Turn Right +Stop +Go Straight +Reset Sim + \ No newline at end of file diff --git a/SourceCode/GPS/Forms/FormSmoothAB.cs b/SourceCode/GPS/Forms/FormSmoothAB.cs index 10a52529e..2750ee529 100644 --- a/SourceCode/GPS/Forms/FormSmoothAB.cs +++ b/SourceCode/GPS/Forms/FormSmoothAB.cs @@ -63,7 +63,7 @@ private void btnSave_Click(object sender, EventArgs e) mf.curve.isSmoothWindowOpen = false; mf.curve.SaveSmoothAsRefList(); mf.curve.smooList?.Clear(); - mf.FileSaveCurveLine(); + //mf.FileSaveCurveLine(); Close(); } } diff --git a/SourceCode/GPS/Forms/GUI.Designer.cs b/SourceCode/GPS/Forms/GUI.Designer.cs index 41a006ee4..1a6555bbf 100644 --- a/SourceCode/GPS/Forms/GUI.Designer.cs +++ b/SourceCode/GPS/Forms/GUI.Designer.cs @@ -150,66 +150,101 @@ private void ManualAllBtnsUpdate() //hide the left panel public void SwapBatmanPanels() - { - if (Properties.Settings.Default.setDisplay_isLargePanel) - { - //Batman mini-panel shows - panelSimControls.Left = 245; - oglMain.Left = 240; - oglMain.Width = Width - 240 - 102; - btnpTiltDown.Left = 245; - btnpTiltUp.Left = 245; - btnZoomIn.Left = 245; - btnZoomOut.Left = 245; - btnZoomExtents.Left = 245; - cboxpRowWidth.Left = 245; - txtDistanceOffABLine.Left = (Width - 245 - 100) / 2 + 185; - btnSwapDirection.Left = (Width - 245 - 100) / 2 + 190; - panelBatman.Visible = true; - tabControl1.Visible = false; - Properties.Settings.Default.setDisplay_isLargePanel = false; + { + if (Properties.Settings.Default.setDisplay_panelStatus++ > 1) Properties.Settings.Default.setDisplay_panelStatus = 0; Properties.Settings.Default.Save(); - LineUpManualBtns(); - } - else - { - //Big tab will be visible - panelSimControls.Left = 345; - oglMain.Left = 340; - oglMain.Width = Width - 340 - 102; - btnpTiltDown.Left = 345; - btnpTiltUp.Left = 345; - btnZoomIn.Left = 345; - btnZoomOut.Left = 345; - btnZoomExtents.Left = 345; - cboxpRowWidth.Left = 345; - txtDistanceOffABLine.Left = (Width - 345 - 100)/2 + 287; - btnSwapDirection.Left = (Width - 345 - 100) / 2 + 292; - txtDistanceOffABLine.Top = -1; - tabControl1.SelectedIndex = 2; - panelBatman.Visible = false; - tabControl1.Visible = true; - Properties.Settings.Default.setDisplay_isLargePanel = true; - Properties.Settings.Default.Save(); - LineUpManualBtns(); + switch (Properties.Settings.Default.setDisplay_panelStatus) + { + case 0: + //no side panel + panelSimControls.Left = 0; + oglMain.Left = 5; + oglMain.Width = Width - 107; + btnpTiltDown.Left = 8; + btnpTiltUp.Left = 8; + btnZoomIn.Left = 8; + btnZoomOut.Left = 8; + btnFlag.Left = 8; + cboxpRowWidth.Left = 8; + txtDistanceOffABLine.Left = (Width - 200) / 2; + txtDistanceOffABLine.Top = -1; + panelBatman.Visible = false; + tabControl1.Visible = false; + LineUpManualBtns(); + + break; + + case 1: + //Batman mini-panel shows + panelSimControls.Left = 245; + oglMain.Left = 240; + oglMain.Width = Width - 240 - 102; + btnpTiltDown.Left = 245; + btnpTiltUp.Left = 245; + btnZoomIn.Left = 245; + btnZoomOut.Left = 245; + btnFlag.Left = 245; + cboxpRowWidth.Left = 245; + txtDistanceOffABLine.Left = (Width - 245 - 100) / 2 + 185; + btnSwapDirection.Left = (Width - 245 - 100) / 2 + 190; + panelBatman.Visible = true; + tabControl1.Visible = false; + LineUpManualBtns(); + break; + + case 2: + //Big tab will be visible + panelSimControls.Left = 345; + oglMain.Left = 340; + oglMain.Width = Width - 340 - 102; + btnpTiltDown.Left = 345; + btnpTiltUp.Left = 345; + btnZoomIn.Left = 345; + btnZoomOut.Left = 345; + btnFlag.Left = 345; + cboxpRowWidth.Left = 345; + txtDistanceOffABLine.Left = (Width - 345 - 100) / 2 + 287; + btnSwapDirection.Left = (Width - 345 - 100) / 2 + 292; + txtDistanceOffABLine.Top = -1; + tabControl1.SelectedIndex = 2; + panelBatman.Visible = false; + tabControl1.Visible = true; + LineUpManualBtns(); + break; + + + default: + break; } } //line up section On Off Auto buttons based on how many there are public void LineUpManualBtns() { + int first2Thirds = 0; + if (tabControl1.Visible) { - btnRightYouTurn.Left = (Width - 440) / 2 + 475; - btnLeftYouTurn.Left = (Width - 440) / 2 + 115; - btnSwapDirection.Left = (Width - 440) / 2 + 292; + btnRightYouTurn.Left = (Width + 450) / 2; + btnLeftYouTurn.Left = (Width - 135) / 2; + btnSwapDirection.Left = (Width - 440) / 2 + 302; + first2Thirds = (Width - 535) / 2 + 385; } + else if (panelBatman.Visible) + { + btnRightYouTurn.Left = (Width+350) / 2 ; + btnLeftYouTurn.Left = (Width-240) / 2; + btnSwapDirection.Left = (Width - 340) / 2 + 200; + first2Thirds = (Width - 395) / 2 + 260; + } + else { - btnRightYouTurn.Left = (Width-340) / 2 + 362; - btnLeftYouTurn.Left = (Width-340) / 2 + 10; - btnSwapDirection.Left = (Width - 340) / 2 + 190; + btnRightYouTurn.Left = (Width+140) / 2; + btnLeftYouTurn.Left = (Width-500) / 2; + btnSwapDirection.Left = (Width-185) / 2; + first2Thirds = (Width - 118) / 2; } int top = 0; @@ -232,9 +267,6 @@ public void LineUpManualBtns() btnSection7Man.Top = Height - top; btnSection8Man.Top = Height - top; - int first2Thirds; - if (tabControl1.Visible) first2Thirds = (Width - 535) / 2 + 385; - else first2Thirds = (Width-395) / 2 + 260; int even = 60; int offset = 7; @@ -987,6 +1019,8 @@ private void btnAutoSteer_Click(object sender, EventArgs e) private void BtnMakeLinesFromBoundary_Click(object sender, EventArgs e) { + if (ct.isContourBtnOn) return; + if (!bnd.bndArr[0].isSet) { TimedMessageBox(2000, gStr.gsNoBoundary, gStr.gsCreateABoundaryFirst); @@ -995,9 +1029,44 @@ private void BtnMakeLinesFromBoundary_Click(object sender, EventArgs e) GetAB(); } + private void btnCycleLines_Click(object sender, EventArgs e) + { + if (ABLine.isBtnABLineOn && ABLine.numABLines > 0) + { + ABLine.numABLineSelected++; + if (ABLine.numABLineSelected > ABLine.numABLines) ABLine.numABLineSelected = 1; + ABLine.refPoint1 = ABLine.lineArr[ABLine.numABLineSelected - 1].origin; + //ABLine.refPoint2 = ABLine.lineArr[ABLine.numABLineSelected - 1].ref2; + ABLine.abHeading = ABLine.lineArr[ABLine.numABLineSelected - 1].heading; + ABLine.SetABLineByHeading(); + ABLine.isABLineSet = true; + ABLine.isABLineLoaded = true; + yt.ResetYouTurn(); + btnCycleLines.Text = "AB-" + ABLine.numABLineSelected; + } + else if (curve.isCurveBtnOn && curve.numCurveLines > 0) + { + curve.numCurveLineSelected++; + if (curve.numCurveLineSelected > curve.numCurveLines) curve.numCurveLineSelected = 1; + + int idx = curve.numCurveLineSelected - 1; + curve.aveLineHeading = curve.curveArr[idx].aveHeading; + curve.refList?.Clear(); + for (int i = 0; i < curve.curveArr[idx].curvePts.Count; i++) + { + curve.refList.Add(curve.curveArr[idx].curvePts[i]); + } + curve.isCurveSet = true; + yt.ResetYouTurn(); + btnCycleLines.Text = "Cur-" + curve.numCurveLineSelected; + } + } + private void btnABLine_Click(object sender, EventArgs e) { + btnCycleLines.Text = "AB-" + ABLine.numABLineSelected; + //check if window already exists Form f = Application.OpenForms["FormABCurve"]; @@ -1007,27 +1076,30 @@ private void btnABLine_Click(object sender, EventArgs e) return; } + Form af = Application.OpenForms["FormABLine"]; + + if (af != null) + { + af.Close(); + return; + } + + //if contour is on, turn it off if (ct.isContourBtnOn) { if (ct.isContourBtnOn) btnContour.PerformClick(); } btnContourPriority.Enabled = true; //make sure the other stuff is off curve.isOkToAddPoints = false; - curve.isCurveSet = false; - DisableYouTurnButtons(); curve.isCurveBtnOn = false; btnCurve.Image = Properties.Resources.CurveOff; - //new direction so reset where to put turn diagnostic - yt.ResetCreatedYouTurn(); - //if there is a line in memory, just use it. if (ABLine.isBtnABLineOn == false && ABLine.isABLineLoaded) { ABLine.isABLineSet = true; EnableYouTurnButtons(); - FileSaveABLine(); btnABLine.Image = Properties.Resources.ABLineOn; ABLine.isBtnABLineOn = true; return; @@ -1047,8 +1119,8 @@ private void btnABLine_Click(object sender, EventArgs e) btnABLine.Image = Properties.Resources.ABLineOn; //turn off youturn... - DisableYouTurnButtons(); - yt.ResetYouTurn(); + //DisableYouTurnButtons(); + //yt.ResetYouTurn(); var form = new FormABLine(this); form.Show(); @@ -1056,7 +1128,10 @@ private void btnABLine_Click(object sender, EventArgs e) private void btnCurve_Click(object sender, EventArgs e) { + btnCycleLines.Text = "Cur-" + curve.numCurveLineSelected; + //check if window already exists, return if true + Form f = Application.OpenForms["FormABLine"]; if (f != null) @@ -1065,28 +1140,36 @@ private void btnCurve_Click(object sender, EventArgs e) return; } + //check if window already exists + Form cf = Application.OpenForms["FormABCurve"]; + + if (cf != null) + { + cf.Close(); + return; + } + + //if contour is on, turn it off if (ct.isContourBtnOn) { if (ct.isContourBtnOn) btnContour.PerformClick(); } - //turn off ABLine - ABLine.isABLineBeingSet = false; - ABLine.isABLineSet = false; - txtDistanceOffABLine.Visible = false; + //turn off ABLine + ABLine.isABLineBeingSet = false; + ABLine.isABLineSet = false; + txtDistanceOffABLine.Visible = false; - //change image to reflect on off - btnABLine.Image = Properties.Resources.ABLineOff; - ABLine.isBtnABLineOn = false; + //change image to reflect on off + btnABLine.Image = Properties.Resources.ABLineOff; + ABLine.isBtnABLineOn = false; //new direction so reset where to put turn diagnostic - yt.ResetCreatedYouTurn(); + //yt.ResetCreatedYouTurn(); - if (curve.isCurveBtnOn == false && curve.refList.Count > 3) + if (curve.isCurveBtnOn == false && curve.isCurveSet) { - //display the curve curve.isCurveSet = true; EnableYouTurnButtons(); - FileSaveCurveLine(); btnCurve.Image = Properties.Resources.CurveOn; curve.isCurveBtnOn = true; return; @@ -1102,22 +1185,10 @@ private void btnCurve_Click(object sender, EventArgs e) return; } - //curve.isCurveBtnOn = !curve.isCurveBtnOn; curve.isCurveBtnOn = true; btnCurve.Image = Properties.Resources.CurveOn; - //turn off youturn... - btnRightYouTurn.Enabled = false; - btnLeftYouTurn.Enabled = false; - btnRightYouTurn.Visible = false; - btnLeftYouTurn.Visible = false; - - btnEnableAutoYouTurn.Enabled = false; - yt.isYouTurnBtnOn = false; - btnEnableAutoYouTurn.Image = Properties.Resources.YouTurnNo; - yt.ResetYouTurn(); - - if (isAutoSteerBtnOn) btnAutoSteer.PerformClick(); + EnableYouTurnButtons(); btnContourPriority.Enabled = true; Form form = new FormABCurve(this); @@ -1222,7 +1293,7 @@ private void btnContourPriority_Click(object sender, EventArgs e) // MessageBoxDefaultButton.Button2); //if (result3 == DialogResult.Yes) { - FileSaveABLine(); + //FileSaveABLine(); } } else if (curve.isCurveSet) @@ -1266,7 +1337,9 @@ private void SnapSmallLeft() double dist = 0.01 * Properties.Settings.Default.setDisplay_snapDistanceSmall; ABLine.MoveABLine(-dist); - FileSaveABLine(); + + ABLine.moveDistance -= dist; + //FileSaveABLine(); } else if (curve.isCurveSet) { @@ -1275,6 +1348,7 @@ private void SnapSmallLeft() double dist = 0.01 * Properties.Settings.Default.setDisplay_snapDistanceSmall; curve.MoveABCurve(-dist); + curve.moveDistance -= dist; } else { @@ -1293,7 +1367,9 @@ private void SnapSmallRight() yt.ResetCreatedYouTurn(); double dist = 0.01 * Properties.Settings.Default.setDisplay_snapDistanceSmall; ABLine.MoveABLine(dist); - FileSaveABLine(); + ABLine.moveDistance += dist; + + //FileSaveABLine(); } else if (curve.isCurveSet) { @@ -1301,6 +1377,8 @@ private void SnapSmallRight() yt.ResetCreatedYouTurn(); double dist = 0.01 * Properties.Settings.Default.setDisplay_snapDistanceSmall; curve.MoveABCurve(dist); + curve.moveDistance += dist; + } else { @@ -1320,7 +1398,8 @@ private void SnapRight() double dist = 0.01 * Properties.Settings.Default.setDisplay_snapDistance; ABLine.MoveABLine(dist); - FileSaveABLine(); + ABLine.moveDistance += dist; + //FileSaveABLine(); } else if (curve.isCurveSet) { @@ -1328,6 +1407,8 @@ private void SnapRight() yt.ResetCreatedYouTurn(); double dist = 0.01 * Properties.Settings.Default.setDisplay_snapDistance; curve.MoveABCurve(dist); + curve.moveDistance += dist; + } else { @@ -1348,7 +1429,9 @@ private void SnapLeft() double dist = 0.01 * Properties.Settings.Default.setDisplay_snapDistance; ABLine.MoveABLine(-dist); - FileSaveABLine(); + ABLine.moveDistance -= dist; + + //FileSaveABLine(); } else if (curve.isCurveSet) { @@ -1357,6 +1440,8 @@ private void SnapLeft() double dist = 0.01 * Properties.Settings.Default.setDisplay_snapDistance; curve.MoveABCurve(-dist); + curve.moveDistance -= dist; + } else { @@ -1364,7 +1449,6 @@ private void SnapLeft() form.Show(); } } - } private void btnSmallSnapLeft_Click(object sender, EventArgs e) @@ -1900,21 +1984,21 @@ private void btnEnableAutoYouTurn_Click(object sender, EventArgs e) public void AutoYouTurnButtonsRightTurn() { btnRightYouTurn.BackColor = Color.Yellow; - btnRightYouTurn.Height = 110; - btnRightYouTurn.Width = 110; - btnLeftYouTurn.Height = 90; - btnLeftYouTurn.Width = 96; + btnRightYouTurn.Height = 95; + btnRightYouTurn.Width = 95; + btnLeftYouTurn.Height = 66; + btnLeftYouTurn.Width = 80; btnLeftYouTurn.Text = ""; btnLeftYouTurn.BackColor = Color.LightSteelBlue; } public void AutoYouTurnButtonsLeftTurn() { btnRightYouTurn.BackColor = Color.LightSteelBlue; - btnRightYouTurn.Height = 90; - btnRightYouTurn.Width = 96; + btnRightYouTurn.Height = 66; + btnRightYouTurn.Width = 80; btnRightYouTurn.Text = ""; - btnLeftYouTurn.Height = 110; - btnLeftYouTurn.Width = 110; + btnLeftYouTurn.Height = 95; + btnLeftYouTurn.Width = 95; btnLeftYouTurn.BackColor = Color.Yellow; } public void AutoYouTurnButtonsReset() @@ -1925,10 +2009,10 @@ public void AutoYouTurnButtonsReset() //fix the buttons btnLeftYouTurn.BackColor = Color.LightSteelBlue; btnRightYouTurn.BackColor = Color.LightSteelBlue; - btnLeftYouTurn.Height = 90; - btnLeftYouTurn.Width = 96; - btnRightYouTurn.Height = 90; - btnRightYouTurn.Width = 96; + btnLeftYouTurn.Height = 66; + btnLeftYouTurn.Width = 80; + btnRightYouTurn.Height = 66; + btnRightYouTurn.Width = 80; btnLeftYouTurn.Text = ""; btnRightYouTurn.Text = ""; @@ -1958,6 +2042,7 @@ public void EnableYouTurnButtons() //turn off youturn... btnEnableAutoYouTurn.Enabled = true; + yt.isYouTurnBtnOn = false; btnEnableAutoYouTurn.Image = Properties.Resources.YouTurnNo; } public void DisableYouTurnButtons() @@ -2659,17 +2744,6 @@ private void toolStripBtnMakeBndContour_Click(object sender, EventArgs e) if (result == DialogResult.OK) { } } } - private void toolStripBtnSnap_Click(object sender, EventArgs e) - { - if (ABLine.isABLineSet) ABLine.SnapABLine(); - else if (curve.isCurveSet) curve.SnapABCurve(); - else - { - var form = new FormTimedMessage(2000, (gStr.gsNoGuidanceLines), (gStr.gsTurnOnContourOrMakeABLine)); - form.Show(); - } - } - private void toolstripYouTurnConfig_Click(object sender, EventArgs e) { var form = new FormYouTurn(this); @@ -2692,8 +2766,7 @@ private void treePlanterToolStripMenuItem_Click(object sender, EventArgs e) form.Show(); } - - + private void toolstripAutoSteerConfig_Click(object sender, EventArgs e) { //check if window already exists @@ -2724,7 +2797,6 @@ private void toolStripAutoSteerChart_Click(object sender, EventArgs e) Form formG = new FormSteerGraph(this); formG.Show(); } - private void toolStripNTRIPConfig_Click(object sender, EventArgs e) { SettingsNTRIP(); @@ -2737,8 +2809,7 @@ private void deleteContourPathsToolStripMenuItem_Click(object sender, EventArgs ct.ctList?.Clear(); contourSaveList?.Clear(); } - - + private void toolstripVehicleConfig_Click(object sender, EventArgs e) { using (var form = new FormSettings(this, 0)) @@ -2899,16 +2970,16 @@ public string FixQuality get { if (timerSim.Enabled) - return "Simulator: "; + return "Sim: "; else if (pn.fixQuality == 0) return "Invalid: "; - else if (pn.fixQuality == 1) return "GPS fix: "; - else if (pn.fixQuality == 2) return "DGPS fix: "; - else if (pn.fixQuality == 3) return "PPS fix: "; + else if (pn.fixQuality == 1) return "GPS single: "; + else if (pn.fixQuality == 2) return "DGPS : "; + else if (pn.fixQuality == 3) return "PPS : "; else if (pn.fixQuality == 4) return "RTK fix: "; - else if (pn.fixQuality == 5) return "Flt RTK: "; + else if (pn.fixQuality == 5) return "Float: "; else if (pn.fixQuality == 6) return "Estimate: "; else if (pn.fixQuality == 7) return "Man IP: "; - else if (pn.fixQuality == 8) return "Simulator: "; + else if (pn.fixQuality == 8) return "Sim: "; else return "Unknown: "; } } @@ -3068,6 +3139,11 @@ private void tmrWatchdog_tick(object sender, EventArgs e) lblpBoundaryArea.Text = fd.AreaBoundaryLessInnersHectares; lblpAreaWorked.Text = fd.WorkedHectares; lblpFieldAreaRemain.Text = fd.WorkedAreaRemainHectares; + + if (ABLine.isBtnABLineOn) lblMoveDistanceBatman.Text = (ABLine.moveDistance * 100).ToString("N0"); + else if (curve.isCurveBtnOn) lblMoveDistanceBatman.Text = (curve.moveDistance * 100).ToString("N0"); + else lblMoveDistance.Text = "*"; + } else //imperial { @@ -3100,6 +3176,10 @@ private void tmrWatchdog_tick(object sender, EventArgs e) if (isMetric) { lblAltitude.Text = Altitude; + if (ABLine.isBtnABLineOn) lblMoveDistance.Text = (ABLine.moveDistance*100).ToString("N0"); + else if (curve.isCurveBtnOn) lblMoveDistance.Text = (curve.moveDistance*100).ToString("N0"); + else lblMoveDistance.Text = "*"; + //lblBoundaryArea.Text = fd.AreaBoundaryLessInnersHectares; //lblBoundaryDistanceAway.Text = ((int)(distancePivotToTurnLine)) + " m"; //if (distPivot > 0) lblBoundaryDistanceAway.Text = ((int)(distPivot)) + " m"; @@ -3189,11 +3269,11 @@ private void tmrWatchdog_tick(object sender, EventArgs e) //lblMachineControl.Text = Convert.ToString(mc.machineControlData[mc.cnPedalControl], 2).PadLeft(8, '0'); //lblLookAhead.Text = lookaheadActual.ToString("N1") + " m"; - //txtBoxRecvAutoSteer.Text = mc.serialRecvAutoSteerStr; - //txtBoxSendAutoSteer.Text = mc.autoSteerData[mc.sdRelayLo] + ", " + mc.autoSteerData[mc.sdSpeed] - // + ", " + guidanceLineDistanceOff + ", " + guidanceLineSteerAngle + ", " + mc.machineControlData[mc.cnYouTurn]; + //txtBoxRecvAutoSteer.Text = mc.serialRecvAutoSteerStr; + //txtBoxSendAutoSteer.Text = mc.autoSteerData[mc.sdRelayLo] + ", " + mc.autoSteerData[mc.sdSpeed] + // + ", " + guidanceLineDistanceOff + ", " + guidanceLineSteerAngle + ", " + mc.machineControlData[mc.cnYouTurn]; - //Low means steer switch on + //Low means steer switch on if (mc.steerSwitchValue == 0) { this.btnTinyAutoSteerConfig.BackColor = System.Drawing.Color.LightBlue; @@ -3331,7 +3411,7 @@ private void tmrWatchdog_tick(object sender, EventArgs e) lblSpeedUnits.BackColor = SystemColors.ControlLight; txtDistanceOffABLine.BackColor = SystemColors.ControlLight; lblHz.BackColor = SystemColors.ControlLight; - lblFixQuality.BackColor = SystemColors.ControlLight; + //lblFixQuality.BackColor = SystemColors.ControlLight; //lblTest.BackColor = SystemColors.ControlLight; } else @@ -3343,15 +3423,15 @@ private void tmrWatchdog_tick(object sender, EventArgs e) lblSpeedUnits.BackColor = Color.Tomato; txtDistanceOffABLine.BackColor = Color.Tomato; lblHz.BackColor = Color.Tomato; - lblFixQuality.BackColor = Color.Tomato; + //lblFixQuality.BackColor = Color.Tomato; //lblTest.BackColor = Color.Tomato; } } //not Metric/Standard units sensitive - lblFixQuality.Text = FixQuality + HzTime.ToString("N1") + " Hz"; + //lblFixQuality.Text = ; lblLidarDistance.Text = (mc.lidarDistance * 0.01).ToString(); - lblHz.Text = NMEAHz + "Hz " + (int)(frameTime); + lblHz.Text = NMEAHz + "Hz " + (int)(frameTime) + "\r\n" + FixQuality + HzTime.ToString("N1") + " Hz"; } diff --git a/SourceCode/GPS/Forms/OpenGL.Designer.cs b/SourceCode/GPS/Forms/OpenGL.Designer.cs index 8b2eb8216..e878add3b 100644 --- a/SourceCode/GPS/Forms/OpenGL.Designer.cs +++ b/SourceCode/GPS/Forms/OpenGL.Designer.cs @@ -278,15 +278,13 @@ private void oglMain_Paint(object sender, PaintEventArgs e) GL.Disable(EnableCap.Texture2D); } } - - - + if (isLightbarOn) //{ } //else { - double set = guidanceLineSteerAngle * 0.01 * (100/vehicle.maxSteerAngle); - double actual = actualSteerAngleDisp * 0.01 * (100 / vehicle.maxSteerAngle); + double set = guidanceLineSteerAngle * 0.01 * (50/vehicle.maxSteerAngle); + double actual = actualSteerAngleDisp * 0.01 * (50 / vehicle.maxSteerAngle); double hiit = 0; GL.PushMatrix(); @@ -298,7 +296,7 @@ private void oglMain_Paint(object sender, PaintEventArgs e) GL.LineWidth(1); GL.Color3(0.54f, 0.54f, 0.54f); - double wiid = 100; + double wiid = 50; GL.Begin(PrimitiveType.LineStrip); GL.Vertex2(-wiid, 25); @@ -309,7 +307,6 @@ private void oglMain_Paint(object sender, PaintEventArgs e) GL.Translate(0, 10, 0); - //if (!simulatorOnToolStripMenuItem.Checked) { if (actualSteerAngleDisp > 0) { @@ -318,8 +315,8 @@ private void oglMain_Paint(object sender, PaintEventArgs e) GL.Color3(0.0f, 0.75930f, 0.0f); GL.Vertex2(0, hiit); - GL.Vertex2(actual, hiit + 15); - GL.Vertex2(0, hiit + 30); + GL.Vertex2(actual, hiit + 8); + GL.Vertex2(0, hiit + 16); GL.Vertex2(0, hiit); GL.End(); @@ -332,8 +329,8 @@ private void oglMain_Paint(object sender, PaintEventArgs e) GL.Color3(0.75930f, 0.0f, 0.0f); GL.Vertex2(-0, hiit); - GL.Vertex2(actual, hiit + 15); - GL.Vertex2(-0, hiit + 30); + GL.Vertex2(actual, hiit + 8); + GL.Vertex2(-0, hiit + 16); GL.Vertex2(-0, hiit); GL.End(); @@ -347,8 +344,8 @@ private void oglMain_Paint(object sender, PaintEventArgs e) GL.Color3(0.75930f, 0.75930f, 0.0f); GL.Vertex2(0, hiit); - GL.Vertex2(set, hiit + 15); - GL.Vertex2(0, hiit + 30); + GL.Vertex2(set, hiit + 8); + GL.Vertex2(0, hiit + 16); GL.Vertex2(0, hiit); GL.End(); @@ -360,8 +357,8 @@ private void oglMain_Paint(object sender, PaintEventArgs e) GL.Color3(0.75930f, 0.75930f, 0.0f); GL.Vertex2(-0, hiit); - GL.Vertex2(set, hiit + 15); - GL.Vertex2(-0, hiit + 30); + GL.Vertex2(set, hiit + 8); + GL.Vertex2(-0, hiit + 16); GL.Vertex2(-0, hiit); GL.End(); @@ -370,11 +367,8 @@ private void oglMain_Paint(object sender, PaintEventArgs e) //return back GL.PopMatrix(); GL.LineWidth(1); - } - - //LightBar if AB Line is set and turned on or contour if (isLightbarOn) { @@ -998,7 +992,7 @@ private void oglZoom_Paint(object sender, PaintEventArgs e) } //end of section patches //draw the ABLine - if (ABLine.isABLineSet | ABLine.isABLineBeingSet) + if ((ABLine.isABLineSet | ABLine.isABLineBeingSet) && ABLine.isBtnABLineOn) { //Draw reference AB line GL.LineWidth(1); @@ -1014,20 +1008,20 @@ private void oglZoom_Paint(object sender, PaintEventArgs e) //raw current AB Line GL.Begin(PrimitiveType.Lines); - GL.Color3(0.9f, 0.0f, 0.0f); + GL.Color3(0.9f, 0.20f, 0.0f); GL.Vertex3(ABLine.currentABLineP1.easting, ABLine.currentABLineP1.northing, 0.0); GL.Vertex3(ABLine.currentABLineP2.easting, ABLine.currentABLineP2.northing, 0.0); GL.End(); } //draw curve if there is one - if (curve.isCurveSet) + if (curve.isCurveSet && curve.isCurveBtnOn) { int ptC = curve.curList.Count; if (ptC > 0) { GL.LineWidth(2); - GL.Color3(0.95f, 0.2f, 0.0f); + GL.Color3(0.25f, 0.92f, 0.0f); GL.Begin(PrimitiveType.LineStrip); for (int h = 0; h < ptC; h++) GL.Vertex3(curve.curList[h].easting, curve.curList[h].northing, 0); GL.End(); diff --git a/SourceCode/GPS/Forms/Position.designer.cs b/SourceCode/GPS/Forms/Position.designer.cs index 01115ad49..0a604c956 100644 --- a/SourceCode/GPS/Forms/Position.designer.cs +++ b/SourceCode/GPS/Forms/Position.designer.cs @@ -468,9 +468,20 @@ private void UpdateFixPosition() //distance from current pivot to first point of youturn pattern distancePivotToTurnLine = glm.Distance(yt.ytList[0], steerAxlePos); + if ((distancePivotToTurnLine <= 20.0) && (distancePivotToTurnLine >= 18.0) && !yt.isYouTurnTriggered) + + if (!isBoundAlarming) + { + sndBoundaryAlarm.Play(); + isBoundAlarming = true; + } + //if we are close enough to pattern, trigger. if ((distancePivotToTurnLine <= 1.0) && (distancePivotToTurnLine >= 0) && !yt.isYouTurnTriggered) + { yt.YouTurnTrigger(); + isBoundAlarming = false; + } } } } // end of isInWorkingArea @@ -507,6 +518,8 @@ private void UpdateFixPosition() frameTime = (double)swFrame.ElapsedTicks / (double)System.Diagnostics.Stopwatch.Frequency * 1000; } + public bool isBoundAlarming; + //all the hitch, pivot, section, trailing hitch, headings and fixes private void CalculatePositionHeading() diff --git a/SourceCode/GPS/Forms/SaveOpen.Designer.cs b/SourceCode/GPS/Forms/SaveOpen.Designer.cs index b25de17b3..acae05c46 100644 --- a/SourceCode/GPS/Forms/SaveOpen.Designer.cs +++ b/SourceCode/GPS/Forms/SaveOpen.Designer.cs @@ -11,12 +11,381 @@ namespace AgOpenGPS public partial class FormGPS { + //public void FileAppendCurveLine(string curveName) + //{ + // //get the directory and make sure it exists, create if not + // string dirField = fieldsDirectory + currentFieldDirectory + "\\"; + // string directoryName = Path.GetDirectoryName(dirField); + + // if ((directoryName.Length > 0) && (!Directory.Exists(directoryName))) + // { Directory.CreateDirectory(directoryName); } + + // string filename = directoryName + "\\CurveLines.txt"; + + // //use Streamwriter to create and append to existing curveLines file + // using (StreamWriter writer = new StreamWriter(filename, true)) + // { + // try + // { + // if (curve.refList.Count > 0) + // { + // if (curveName.Length > 0) + // { + // curve.curveArr.Add(new CCurveLines()); + // curve.curveArr[curve.curveArr.Count - 1].Name = curveName; + // curve.curveArr[curve.curveArr.Count - 1].aveHeading = curve.aveLineHeading; + + // //write out the ABLine + // writer.WriteLine(curveName); + + // //write out the aveheading + // writer.WriteLine(curve.aveLineHeading.ToString(CultureInfo.InvariantCulture)); + + // //write out the points of ref line + // writer.WriteLine(curve.refList.Count.ToString(CultureInfo.InvariantCulture)); + + // for (int j = 0; j < curve.refList.Count; j++) + // { + // curve.curveArr[curve.curveArr.Count - 1].curvePts.Add(curve.refList[j]); + // writer.WriteLine(Math.Round(curve.refList[j].easting, 3).ToString(CultureInfo.InvariantCulture) + "," + + // Math.Round(curve.refList[j].northing, 3).ToString(CultureInfo.InvariantCulture) + "," + + // Math.Round(curve.refList[j].heading, 5).ToString(CultureInfo.InvariantCulture)); + // } + // } + // else + // { + // //MessageBox.Show("Currently no ABCurve name\n create ABCurve name"); + // var form2 = new FormTimedMessage(2000, gStr.gsNoNameEntered, gStr.gsEnterUniqueABCurveName); + // form2.Show(); + // } + // } + // else + // { + // var form2 = new FormTimedMessage(2000, gStr.gsNoABCurveCreated, gStr.gsCompleteAnABCurveLineFirst); + // form2.Show(); + // } + // } + // catch (Exception er) + // { + // WriteErrorLog("Saving Curve Line" + er.ToString()); + + // return; + // } + // } + + // if (curve.numCurveLines == 0) curve.numCurveLineSelected = 0; + // if (curve.numCurveLineSelected > curve.numCurveLines) curve.numCurveLineSelected = curve.numCurveLines; + + //} + //public void FileAppendABLine() + //{ + // //make sure at least a global blank AB Line file exists + // string dirField = fieldsDirectory + currentFieldDirectory + "\\"; + // string directoryName = Path.GetDirectoryName(dirField).ToString(CultureInfo.InvariantCulture); + + // if ((directoryName.Length > 0) && (!Directory.Exists(directoryName))) + // { Directory.CreateDirectory(directoryName); } + + // string filename = directoryName + "\\ABLines.txt"; + + // ABLine.numABLines = ABLine.lineArr.Count; + + // if (ABLine.numABLines > 0) + // { + // int idx = ABLine.numABLines - 1; + + // using (StreamWriter writer = new StreamWriter(filename, true)) + // { + // try + // { + + // //make it culture invariant + // string line = ABLine.lineArr[idx].Name.Trim() + // + ',' + (Math.Round(glm.toDegrees(ABLine.lineArr[idx].heading), 8)).ToString(CultureInfo.InvariantCulture) + // + ',' + (Math.Round(ABLine.lineArr[idx].origin.easting, 3)).ToString(CultureInfo.InvariantCulture) + // + ',' + (Math.Round(ABLine.lineArr[idx].origin.northing, 3)).ToString(CultureInfo.InvariantCulture); + + // //write out to file + // writer.WriteLine(line); + // } + // catch (Exception er) + // { + // Console.WriteLine(er.Message + "\n Cannot write to file."); + // WriteErrorLog("Saving ABLines Draw append" + er.ToString()); + // return; + // } + // } + // } + + // if (ABLine.numABLines == 0) ABLine.numABLines = 0; + // if (ABLine.numABLineSelected > ABLine.numABLines) ABLine.numABLineSelected = ABLine.numABLines; + //} + //list of the list of patch data individual triangles for field sections public List> patchSaveList = new List>(); //list of the list of patch data individual triangles for contour tracking public List> contourSaveList = new List>(); + public void FileSaveCurveLines() + { + string dirField = fieldsDirectory + currentFieldDirectory + "\\"; + string directoryName = Path.GetDirectoryName(dirField).ToString(CultureInfo.InvariantCulture); + + if ((directoryName.Length > 0) && (!Directory.Exists(directoryName))) + { Directory.CreateDirectory(directoryName); } + + string filename = directoryName + "\\CurveLines.txt"; + + int cnt = curve.curveArr.Count; + curve.numCurveLines = cnt; + + using (StreamWriter writer = new StreamWriter(filename, false)) + { + try + { + if (cnt > 0) + { + writer.WriteLine("$CurveLines"); + + for (int i = 0; i < cnt; i++) + { + //write out the Name + writer.WriteLine(curve.curveArr[i].Name); + + //write out the aveheading + writer.WriteLine(curve.curveArr[i].aveHeading.ToString(CultureInfo.InvariantCulture)); + + //write out the points of ref line + int cnt2 = curve.curveArr[i].curvePts.Count; + + writer.WriteLine(cnt2.ToString(CultureInfo.InvariantCulture)); + if (curve.curveArr[i].curvePts.Count > 0) + { + for (int j = 0; j < cnt2; j++) + writer.WriteLine(Math.Round(curve.curveArr[i].curvePts[j].easting, 3).ToString(CultureInfo.InvariantCulture) + "," + + Math.Round(curve.curveArr[i].curvePts[j].northing, 3).ToString(CultureInfo.InvariantCulture) + "," + + Math.Round(curve.curveArr[i].curvePts[j].heading, 5).ToString(CultureInfo.InvariantCulture)); + } + } + } + else + { + writer.WriteLine("$CurveLines"); + } + } + catch (Exception er) + { + WriteErrorLog("Saving Curve Line" + er.ToString()); + + return; + } + } + + if (curve.numCurveLines == 0) curve.numCurveLineSelected = 0; + if (curve.numCurveLineSelected > curve.numCurveLines) curve.numCurveLineSelected = curve.numCurveLines; + + } + + public void FileLoadCurveLines() + { + curve.curveArr?.Clear(); + curve.numCurveLines = 0; + + //get the directory and make sure it exists, create if not + string dirField = fieldsDirectory + currentFieldDirectory + "\\"; + string directoryName = Path.GetDirectoryName(dirField); + + if ((directoryName.Length > 0) && (!Directory.Exists(directoryName))) + { Directory.CreateDirectory(directoryName); } + + string filename = directoryName + "\\CurveLines.txt"; + + if (!File.Exists(filename)) + { + using (StreamWriter writer = new StreamWriter(filename)) + { + writer.WriteLine("$CurveLines"); + } + } + + //get the file of previous AB Lines + if ((directoryName.Length > 0) && (!Directory.Exists(directoryName))) + { Directory.CreateDirectory(directoryName); } + + if (!File.Exists(filename)) + { + TimedMessageBox(2000, gStr.gsFileError, gStr.gsMissingABCurveFile); + } + else + { + using (StreamReader reader = new StreamReader(filename)) + { + try + { + string line; + + //read header $CurveLine + line = reader.ReadLine(); + + while (!reader.EndOfStream) + { + curve.curveArr.Add(new CCurveLines()); + + //read header $CurveLine + curve.curveArr[curve.numCurveLines].Name = reader.ReadLine(); + // get the average heading + line = reader.ReadLine(); + curve.curveArr[curve.numCurveLines].aveHeading = double.Parse(line, CultureInfo.InvariantCulture); + + line = reader.ReadLine(); + int numPoints = int.Parse(line); + + if (numPoints > 1) + { + curve.curveArr[curve.numCurveLines].curvePts?.Clear(); + + for (int i = 0; i < numPoints; i++) + { + line = reader.ReadLine(); + string[] words = line.Split(','); + vec3 vecPt = new vec3(double.Parse(words[0], CultureInfo.InvariantCulture), + double.Parse(words[1], CultureInfo.InvariantCulture), + double.Parse(words[2], CultureInfo.InvariantCulture)); + curve.curveArr[curve.numCurveLines].curvePts.Add(vecPt); + } + curve.numCurveLines++; + } + else + { + if (curve.curveArr.Count > 0) + { + curve.curveArr.RemoveAt(curve.numCurveLines); + } + } + } + } + catch (Exception er) + { + var form = new FormTimedMessage(2000, gStr.gsCurveLineFileIsCorrupt, gStr.gsButFieldIsLoaded); + form.Show(); + WriteErrorLog("Load Curve Line" + er.ToString()); + } + } + } + + if (curve.numCurveLines == 0) curve.numCurveLineSelected = 0; + if (curve.numCurveLineSelected > curve.numCurveLines) curve.numCurveLineSelected = curve.numCurveLines; + } + + public void FileSaveABLines() + { + //make sure at least a global blank AB Line file exists + string dirField = fieldsDirectory + currentFieldDirectory + "\\"; + string directoryName = Path.GetDirectoryName(dirField).ToString(CultureInfo.InvariantCulture); + + //get the file of previous AB Lines + if ((directoryName.Length > 0) && (!Directory.Exists(directoryName))) + { Directory.CreateDirectory(directoryName); } + + string filename = directoryName + "\\ABLines.txt"; + int cnt = ABLine.lineArr.Count; + + using (StreamWriter writer = new StreamWriter(filename, false)) + { + if (cnt > 0) + { + foreach (var item in ABLine.lineArr) + { + //make it culture invariant + string line = item.Name + + ',' + (Math.Round(glm.toDegrees(item.heading), 8)).ToString(CultureInfo.InvariantCulture) + + ',' + (Math.Round(item.origin.easting, 3)).ToString(CultureInfo.InvariantCulture) + + ',' + (Math.Round(item.origin.northing, 3)).ToString(CultureInfo.InvariantCulture); + + //write out to file + writer.WriteLine(line); + } + } + } + + if (ABLine.numABLines == 0) ABLine.numABLineSelected = 0; + if (ABLine.numABLineSelected > ABLine.numABLines) ABLine.numABLineSelected = ABLine.numABLines; + } + + public void FileLoadABLines() + { + //make sure at least a global blank AB Line file exists + string dirField = fieldsDirectory + currentFieldDirectory + "\\"; + string directoryName = Path.GetDirectoryName(dirField).ToString(CultureInfo.InvariantCulture); + + if ((directoryName.Length > 0) && (!Directory.Exists(directoryName))) + { Directory.CreateDirectory(directoryName); } + + string filename = directoryName + "\\ABLines.txt"; + + if (!File.Exists(filename)) + { + using (StreamWriter writer = new StreamWriter(filename)) + { + } + } + + if (!File.Exists(filename)) + { + TimedMessageBox(2000, gStr.gsFileError, gStr.gsMissingABLinesFile); + } + else + { + using (StreamReader reader = new StreamReader(filename)) + { + try + { + string line; + ABLine.numABLines = 0; + ABLine.numABLineSelected = 0; + ABLine.lineArr?.Clear(); + + //read all the lines + for (int i = 0; !reader.EndOfStream; i++) + { + + line = reader.ReadLine(); + string[] words = line.Split(','); + + if (words.Length != 4) break; + + ABLine.lineArr.Add(new CABLines()); + + ABLine.lineArr[i].Name = words[0]; + + + ABLine.lineArr[i].heading = glm.toRadians(double.Parse(words[1], CultureInfo.InvariantCulture)); + ABLine.lineArr[i].origin.easting = double.Parse(words[2], CultureInfo.InvariantCulture); + ABLine.lineArr[i].origin.northing = double.Parse(words[3], CultureInfo.InvariantCulture); + + ABLine.lineArr[i].ref1.easting = ABLine.lineArr[i].origin.easting - (Math.Sin(ABLine.lineArr[i].heading) * 2000.0); + ABLine.lineArr[i].ref1.northing = ABLine.lineArr[i].origin.northing - (Math.Cos(ABLine.lineArr[i].heading) * 2000.0); + + ABLine.lineArr[i].ref2.easting = ABLine.lineArr[i].origin.easting + (Math.Sin(ABLine.lineArr[i].heading) * 2000.0); + ABLine.lineArr[i].ref2.northing = ABLine.lineArr[i].origin.northing + (Math.Cos(ABLine.lineArr[i].heading) * 2000.0); + ABLine.numABLines++; + } + } + catch (Exception er) + { + var form = new FormTimedMessage(2000, gStr.gsABLineFileIsCorrupt, "Please delete it!!!"); + form.Show(); + WriteErrorLog("FieldOpen, Loading ABLine, Corrupt ABLine File" + er); + } + } + } + + if (ABLine.numABLines == 0) ABLine.numABLineSelected = 0; + if (ABLine.numABLineSelected > ABLine.numABLines) ABLine.numABLineSelected = ABLine.numABLines; + + } + //function that save vehicle and section settings public void FileSaveVehicle() { @@ -705,12 +1074,183 @@ public void FileOpenField(string _openType) WriteErrorLog("While Opening Field" + e.ToString()); var form = new FormTimedMessage(2000, gStr.gsFieldFileIsCorrupt, gStr.gsChooseADifferentField); + form.Show(); JobClose(); return; } } + // ABLine ------------------------------------------------------------------------------------------------- + FileLoadABLines(); + + if (ABLine.lineArr.Count > 0) + { + ABLine.numABLineSelected = 1; + ABLine.refPoint1 = ABLine.lineArr[ABLine.numABLineSelected - 1].origin; + //ABLine.refPoint2 = ABLine.lineArr[ABLine.numABLineSelected - 1].ref2; + ABLine.abHeading = ABLine.lineArr[ABLine.numABLineSelected - 1].heading; + ABLine.SetABLineByHeading(); + ABLine.isABLineSet = false; + ABLine.isABLineLoaded = true; + } + else + { + ABLine.isABLineSet = false; + ABLine.isABLineLoaded = false; + } + + + //CurveLines + FileLoadCurveLines(); + if (curve.curveArr.Count > 0) + { + curve.numCurveLineSelected = 1; + int idx = curve.numCurveLineSelected - 1; + curve.aveLineHeading = curve.curveArr[idx].aveHeading; + + curve.refList?.Clear(); + for (int i = 0; i < curve.curveArr[idx].curvePts.Count; i++) + { + curve.refList.Add(curve.curveArr[idx].curvePts[i]); + } + curve.isCurveSet = true; + } + else + { + curve.isCurveSet = false; + curve.refList?.Clear(); + } + + ////Either exit or update running save + //fileAndDirectory = fieldsDirectory + currentFieldDirectory + "\\ABLine.txt"; + //if (!File.Exists(fileAndDirectory)) + //{ + // var form = new FormTimedMessage(2000, gStr.gsMissingABLinesFile, gStr.gsButFieldIsLoaded); + // form.Show(); + //} + + //else + //{ + // using (StreamReader reader = new StreamReader(fileAndDirectory)) + // { + // try + // { + // ABLine.isABLineLoaded = false; + + // //read header + // line = reader.ReadLine(); + + // line = reader.ReadLine(); + // bool isAB = bool.Parse(line); + + // if (isAB) + // { + // //Heading , ,refPoint2x,z + // line = reader.ReadLine(); + // ABLine.abHeading = double.Parse(line, CultureInfo.InvariantCulture); + + // //refPoint1x,z + // line = reader.ReadLine(); + // string[] words = line.Split(','); + // ABLine.refPoint1.easting = double.Parse(words[0], CultureInfo.InvariantCulture); + // ABLine.refPoint1.northing = double.Parse(words[1], CultureInfo.InvariantCulture); + + // //refPoint2x,z + // line = reader.ReadLine(); + // words = line.Split(','); + // ABLine.refPoint2.easting = double.Parse(words[0], CultureInfo.InvariantCulture); + // ABLine.refPoint2.northing = double.Parse(words[1], CultureInfo.InvariantCulture); + + // //Tramline + // line = reader.ReadLine(); + // words = line.Split(','); + // ABLine.tramPassEvery = int.Parse(words[0]); + // ABLine.passBasedOn = int.Parse(words[1]); + + // ABLine.refABLineP1.easting = ABLine.refPoint1.easting - Math.Sin(ABLine.abHeading) * 4000.0; + // ABLine.refABLineP1.northing = ABLine.refPoint1.northing - Math.Cos(ABLine.abHeading) * 4000.0; + + // ABLine.refABLineP2.easting = ABLine.refPoint1.easting + Math.Sin(ABLine.abHeading) * 4000.0; + // ABLine.refABLineP2.northing = ABLine.refPoint1.northing + Math.Cos(ABLine.abHeading) * 4000.0; + + // ABLine.isABLineLoaded = true; + + // } + + // //clean up from last field maybe + // ABLine.isABLineSet = false; + // ABLine.isBtnABLineOn = false; + // DisableYouTurnButtons(); + // btnContourPriority.Enabled = true; + // btnABLine.Image = global::AgOpenGPS.Properties.Resources.ABLineOff; + // } + + // catch (Exception e) + // { + // var form = new FormTimedMessage(2000, gStr.gsABLineFileIsCorrupt, gStr.gsButFieldIsLoaded); + // form.Show(); + // WriteErrorLog("Load AB Line" + e.ToString()); + + // } + // } + //} + //// CurveLine ------------------------------------------------------------------------------------------------- + + ////Either exit or update running save + //fileAndDirectory = fieldsDirectory + currentFieldDirectory + "\\CurveLine.txt"; + //if (!File.Exists(fileAndDirectory)) + //{ + // var form = new FormTimedMessage(2000, gStr.gsMissingABCurveFile, gStr.gsButFieldIsLoaded); + // form.Show(); + //} + + //else + //{ + // using (StreamReader reader = new StreamReader(fileAndDirectory)) + // { + // try + // { + // //read header + // line = reader.ReadLine(); + + // // get the average heading + // line = reader.ReadLine(); + // curve.aveLineHeading = double.Parse(line, CultureInfo.InvariantCulture); + + + // line = reader.ReadLine(); + // int numPoints = int.Parse(line); + + // if (numPoints > 0) + // { + // curve.refList?.Clear(); + + // //load the line + // for (int i = 0; i < numPoints; i++) + // { + // line = reader.ReadLine(); + // string[] words = line.Split(','); + // vec3 vecPt = new vec3( + // double.Parse(words[0], CultureInfo.InvariantCulture), + // double.Parse(words[1], CultureInfo.InvariantCulture), + // double.Parse(words[2], CultureInfo.InvariantCulture)); + + // curve.refList.Add(vecPt); + // } + // } + // } + + // catch (Exception e) + // { + // var form = new FormTimedMessage(2000, gStr.gsCurveLineFileIsCorrupt, gStr.gsButFieldIsLoaded); + // form.Show(); + // WriteErrorLog("Load Boundary Line" + e.ToString()); + + // } + // } + //} + //section patches fileAndDirectory = fieldsDirectory + currentFieldDirectory + "\\Sections.txt"; if (!File.Exists(fileAndDirectory)) @@ -888,82 +1428,6 @@ public void FileOpenField(string _openType) } - // ABLine ------------------------------------------------------------------------------------------------- - - //Either exit or update running save - fileAndDirectory = fieldsDirectory + currentFieldDirectory + "\\ABLine.txt"; - if (!File.Exists(fileAndDirectory)) - { - var form = new FormTimedMessage(2000, gStr.gsMissingABLinesFile, gStr.gsButFieldIsLoaded); - form.Show(); - } - - else - { - using (StreamReader reader = new StreamReader(fileAndDirectory)) - { - try - { - ABLine.isABLineLoaded = false; - - //read header - line = reader.ReadLine(); - - line = reader.ReadLine(); - bool isAB = bool.Parse(line); - - if (isAB) - { - //Heading , ,refPoint2x,z - line = reader.ReadLine(); - ABLine.abHeading = double.Parse(line, CultureInfo.InvariantCulture); - - //refPoint1x,z - line = reader.ReadLine(); - string[] words = line.Split(','); - ABLine.refPoint1.easting = double.Parse(words[0], CultureInfo.InvariantCulture); - ABLine.refPoint1.northing = double.Parse(words[1], CultureInfo.InvariantCulture); - - //refPoint2x,z - line = reader.ReadLine(); - words = line.Split(','); - ABLine.refPoint2.easting = double.Parse(words[0], CultureInfo.InvariantCulture); - ABLine.refPoint2.northing = double.Parse(words[1], CultureInfo.InvariantCulture); - - //Tramline - line = reader.ReadLine(); - words = line.Split(','); - ABLine.tramPassEvery = int.Parse(words[0]); - ABLine.passBasedOn = int.Parse(words[1]); - - ABLine.refABLineP1.easting = ABLine.refPoint1.easting - Math.Sin(ABLine.abHeading) * 4000.0; - ABLine.refABLineP1.northing = ABLine.refPoint1.northing - Math.Cos(ABLine.abHeading) * 4000.0; - - ABLine.refABLineP2.easting = ABLine.refPoint1.easting + Math.Sin(ABLine.abHeading) * 4000.0; - ABLine.refABLineP2.northing = ABLine.refPoint1.northing + Math.Cos(ABLine.abHeading) * 4000.0; - - ABLine.isABLineLoaded = true; - - } - - //clean up from last field maybe - ABLine.isABLineSet = false; - ABLine.isBtnABLineOn = false; - DisableYouTurnButtons(); - btnContourPriority.Enabled = true; - btnABLine.Image = global::AgOpenGPS.Properties.Resources.ABLineOff; - } - - catch (Exception e) - { - var form = new FormTimedMessage(2000, gStr.gsABLineFileIsCorrupt, gStr.gsButFieldIsLoaded); - form.Show(); - WriteErrorLog("Load AB Line" + e.ToString()); - - } - } - } - //Boundaries //Either exit or update running save fileAndDirectory = fieldsDirectory + currentFieldDirectory + "\\Boundary.txt"; @@ -1150,61 +1614,7 @@ public void FileOpenField(string _openType) } } - // CurveLine ------------------------------------------------------------------------------------------------- - - //Either exit or update running save - fileAndDirectory = fieldsDirectory + currentFieldDirectory + "\\CurveLine.txt"; - if (!File.Exists(fileAndDirectory)) - { - var form = new FormTimedMessage(2000, gStr.gsMissingABCurveFile, gStr.gsButFieldIsLoaded); - form.Show(); - } - - else - { - using (StreamReader reader = new StreamReader(fileAndDirectory)) - { - try - { - //read header - line = reader.ReadLine(); - - // get the average heading - line = reader.ReadLine(); - curve.aveLineHeading = double.Parse(line, CultureInfo.InvariantCulture); - - - line = reader.ReadLine(); - int numPoints = int.Parse(line); - - if (numPoints > 0) - { - curve.refList?.Clear(); - //load the line - for (int i = 0; i < numPoints; i++) - { - line = reader.ReadLine(); - string[] words = line.Split(','); - vec3 vecPt = new vec3( - double.Parse(words[0], CultureInfo.InvariantCulture), - double.Parse(words[1], CultureInfo.InvariantCulture), - double.Parse(words[2], CultureInfo.InvariantCulture)); - - curve.refList.Add(vecPt); - } - } - } - - catch (Exception e) - { - var form = new FormTimedMessage(2000, gStr.gsCurveLineFileIsCorrupt, gStr.gsButFieldIsLoaded); - form.Show(); - WriteErrorLog("Load Boundary Line" + e.ToString()); - - } - } - } }//end of open file //creates the field file when starting new field @@ -1578,89 +1988,89 @@ public void FileSaveFlags() } //save all the flag markers - public void FileSaveABLine() - { - //Saturday, February 11, 2017 --> 7:26:52 AM + //public void FileSaveABLine() + //{ + // //Saturday, February 11, 2017 --> 7:26:52 AM - //get the directory and make sure it exists, create if not - string dirField = fieldsDirectory + currentFieldDirectory + "\\"; + // //get the directory and make sure it exists, create if not + // string dirField = fieldsDirectory + currentFieldDirectory + "\\"; - string directoryName = Path.GetDirectoryName(dirField); - if ((directoryName.Length > 0) && (!Directory.Exists(directoryName))) - { Directory.CreateDirectory(directoryName); } + // string directoryName = Path.GetDirectoryName(dirField); + // if ((directoryName.Length > 0) && (!Directory.Exists(directoryName))) + // { Directory.CreateDirectory(directoryName); } - //use Streamwriter to create and overwrite existing ABLine file - using (StreamWriter writer = new StreamWriter(dirField + "ABLine.txt")) - { - try - { - //write out the ABLine - writer.WriteLine("$ABLine"); + // //use Streamwriter to create and overwrite existing ABLine file + // using (StreamWriter writer = new StreamWriter(dirField + "ABLine.txt")) + // { + // try + // { + // //write out the ABLine + // writer.WriteLine("$ABLine"); - //true or false if ABLine is set - if (ABLine.isABLineSet) writer.WriteLine(true); - else writer.WriteLine(false); + // //true or false if ABLine is set + // if (ABLine.isABLineSet) writer.WriteLine(true); + // else writer.WriteLine(false); - writer.WriteLine(ABLine.abHeading.ToString(CultureInfo.InvariantCulture)); - writer.WriteLine(ABLine.refPoint1.easting.ToString(CultureInfo.InvariantCulture) + "," + ABLine.refPoint1.northing.ToString(CultureInfo.InvariantCulture)); - writer.WriteLine(ABLine.refPoint2.easting.ToString(CultureInfo.InvariantCulture) + "," + ABLine.refPoint2.northing.ToString(CultureInfo.InvariantCulture)); - writer.WriteLine(ABLine.tramPassEvery.ToString(CultureInfo.InvariantCulture) + "," + ABLine.passBasedOn.ToString(CultureInfo.InvariantCulture)); - } + // writer.WriteLine(ABLine.abHeading.ToString(CultureInfo.InvariantCulture)); + // writer.WriteLine(ABLine.refPoint1.easting.ToString(CultureInfo.InvariantCulture) + "," + ABLine.refPoint1.northing.ToString(CultureInfo.InvariantCulture)); + // writer.WriteLine(ABLine.refPoint2.easting.ToString(CultureInfo.InvariantCulture) + "," + ABLine.refPoint2.northing.ToString(CultureInfo.InvariantCulture)); + // writer.WriteLine(ABLine.tramPassEvery.ToString(CultureInfo.InvariantCulture) + "," + ABLine.passBasedOn.ToString(CultureInfo.InvariantCulture)); + // } - catch (Exception e) - { - Console.WriteLine(e.Message + "\n Cannot write to file."); - WriteErrorLog("Saving AB Line" + e.ToString()); + // catch (Exception e) + // { + // Console.WriteLine(e.Message + "\n Cannot write to file."); + // WriteErrorLog("Saving AB Line" + e.ToString()); - return; - } + // return; + // } - } - } + // } + //} //save all the flag markers - public void FileSaveCurveLine() - { - //Saturday, February 11, 2017 --> 7:26:52 AM + //public void FileSaveCurveLine() + //{ + // //Saturday, February 11, 2017 --> 7:26:52 AM - //get the directory and make sure it exists, create if not - string dirField = fieldsDirectory + currentFieldDirectory + "\\"; + // //get the directory and make sure it exists, create if not + // string dirField = fieldsDirectory + currentFieldDirectory + "\\"; - string directoryName = Path.GetDirectoryName(dirField); - if ((directoryName.Length > 0) && (!Directory.Exists(directoryName))) - { Directory.CreateDirectory(directoryName); } + // string directoryName = Path.GetDirectoryName(dirField); + // if ((directoryName.Length > 0) && (!Directory.Exists(directoryName))) + // { Directory.CreateDirectory(directoryName); } - //use Streamwriter to create and overwrite existing ABLine file - using (StreamWriter writer = new StreamWriter(dirField + "CurveLine.txt")) - { - try - { - //write out the ABLine - writer.WriteLine("$CurveLine"); + // //use Streamwriter to create and overwrite existing ABLine file + // using (StreamWriter writer = new StreamWriter(dirField + "CurveLine.txt")) + // { + // try + // { + // //write out the ABLine + // writer.WriteLine("$CurveLine"); - //write out the aveheading - writer.WriteLine(curve.aveLineHeading.ToString(CultureInfo.InvariantCulture)); + // //write out the aveheading + // writer.WriteLine(curve.aveLineHeading.ToString(CultureInfo.InvariantCulture)); - //write out the points of ref line - writer.WriteLine(curve.refList.Count.ToString(CultureInfo.InvariantCulture)); - if (curve.refList.Count > 0) - { - for (int j = 0; j < curve.refList.Count; j++) - writer.WriteLine(Math.Round(curve.refList[j].easting, 3).ToString(CultureInfo.InvariantCulture) + "," + - Math.Round(curve.refList[j].northing, 3).ToString(CultureInfo.InvariantCulture) + "," + - Math.Round(curve.refList[j].heading, 5).ToString(CultureInfo.InvariantCulture)); - } - } + // //write out the points of ref line + // writer.WriteLine(curve.refList.Count.ToString(CultureInfo.InvariantCulture)); + // if (curve.refList.Count > 0) + // { + // for (int j = 0; j < curve.refList.Count; j++) + // writer.WriteLine(Math.Round(curve.refList[j].easting, 3).ToString(CultureInfo.InvariantCulture) + "," + + // Math.Round(curve.refList[j].northing, 3).ToString(CultureInfo.InvariantCulture) + "," + + // Math.Round(curve.refList[j].heading, 5).ToString(CultureInfo.InvariantCulture)); + // } + // } - catch (Exception e) - { - WriteErrorLog("Saving Curve Line" + e.ToString()); + // catch (Exception e) + // { + // WriteErrorLog("Saving Curve Line" + e.ToString()); - return; - } + // return; + // } - } - } + // } + //} //save nmea sentences public void FileSaveNMEA() diff --git a/SourceCode/GPS/Forms/UDPComm.Designer.cs b/SourceCode/GPS/Forms/UDPComm.Designer.cs index ae692fa4a..ebe0cfd06 100644 --- a/SourceCode/GPS/Forms/UDPComm.Designer.cs +++ b/SourceCode/GPS/Forms/UDPComm.Designer.cs @@ -222,6 +222,161 @@ private void UpdateRecvMessage(int port, byte[] data) } } + #region keystrokes + //keystrokes for easy and quick startup + protected override bool ProcessCmdKey(ref Message msg, Keys keyData) + { + //reset Sim + if (keyData == Keys.L) + { + btnResetSim.PerformClick(); + return true; + } + + //speed up + if (keyData == Keys.Up) + { + sim.stepDistance += 0.05; + if (sim.stepDistance > 4.8) sim.stepDistance = 4.8; + hsbarStepDistance.Value = (int)(sim.stepDistance * 10.0 * fixUpdateHz); + + return true; + } + + //Stop + if (keyData == Keys.OemPeriod) + { + sim.stepDistance = 0; + hsbarStepDistance.Value = 0; + return true; + } + + //slow down + if (keyData == Keys.Down) + { + sim.stepDistance -= 0.05; + if (sim.stepDistance < 0) sim.stepDistance = 0; + hsbarStepDistance.Value = (int)(sim.stepDistance * 10.0 * fixUpdateHz); + return true; + } + + //turn right + if (keyData == Keys.Right) + { + sim.steerAngle++; + if (sim.steerAngle > 30) sim.steerAngle = 30; + if (sim.steerAngle < -30) sim.steerAngle = -30; + sim.steerAngleScrollBar = sim.steerAngle; + btnResetSteerAngle.Text = sim.steerAngle.ToString(); + hsbarSteerAngle.Value = (int)(10 * sim.steerAngle) + 300; + return true; + } + + //turn left + if (keyData == Keys.Left) + { + sim.steerAngle--; + if (sim.steerAngle > 30) sim.steerAngle = 30; + if (sim.steerAngle < -30) sim.steerAngle = -30; + sim.steerAngleScrollBar = sim.steerAngle; + btnResetSteerAngle.Text = sim.steerAngle.ToString(); + hsbarSteerAngle.Value = (int)(10 * sim.steerAngle) + 300; + return true; + } + + //zero steering + if (keyData == Keys.OemQuestion) + { + sim.steerAngle = 0.0; + sim.steerAngleScrollBar = sim.steerAngle; + btnResetSteerAngle.Text = sim.steerAngle.ToString(); + hsbarSteerAngle.Value = (int)(10 * sim.steerAngle) + 300; + return true; + } + + if (keyData == (Keys.F)) + { + JobNewOpenResume(); + return true; // indicate that you handled this keystroke + } + + if (keyData == (Keys.A)) //autosteer button on off + { + btnAutoSteer.PerformClick(); + return true; // indicate that you handled this keystroke + } + + //if (keyData == (Keys.S)) //open the steer chart + //{ + // toolstripAutoSteerConfig.PerformClick(); + // return true; // indicate that you handled this keystroke + //} + + if (keyData == (Keys.S)) //open the steer chart + { + btnContourPriority.PerformClick(); + return true; // indicate that you handled this keystroke + } + + if (keyData == (Keys.C)) //open the steer chart + { + toolStripAutoSteerChart.PerformClick(); + return true; // indicate that you handled this keystroke + } + + if (keyData == (Keys.V)) //open the vehicle Settings + { + toolstripVehicleConfig.PerformClick(); + return true; // indicate that you handled this keystroke + } + + if (keyData == (Keys.U)) //open the UTurn Settings + { + toolstripYouTurnConfig.PerformClick(); + return true; // indicate that you handled this keystroke + } + + if (keyData == (Keys.NumPad1)) //auto section on off + { + btnSectionOffAutoOn.PerformClick(); + return true; // indicate that you handled this keystroke + } + + if (keyData == (Keys.N)) //auto section on off + { + btnSectionOffAutoOn.PerformClick(); + return true; // indicate that you handled this keystroke + } + + if (keyData == (Keys.NumPad0)) //auto section on off + { + btnManualOffOn.PerformClick(); + return true; // indicate that you handled this keystroke + } + + if (keyData == (Keys.M)) //auto section on off + { + btnManualOffOn.PerformClick(); + return true; // indicate that you handled this keystroke + } + + if (keyData == (Keys.G)) // Flag click + { + btnFlag.PerformClick(); + return true; // indicate that you handled this keystroke + } + + if (keyData == (Keys.P)) // Snap/Prioritu click + { + btnContourPriority.PerformClick(); + return true; // indicate that you handled this keystroke + } + + // Call the base class + return base.ProcessCmdKey(ref msg, keyData); + } + #endregion + #region Gesture // Private variables used to maintain the state of gestures @@ -580,135 +735,5 @@ private bool DecodeGesture(ref Message m) #endregion Gesture - #region keystrokes - //keystrokes for easy and quick startup - protected override bool ProcessCmdKey(ref Message msg, Keys keyData) - { - //reset Sim - if (keyData == Keys.L) - { - btnResetSim.PerformClick(); - return true; - } - - //speed up - if (keyData == Keys.Up) - { - sim.stepDistance += 0.05; - if (sim.stepDistance > 4.8) sim.stepDistance = 4.8; - hsbarStepDistance.Value = (int)(sim.stepDistance * 10.0 * fixUpdateHz); - - return true; - } - - //Stop - if (keyData == Keys.OemPeriod) - { - sim.stepDistance = 0; - hsbarStepDistance.Value = 0; - return true; - } - - //slow down - if (keyData == Keys.Down) - { - sim.stepDistance -= 0.05; - if (sim.stepDistance < 0) sim.stepDistance = 0; - hsbarStepDistance.Value = (int)(sim.stepDistance * 10.0 * fixUpdateHz); - return true; - } - - //turn right - if (keyData == Keys.Right) - { - sim.steerAngle++; - if (sim.steerAngle > 30) sim.steerAngle = 30; - if (sim.steerAngle < -30) sim.steerAngle = -30; - sim.steerAngleScrollBar = sim.steerAngle; - btnResetSteerAngle.Text = sim.steerAngle.ToString(); - hsbarSteerAngle.Value = (int)(10 * sim.steerAngle) + 300; - return true; - } - - //turn left - if (keyData == Keys.Left) - { - sim.steerAngle--; - if (sim.steerAngle > 30) sim.steerAngle = 30; - if (sim.steerAngle < -30) sim.steerAngle = -30; - sim.steerAngleScrollBar = sim.steerAngle; - btnResetSteerAngle.Text = sim.steerAngle.ToString(); - hsbarSteerAngle.Value = (int)(10 * sim.steerAngle) + 300; - return true; - } - - //zero steering - if (keyData == Keys.OemQuestion) - { - sim.steerAngle = 0.0; - sim.steerAngleScrollBar = sim.steerAngle; - btnResetSteerAngle.Text = sim.steerAngle.ToString(); - hsbarSteerAngle.Value = (int)(10 * sim.steerAngle) + 300; - return true; - } - - if (keyData == (Keys.F)) - { - JobNewOpenResume(); - return true; // indicate that you handled this keystroke - } - - if (keyData == (Keys.A)) //autosteer button on off - { - btnAutoSteer.PerformClick(); - return true; // indicate that you handled this keystroke - } - - //if (keyData == (Keys.S)) //open the steer chart - //{ - // toolstripAutoSteerConfig.PerformClick(); - // return true; // indicate that you handled this keystroke - //} - - if (keyData == (Keys.S)) //open the steer chart - { - btnContourPriority.PerformClick(); - return true; // indicate that you handled this keystroke - } - - if (keyData == (Keys.C)) //open the steer chart - { - toolStripAutoSteerChart.PerformClick(); - return true; // indicate that you handled this keystroke - } - - if (keyData == (Keys.V)) //open the vehicle Settings - { - toolstripVehicleConfig.PerformClick(); - return true; // indicate that you handled this keystroke - } - - if (keyData == (Keys.U)) //open the UTurn Settings - { - toolstripYouTurnConfig.PerformClick(); - return true; // indicate that you handled this keystroke - } - - if (keyData == (Keys.NumPad1)) //auto section on off - { - btnSectionOffAutoOn.PerformClick(); - return true; // indicate that you handled this keystroke - } - - if (keyData == (Keys.G)) // Flag click - { - btnFlag.PerformClick(); - return true; // indicate that you handled this keystroke - } - - // Call the base class - return base.ProcessCmdKey(ref msg, keyData); - } - #endregion } } diff --git a/SourceCode/GPS/Properties/Resources.Designer.cs b/SourceCode/GPS/Properties/Resources.Designer.cs index b41674daa..f167822bb 100644 --- a/SourceCode/GPS/Properties/Resources.Designer.cs +++ b/SourceCode/GPS/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace AgOpenGPS.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { @@ -60,6 +60,16 @@ internal Resources() { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap ABLineCycle { + get { + object obj = ResourceManager.GetObject("ABLineCycle", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -80,6 +90,16 @@ internal static System.Drawing.Bitmap ABLineOn { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap ABLineTurnOff { + get { + object obj = ResourceManager.GetObject("ABLineTurnOff", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -90,6 +110,25 @@ internal static System.Drawing.Bitmap ABSmooth { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap AddNew { + get { + object obj = ResourceManager.GetObject("AddNew", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + /// + internal static System.IO.UnmanagedMemoryStream Alarm10 { + get { + return ResourceManager.GetStream("Alarm10", resourceCulture); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -450,6 +489,16 @@ internal static System.Drawing.Bitmap CurveOn { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap CurveTurnOff { + get { + object obj = ResourceManager.GetObject("CurveTurnOff", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -460,6 +509,16 @@ internal static System.Drawing.Bitmap Custom { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap displayMenu { + get { + object obj = ResourceManager.GetObject("displayMenu", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -520,6 +579,16 @@ internal static System.Drawing.Bitmap FileExplorerWindows { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap fileMenu { + get { + object obj = ResourceManager.GetObject("fileMenu", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -530,6 +599,16 @@ internal static System.Drawing.Bitmap FileNew { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap FileNewAndGo { + get { + object obj = ResourceManager.GetObject("FileNewAndGo", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -1200,6 +1279,26 @@ internal static System.Drawing.Bitmap Stop { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap SwitchOff { + get { + object obj = ResourceManager.GetObject("SwitchOff", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap SwitchOn { + get { + object obj = ResourceManager.GetObject("SwitchOn", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/SourceCode/GPS/Properties/Resources.resx b/SourceCode/GPS/Properties/Resources.resx index 53b02c044..17462b7ad 100644 --- a/SourceCode/GPS/Properties/Resources.resx +++ b/SourceCode/GPS/Properties/Resources.resx @@ -118,421 +118,451 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - ..\btnImages\ABLineOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ZoomIn48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ABLineOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Youturn80.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ABSmooth.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\SetupStatusStrip.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\AreaSide.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\RateControlOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ArrowLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\SectionMasterOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ArrowRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\SteerAhead.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ArrowTurnLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Play.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ArrowTurnRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\SectionSettingsBackground.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\AutoGo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\CurveTurnOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\ArrowTurnLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\AutoSteerConf.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\AutoSteerOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Settings48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\AutoSteerOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\VehicleSettingsAntenna.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\AutoStop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ContourPriorityRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Batman48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Camera3D64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\BoundaryDelete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\TiltDown.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\BoundaryLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\BoundaryMenu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FileOpen.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\BoundaryOuter.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\boundaryPause.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\BoundaryRecord.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\BoundaryRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Snap2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Camera2D64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\WideReturn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Camera3D64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Extents.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Camera54.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FlagRed.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\CameraNorth64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\DnArrow64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\Cancel64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Chart.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\TiltUp.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Color.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\AreaSide.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ColorField.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\LetterABlue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ComPorts.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Custom.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ContourOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FlagYel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ContourOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\HideContour.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ContourPriorityLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\MakeBoundary.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ContourPriorityRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\BoundaryMenu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\CurveOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Chart.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\CurveOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ZoomOut48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Custom.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\BoundaryRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\DnArrow64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\BoundaryDelete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Examples.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Rate64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Extents.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Settings64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FileDelete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\RecPath.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FileDontSave.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\back-button.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FileExplorerWindows.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\PointStart.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FileNew.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ArrowRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FileOpen.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ComPorts.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FilePrevious.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Headland.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FileSave.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\PeriDone.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FileUse.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\MakeBoundaryContour.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FlagDelete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\start.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FlagDeleteAll.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ArrowLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FlagGrn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Settings64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FlagRed.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ManualOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FlagYel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\KeyHole.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FlowMeterDual.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Examples.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\FlowMeterSingle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\PointDelete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\GoogleEarth.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\UpArrow64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\GoogleEarth.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\SettingsGear32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Headland.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\LonLat.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Help.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Stop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\HideContour.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ContourPriorityLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Home64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FlagDeleteAll.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\YouTurnNo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\SwitchOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\AutoStop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\displayMenu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\ImplementSettings.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\JobActive.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Batman48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\KeyHole.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ABLineTurnOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\LetterABlue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ZeroPitchRoll.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\SectionMasterOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\radar-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\ArrowTurnRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\LetterBBlue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\LonLat.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ToolSettings.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\MakeBoundary.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\RateControlOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\MakeBoundaryContour.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FlowMeterDual.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ManualOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\YouTurnBackground.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ManualOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ABLineOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Menu5.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Youturn64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\NtripSettings.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\BoundaryOuter.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\OK64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Home64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\PeriArea.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\AutoGo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\PeriDone.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\tire.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\PeriDraw.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FileUse.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\PivotBehind.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\GoogleEarth.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\AutoSteerOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\NtripSettings.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\ManualOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\PivotAhead.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\PivotBehind.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\fileMenu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Play.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\VehHitched64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\PointDelete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\JobActive.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\ABSmooth.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\AutoSteerOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\PointDone.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\PointStart.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\WorkSwitch.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\Start48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\Rate1Select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Rate64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\btnImages\RateControlOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\btnImages\RateControlOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\CameraNorth64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\RateSelect2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FilePrevious.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\RecPath.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Webcam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Satellite64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\CurveOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\SectionMasterOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ABLineOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\SectionMasterOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FileSave.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\SectionSettingsBackground.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\SteerBehind.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\SemiCircle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Settings48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\btnImages\Settings64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\btnImages\Settings64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\btnImages\SettingsGear32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\btnImages\SettingsGear64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Camera54.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\SetupStatusStrip.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\SwitchOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Snap2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Help.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\SpecialFunctions.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ColorField.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Start48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\AddNew.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Start64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\TripOdometer.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\SteerAhead.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\YouTurnReverse.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\SteerBehind.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FlagDelete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Stop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FileDelete.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\TiltDown.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\OK64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\TiltUp.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\RateSelect2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ToolSettings.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FileExplorerWindows.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\TripOdometer.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\GoogleEarth.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\UDPConfig.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\PeriDraw.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\UpArrow64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\VehicleSettings.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\VehAft64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\VehFore64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\boundaryStop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\VehHitched64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FlagGrn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\btnImages\boundaryPlay.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\btnImages\VehRigid64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\VehicleSettings.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ABLineCycle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\VehicleSettingsAntenna.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\btnImages\Webcam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\SpecialFunctions.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\WideReturn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FlowMeterSingle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\WorkSwitch.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FileDontSave.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\YouTurnBackground.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FileNew.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\YouTurnNo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Start64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\YouTurnReverse.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\gyro.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Youturn64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Color.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\Youturn80.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Menu5.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ZeroPitchRoll.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\VehFore64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ZoomIn48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ContourOn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\ZoomOut48.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\skull.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\back-button.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\UDPConfig.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\boundaryPause.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Camera2D64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\boundaryPlay.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\CurveOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\boundaryStop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\tree.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\gyro.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\SettingsGear64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\radar-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\ContourOff.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\skull.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\PeriArea.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\start.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\Satellite64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\tire.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\btnImages\FileNewAndGo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\btnImages\tree.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\Alarm10.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 \ No newline at end of file diff --git a/SourceCode/GPS/Properties/Settings.Designer.cs b/SourceCode/GPS/Properties/Settings.Designer.cs index 81a8cfbdb..4be629bdd 100644 --- a/SourceCode/GPS/Properties/Settings.Designer.cs +++ b/SourceCode/GPS/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace AgOpenGPS.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.2.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.3.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -1069,13 +1069,13 @@ public double setRate_rateLeft { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool setDisplay_isLargePanel { + [global::System.Configuration.DefaultSettingValueAttribute("1")] + public int setDisplay_panelStatus { get { - return ((bool)(this["setDisplay_isLargePanel"])); + return ((int)(this["setDisplay_panelStatus"])); } set { - this["setDisplay_isLargePanel"] = value; + this["setDisplay_panelStatus"] = value; } } @@ -1090,5 +1090,17 @@ public bool isJRK { this["isJRK"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("2")] + public int setDisplay_lineWidth { + get { + return ((int)(this["setDisplay_lineWidth"])); + } + set { + this["setDisplay_lineWidth"] = value; + } + } } } diff --git a/SourceCode/GPS/Properties/Settings.settings b/SourceCode/GPS/Properties/Settings.settings index 8c063928b..baabbc527 100644 --- a/SourceCode/GPS/Properties/Settings.settings +++ b/SourceCode/GPS/Properties/Settings.settings @@ -263,11 +263,14 @@ 50 - - False + + 1 False + + 2 + \ No newline at end of file diff --git a/SourceCode/GPS/Resources/Alarm10.wav b/SourceCode/GPS/Resources/Alarm10.wav new file mode 100644 index 000000000..bd0d7e433 Binary files /dev/null and b/SourceCode/GPS/Resources/Alarm10.wav differ diff --git a/SourceCode/GPS/aChangeLog.txt b/SourceCode/GPS/aChangeLog.txt index fea141720..893f3ac9d 100644 --- a/SourceCode/GPS/aChangeLog.txt +++ b/SourceCode/GPS/aChangeLog.txt @@ -3,6 +3,12 @@ * Source contains all packages for release to be created * Ready to start intial releases. * Add tool width to Touch lines. +* Single curves and AB Lines no longer saved in separate file +* CurveLines and ABLines text files contain all lines and are all loaded into lists. +* Added no panel option +* Page thru all lines or curves depending on guidance mode +* Made uturn controls much smaller. +* Added distance alarm at 20 meters before uturn. v3.0 October diff --git a/SourceCode/GPS/app.config b/SourceCode/GPS/app.config index fd8c489d2..023b1765c 100644 --- a/SourceCode/GPS/app.config +++ b/SourceCode/GPS/app.config @@ -565,12 +565,15 @@ 50 - - False + + 1 False + + 2 + \ No newline at end of file diff --git a/SourceCode/GPS/btnImages/ABLineCycle.png b/SourceCode/GPS/btnImages/ABLineCycle.png new file mode 100644 index 000000000..bf2cfc0d4 Binary files /dev/null and b/SourceCode/GPS/btnImages/ABLineCycle.png differ diff --git a/SourceCode/GPS/btnImages/ABLineTurnOff.png b/SourceCode/GPS/btnImages/ABLineTurnOff.png new file mode 100644 index 000000000..44a8ecea6 Binary files /dev/null and b/SourceCode/GPS/btnImages/ABLineTurnOff.png differ diff --git a/SourceCode/GPS/btnImages/AddNew.png b/SourceCode/GPS/btnImages/AddNew.png new file mode 100644 index 000000000..406daee9b Binary files /dev/null and b/SourceCode/GPS/btnImages/AddNew.png differ diff --git a/SourceCode/GPS/btnImages/ArrowLeft.png b/SourceCode/GPS/btnImages/ArrowLeft.png index 61ed7dc7d..b42c8c5ab 100644 Binary files a/SourceCode/GPS/btnImages/ArrowLeft.png and b/SourceCode/GPS/btnImages/ArrowLeft.png differ diff --git a/SourceCode/GPS/btnImages/ArrowRight.png b/SourceCode/GPS/btnImages/ArrowRight.png index 11ead7394..fabe2be1d 100644 Binary files a/SourceCode/GPS/btnImages/ArrowRight.png and b/SourceCode/GPS/btnImages/ArrowRight.png differ diff --git a/SourceCode/GPS/btnImages/CurveTurnOff.png b/SourceCode/GPS/btnImages/CurveTurnOff.png new file mode 100644 index 000000000..3113a557a Binary files /dev/null and b/SourceCode/GPS/btnImages/CurveTurnOff.png differ diff --git a/SourceCode/GPS/btnImages/FileNewAndGo.png b/SourceCode/GPS/btnImages/FileNewAndGo.png new file mode 100644 index 000000000..913650b8d Binary files /dev/null and b/SourceCode/GPS/btnImages/FileNewAndGo.png differ diff --git a/SourceCode/GPS/btnImages/PointStart.png b/SourceCode/GPS/btnImages/PointStart.png index b0517bf6a..7fc372872 100644 Binary files a/SourceCode/GPS/btnImages/PointStart.png and b/SourceCode/GPS/btnImages/PointStart.png differ diff --git a/SourceCode/GPS/btnImages/SwitchOff.png b/SourceCode/GPS/btnImages/SwitchOff.png index 0f50a3414..83cf46478 100644 Binary files a/SourceCode/GPS/btnImages/SwitchOff.png and b/SourceCode/GPS/btnImages/SwitchOff.png differ diff --git a/SourceCode/GPS/btnImages/SwitchOn.png b/SourceCode/GPS/btnImages/SwitchOn.png index 6b82ae045..8c1e6ecec 100644 Binary files a/SourceCode/GPS/btnImages/SwitchOn.png and b/SourceCode/GPS/btnImages/SwitchOn.png differ diff --git a/SourceCode/GPS/btnImages/displayMenu.png b/SourceCode/GPS/btnImages/displayMenu.png new file mode 100644 index 000000000..96d160ea7 Binary files /dev/null and b/SourceCode/GPS/btnImages/displayMenu.png differ diff --git a/SourceCode/GPS/btnImages/fileMenu.png b/SourceCode/GPS/btnImages/fileMenu.png new file mode 100644 index 000000000..a35fcc235 Binary files /dev/null and b/SourceCode/GPS/btnImages/fileMenu.png differ