Skip to content

Commit

Permalink
head like AB Draw
Browse files Browse the repository at this point in the history
  • Loading branch information
farmerbriantee committed Nov 22, 2023
1 parent d18ef63 commit 4ee2785
Show file tree
Hide file tree
Showing 12 changed files with 1,046 additions and 901 deletions.
19 changes: 10 additions & 9 deletions SourceCode/GPS/AgOpenGPS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@
<Compile Include="CustomControl1.Designer.cs">
<DependentUpon>CustomControl1.cs</DependentUpon>
</Compile>
<Compile Include="Forms\FormHeadland.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\FormHeadland.Designer.cs">
<DependentUpon>FormHeadland.cs</DependentUpon>
</Compile>
<Compile Include="Forms\FormFieldKML.cs">
<SubType>Form</SubType>
</Compile>
Expand Down Expand Up @@ -244,12 +250,6 @@
<Compile Include="Forms\Pickers\FormTouchPick.Designer.cs">
<DependentUpon>FormTouchPick.cs</DependentUpon>
</Compile>
<Compile Include="Forms\FormHeadland.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\FormHeadland.Designer.cs">
<DependentUpon>FormHeadland.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Guidance\FormEditCurve.cs">
<SubType>Form</SubType>
</Compile>
Expand Down Expand Up @@ -569,6 +569,9 @@
<DependentUpon>FormGPS.cs</DependentUpon>
</Compile>
<Compile Include="Classes\vec3.cs" />
<EmbeddedResource Include="Forms\FormHeadland.resx">
<DependentUpon>FormHeadland.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\FormFieldKML.resx">
<DependentUpon>FormFieldKML.cs</DependentUpon>
</EmbeddedResource>
Expand Down Expand Up @@ -606,9 +609,6 @@
<EmbeddedResource Include="Forms\Pickers\FormTouchPick.resx">
<DependentUpon>FormTouchPick.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\FormHeadland.resx">
<DependentUpon>FormHeadland.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Guidance\FormEditCurve.resx">
<DependentUpon>FormEditCurve.cs</DependentUpon>
</EmbeddedResource>
Expand Down Expand Up @@ -893,6 +893,7 @@
<None Include="btnImages\TrackInvisible.png" />
<None Include="btnImages\TrackDrive.png" />
<None Include="btnImages\AutoTrack.png" />
<None Include="btnImages\ABSnapNudgeMenu.png" />
<Content Include="Nav.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
11 changes: 11 additions & 0 deletions SourceCode/GPS/Classes/CHead.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;

namespace AgOpenGPS
{
Expand Down Expand Up @@ -111,4 +112,14 @@ public bool IsPointInsideHeadArea(vec2 pt)
return false;
}
}

public class CHdTracks
{
public List<vec3> trackPts = new List<vec3>();
public double aveHeading = 3;
public string name = "aa";
public double moveDistance = 0;
public int mode = 0;
}

}
1 change: 0 additions & 1 deletion SourceCode/GPS/Classes/CTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,6 @@ public class CTrackPath
public vec3 ptA = new vec3();
public vec3 ptB = new vec3();
public int mode = 0;
public bool isLinedUp = false;
}
}

Expand Down
18 changes: 9 additions & 9 deletions SourceCode/GPS/Forms/FormGPS.Designer.cs

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

2 changes: 2 additions & 0 deletions SourceCode/GPS/Forms/FormGPS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,8 @@ public void JobClose()

trk.isBtnTrackOn = false;
trk.isAutoTrack = false;
btnAutoTrack.BackColor = Color.Transparent;

trk.ResetTrack();
trk.tracksArr?.Clear();
trk.idx = -1;
Expand Down
Loading

0 comments on commit 4ee2785

Please sign in to comment.