AGOpenGPS + Tree Planter - Page 2 - The Combine Forum
 9Likes
Reply
 
LinkBack Thread Tools
post #11 of 21 (permalink) Old 06-19-2019, 11:52 PM Thread Starter
Junior Member
 
Join Date: May 2019
Location: Lolol, Chile
Posts: 6
Mentioned: 0 Post(s)
Quoted: 2 Post(s)
Wow!!

So fast, I try to understand, but I think it will work. The arduino part I don't understand, how do I communicate?

It is possible to draw some reference lines to start and stop? or in a boundary.

Thanks a lot for your help. I hope try soon. (My plantation will be in 1 month, I need to plant 40 ha.

flozano is offline  
Sponsored Links
Advertisement
 
post #12 of 21 (permalink) Old 06-20-2019, 12:21 AM Thread Starter
Junior Member
 
Join Date: May 2019
Location: Lolol, Chile
Posts: 6
Mentioned: 0 Post(s)
Quoted: 2 Post(s)
This is a more advanced System for tree planting

https://vimeo.com/190758129?fbclid=I...2tMp4w2ZWnLzm4



flozano is offline  
post #13 of 21 (permalink) Old 06-20-2019, 01:37 AM
Senior Member
 
Join Date: Aug 2012
Location: Vermilion Alberta Canada
Posts: 5,589
Mentioned: 11 Post(s)
Quoted: 2451 Post(s)
Super specialized software has 2 options, spend a couple years writing your own, buying it.
MTZ8302, dairytech and flozano like this.
BrianTee is offline  
Sponsored Links
Advertisement
 
post #14 of 21 (permalink) Old 07-22-2019, 03:09 PM
Junior Member
 
Join Date: Jun 2019
Location: Hampton, IA USA
Posts: 16
Mentioned: 0 Post(s)
Quoted: 7 Post(s)
I just got my tablet and have installed the software. I see there is a 250cm limit. I need 610, (20'). I figure I can write code that will count every 4th time 153 is hit. From there I can fire the relay. Where will I find this counter? A variiale name? Is this in AOG or ( I hope) in arduino?

Thanks
rayjorgensen is offline  
post #15 of 21 (permalink) Old 07-22-2019, 04:33 PM
Senior Member
 
Join Date: Aug 2012
Location: Vermilion Alberta Canada
Posts: 5,589
Mentioned: 11 Post(s)
Quoted: 2451 Post(s)
Quote:
Originally Posted by rayjorgensen View Post
I just got my tablet and have installed the software. I see there is a 250cm limit. I need 610, (20'). I figure I can write code that will count every 4th time 153 is hit. From there I can fire the relay. Where will I find this counter? A variiale name? Is this in AOG or ( I hope) in arduino?

Thanks

Updated tree plant on github AgOpenGPS_Dev.



You can now do spacing up to 50m. Also uTurn in the autosteer byte cycles 1 to 0 or 0 to 1 upon trigger. All you need to do is look for a change in the uTurn byte and fire your relay or whatever. In the small left side display you can see the uturn byte cycle from 0 to 1 to 0 to 1 to..... as it triggers. If you turn off tree planting (set it to 0 ) the uturn byte will return to normal.


Be sure to set up the vehicle to have 1 section.



Here is the code for triggering in position.cs



Code:
            //tree spacing
            if (vehicle.treeSpacing != 0 && section[0].isSectionOn) treeSpacingCounter += (distanceCurrentStepFix*100);

            //keep the distance below spacing
            if (treeSpacingCounter > vehicle.treeSpacing && vehicle.treeSpacing != 0)
            {
                if (treeTrigger == 0) treeTrigger = 1;
                else treeTrigger = 0;
                while (treeSpacingCounter > vehicle.treeSpacing) treeSpacingCounter -= vehicle.treeSpacing;
            }

Most of the code is quite simple, other then maybe the While loop. Suppose your spacing is 100 cm. The GPS triggers at 5 or 10 hz so it goes 15, 30, 45, 60, 75, 90, 105 - bam a trigger. Now you can't just reset to 0 or you will lose that 5 cm so the spacing is subtracted and starts counting a 5 again. Vehicle class stores the spacing, display settings sets the spacing.



Go slow so the gps takes small fixes and adds up slowly.
BrianTee is offline  
post #16 of 21 (permalink) Old 07-22-2019, 05:47 PM
Junior Member
 
Join Date: Jun 2019
Location: Hampton, IA USA
Posts: 16
Mentioned: 0 Post(s)
Quoted: 7 Post(s)
Quote:
Originally Posted by BrianTee View Post
Updated tree plant on github AgOpenGPS_Dev..
Am I going to the right plae? All I see is AgOpenGPS and it says it was updated 4 months ago.
rayjorgensen is offline  
post #17 of 21 (permalink) Old 07-22-2019, 07:24 PM
Senior Member
 
Join Date: Aug 2012
Location: Vermilion Alberta Canada
Posts: 5,589
Mentioned: 11 Post(s)
Quoted: 2451 Post(s)
Quote:
Originally Posted by rayjorgensen View Post
Am I going to the right plae? All I see is AgOpenGPS and it says it was updated 4 months ago.

Pretty sure you are. Just took it for a drive and everything seems to work well.



https://github.com/farmerbriantee/AgOpenGPS_Dev
BrianTee is offline  
post #18 of 21 (permalink) Old 07-23-2019, 11:07 AM
Junior Member
 
Join Date: Jun 2019
Location: Hampton, IA USA
Posts: 16
Mentioned: 0 Post(s)
Quoted: 7 Post(s)
I wa going to farmerbriantee/AgOpenGPS. I see where I need to go from here on. Thanks
BrianTee likes this.
rayjorgensen is offline  
post #19 of 21 (permalink) Old 07-24-2019, 02:07 PM
Junior Member
 
Join Date: Jun 2019
Location: Hampton, IA USA
Posts: 16
Mentioned: 0 Post(s)
Quoted: 7 Post(s)
Thank you brian.

Now I will show how little I know. Where do I find position.cs?

Since I can some what follow the code I'm guessing this is c++. (Sort of looks like arduino code)

I'd like to learn this stuff.
1. I'd be able to follow what's happening better.
2. Maybe some day I can contribute!

Can you point me to a good resource to learn programming and any software needed. Like arduino IED.

The next project I'm going to build will be a scale wagon. If I do it in c++ maybe it could be a module for a combine controller or weight wagon? My contribution? (If it should be done with arduino that would be easier, but I'd still like to learn c++.

Thanks for any guidance you can give me!
rayjorgensen is offline  
post #20 of 21 (permalink) Old 07-24-2019, 02:31 PM
Senior Member
 
Join Date: Aug 2012
Location: Vermilion Alberta Canada
Posts: 5,589
Mentioned: 11 Post(s)
Quoted: 2451 Post(s)
Quote:
Originally Posted by rayjorgensen View Post
Thank you brian.

Now I will show how little I know. Where do I find position.cs?

Since I can some what follow the code I'm guessing this is c++. (Sort of looks like arduino code)

I'd like to learn this stuff.
1. I'd be able to follow what's happening better.
2. Maybe some day I can contribute!

Can you point me to a good resource to learn programming and any software needed. Like arduino IED.

The next project I'm going to build will be a scale wagon. If I do it in c++ maybe it could be a module for a combine controller or weight wagon? My contribution? (If it should be done with arduino that would be easier, but I'd still like to learn c++.

Thanks for any guidance you can give me!

Position.cs is under FormGPS which is the main form of the program. It's written in C# dot net 4.5 using Windows Forms as the gui, and using OpenGL as the graphics system.



I would start on youtube, there is so many great tutorials.

BrianTee is offline  
Sponsored Links
Advertisement
 
Reply

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the The Combine Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page



Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome