Skip to content

Commit

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

private void btnStartStop_Click(object sender, EventArgs e)
{
if (secList.Count < 20)
{
mf.YesMessageBox("Not enough points to make a boundary");
return;
}
if (secList.Count == 0) 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.gsBoundary + " Tool";
boundaryToolToolStripMenu.Text = gStr.gsBoundaryMenu;

webcamToolStrip.Text = gStr.gsWebCam;
offsetFixToolStrip.Text = gStr.gsOffsetFix;
Expand Down
7 changes: 7 additions & 0 deletions SourceCode/GPS/Forms/Guidance/FormHeadAche.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ 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: 7 additions & 0 deletions SourceCode/GPS/Forms/Guidance/FormHeadLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ 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: 2 additions & 0 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 99d20cf

Please sign in to comment.