Offset after copying AB lines from one field to another


@KentStuff , I’ve spent the last several days using your version with the lines sorted by distance, and it is absolutely fantastic for how we farm. It would be awesome to see this in a future release, unless there is a reason some people would not like it. The only issue I had is the one pasted below. This happened when driving 2 miles around the section to get to the back side of a field, so maybe it was related to this?

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at AgOpenGPS.CABCurve.GetCurrentCurveLine(vec3 pivot, vec3 steer) in C:\Users\Brad\Documents\AgOpenGPS-master(20210620)\AgOpenGPS-master\SourceCode\GPS\Classes\CABCurve.cs:line 381
   at AgOpenGPS.FormGPS.UpdateFixPosition() in C:\Users\Brad\Documents\AgOpenGPS-master(20210620)\AgOpenGPS-master\SourceCode\GPS\Forms\Position.designer.cs:line 567
   at AgOpenGPS.FormGPS.ReceiveFromAgIO(Byte[] data) in C:\Users\Brad\Documents\AgOpenGPS-master(20210620)\AgOpenGPS-master\SourceCode\GPS\Forms\UDPComm.Designer.cs:line 120
   at AgOpenGPS.FormGPS.<>c__DisplayClass656_0.<ReceiveAppData>b__0() in C:\Users\Brad\Documents\AgOpenGPS-master(20210620)\AgOpenGPS-master\SourceCode\GPS\Forms\UDPComm.Designer.cs:line 306
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4420.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
AgOpenGPS
    Assembly Version: 5.1.7.0
    Win32 Version: 5.1.7
    CodeBase: file:///C:/Users/sgfar/Downloads/AgOpenGPS_sort_Timer_curve/AgOpenGPS_v5/AgOpenGPS.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4400.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
OpenTK.GLControl
    Assembly Version: 1.2.0.0
    Win32 Version: 1.2.2336.6514-pre
    CodeBase: file:///C:/Users/sgfar/Downloads/AgOpenGPS_sort_Timer_curve/AgOpenGPS_v5/OpenTK.GLControl.DLL
----------------------------------------
OpenTK
    Assembly Version: 1.2.0.0
    Win32 Version: 1.2.2336.6514-pre
    CodeBase: file:///C:/Users/sgfar/Downloads/AgOpenGPS_sort_Timer_curve/AgOpenGPS_v5/OpenTK.DLL
----------------------------------------
Control.Draggable
    Assembly Version: 1.0.7235.37687
    Win32 Version: 1.0.7235.37687
    CodeBase: file:///C:/Users/sgfar/Downloads/AgOpenGPS_sort_Timer_curve/AgOpenGPS_v5/Control.Draggable.DLL
----------------------------------------
RepeatButtonControl
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/sgfar/Downloads/AgOpenGPS_sort_Timer_curve/AgOpenGPS_v5/RepeatButtonControl.DLL
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Windows.Forms.DataVisualization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4200.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Keypad
    Assembly Version: 4.3.10.0
    Win32 Version: 4.3.10.0
    CodeBase: file:///C:/Users/sgfar/Downloads/AgOpenGPS_sort_Timer_curve/AgOpenGPS_v5/Keypad.DLL
----------------------------------------
ColorPicker
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/sgfar/Downloads/AgOpenGPS_sort_Timer_curve/AgOpenGPS_v5/ColorPicker.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.```

That is cool. Looks like it may have sorted and then looked for A when A was now B and B was C.

if (A > B) { C = A; A = B; B = C; }

I’m not sure how to fix it. But let me know if it happens again.

@KentStuff @BrianTee_Admin my dad has been using the sorted_lines version for the last couple weeks spreading chicken litter with no issues. I have not found a good way to reuse contour lines made in past operations, so this version gives me the option to reuse lines from previous operations. I really think other people would benefit from having this feature in the main release. Once you spend the time to make all the needed lines for a particular field, you never again have to open up the a/b line or a/b curve menu again. Any line you need takes only one button press of the cycle lines function (maybe two or three in worst case scenario). If for some reason you are wanting to use a line that was made on the other side of the field, you can still open the menu and choose it like normal. Thanks for all your work!

1 Like