YouTurn: Skipping worked lines

Hi community of this great project :slight_smile:

I am collecting experience using AgOpenGPS, this seeding season i started seeding all my tramlines at first because otherwise i’ll forget to turn on/off tram lines on my seeder. :wink:
After finishing this, i start at the first line of the field and i activate UTurn. The “Problem” here is, that i have to correct the number of lines that has to be skipped, when the next track will be a already seeded tramline.

So i thought it would be a nice feature, if AGO will automatically notice that the next Line has already been worked, and searches automatically the next not worked line.

Because i’m a hobby programmer und i enjoy this project very much - i want help to improve - so far its possible for me.

So i started implementing such a feature - and for me it works as my needs.
Its an first quick and dirty alpha one stadium :wink: Because i have to get an overview about the coding. At the moment it’s impelemented like the following (described in an easy way):

  • on tracks, theres a new array “worked”
  • when work was switched on, the current line is added to this array
  • in the YouTurn-Class: Check if the new goal line is in the working array? If yes, use the next line. Repeat this until there’s an unworked line.

next steps:

  • think about an algorithm when a line should be marked as worked (perhaps when 10% (customizeable) of a line are marked)
  • think about removing the array and determine the worked area accoring the marks in the UI. So the save/open problem (at the moment not implemented for the array) is already solved
  • think about a user friendly method to handle this feature in the UI

I will go ahead if there is time, but for now i wanted to ask:

  • would this be a feature some other people will need/use
  • if yes, is there someone who want to help me developing this feature in quality (dev and/or test)
9 Likes

Sounds awesome! I would definitely use this. I’d wondered the same, basing the skips off of the UI like the section control is done. Do you have the code on GitHub yet?

2 Likes

Thank you.
Not yet on github, but i will share it, and post the repo here. :slight_smile:

1 Like

Here it is:

At the moment it should work in the simulator with AB Lines and Curves (i added curves a few minutes ago).
A lane is beeing selected as worked, when the Yellow Work Button on the right Side in AGO is pressed. You have to do this for every lane at the moment (in real life, work switch is manually/automatically set for each lane on the field).

2 Likes

Last weekend i worked with this feature using the cultivator - worked fine for me.
So i was motivated to do some further adjustments.

alpha Version of this feature (6.3.31)

  • works for AB Lines and AB Curves

  • enable feature by clicking 2 times on the icon directly on the right of the list box for selecting how many lanes to be skipped; theres a new, third icon (at the moment it is not yet intuitive and it will not win a beauty prize either; but it is there)
    grafik

  • algorythm will choose the next not worked lane but will consider the number of lanes to be skipped e.g. if 2 lanes are selected for skipping and lane 3 and 4 are already worked algorythm will drive to lane 5

  • worked lanes will be deleted when worked area is deleted

Todos:

  • saving worked lanes in properties too; so worked lanes won’t be lost, when application is closed
  • design a better icon for this feature
  • decide for a mode (normal or alternative) considering worked lanes - or both? At the moment the alternative mode is used, means, that 1 time turns right, 1 time turns left; but the next direction to turn is easy adjustable by touch

I have uploaded the EXE File too:
https://github.com/steran82/AgOpenGPS/releases/download/alpha1/AgOpenGPS_WL.zip
So everyone can test it - only copy this file into your aog folder and start it (current version: save the vehicle; start this version and load the vehicle).

I’ll be happy when somebody can do some testing and give feedback.
If you have ideas how to improve e.g. a better way to add it to the ui please also write.

When its on a good way, i’ll ask Brian if it would be something for the standard release. :slight_smile:

7 Likes

Awesome :+1::+1: shame ive just finished seeding untill the spring or i would definitely try it out !

This is very cool, I have a small amount of field work to do in the next couple of days, so I’ll give it a go :+1:t3: