Skip to content

Commit

Permalink
steer on off with headland
Browse files Browse the repository at this point in the history
  • Loading branch information
farmerbriantee committed Feb 13, 2024
1 parent 22c62f0 commit 8d22b3b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
6 changes: 5 additions & 1 deletion SourceCode/GPS/Forms/Field/FormBndTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,11 @@ private void cboxIsZoom_CheckedChanged(object sender, EventArgs e)

private void btnStartStop_Click(object sender, EventArgs e)
{
if (secList.Count == 0) return;
if (secList.Count < 20)
{
mf.YesMessageBox("Not enough points to make a boundary");
return;
}

arr = new vec3[secList.Count];
prevHeading = Math.PI + glm.PIBy2;
Expand Down
2 changes: 1 addition & 1 deletion SourceCode/GPS/Forms/FormGPS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ private void FormGPS_Load(object sender, EventArgs e)
tramLinesMenuField.Text = gStr.gsTramLines;
recordedPathStripMenu.Text = gStr.gsRecordedPathMenu;
flagByLatLonToolStripMenuItem.Text = gStr.gsFlagByLatLon;
boundaryToolToolStripMenu.Text = gStr.gsBoundaryMenu;
boundaryToolToolStripMenu.Text = gStr.gsBoundary + " Tool";

webcamToolStrip.Text = gStr.gsWebCam;
offsetFixToolStrip.Text = gStr.gsOffsetFix;
Expand Down
7 changes: 0 additions & 7 deletions SourceCode/GPS/Forms/Guidance/FormHeadAche.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@ private void FormHeadLine_Load(object sender, EventArgs e)

private void FormHeadLine_FormClosing(object sender, FormClosingEventArgs e)
{
//hdl
if (mf.hdl.idx == -1)
{
if (mf.isBtnAutoSteerOn) mf.btnAutoSteer.PerformClick();
if (mf.yt.isYouTurnBtnOn) mf.btnAutoYouTurn.PerformClick();
}

mf.FileSaveHeadLines();

if (mf.hdl.tracksArr.Count > 0)
Expand Down
7 changes: 0 additions & 7 deletions SourceCode/GPS/Forms/Guidance/FormHeadLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,6 @@ private void FormHeadLine_ResizeEnd(object sender, EventArgs e)

private void FormHeadLine_FormClosing(object sender, FormClosingEventArgs e)
{
//hdl
if (mf.hdl.idx == -1)
{
if (mf.isBtnAutoSteerOn) mf.btnAutoSteer.PerformClick();
if (mf.yt.isYouTurnBtnOn) mf.btnAutoYouTurn.PerformClick();
}

if (sliceArr.Count > 0)
{
mf.hdl.idx = 0;
Expand Down
2 changes: 0 additions & 2 deletions SourceCode/GPS/Forms/SaveOpen.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified SourceCode/GPS/References/GPS_Out.exe
Binary file not shown.

0 comments on commit 8d22b3b

Please sign in to comment.