# Tree Planning

**URL:** <https://discourse.agopengps.com/t/tree-planning/3051>\
**Category:** Software modifications\
**Created:** [22 October 2020 17:16 UTC](https://discourse.agopengps.com/t/tree-planning/3051 "2020-10-22T17:16:13Z")\
**Posts on this page:** 20\
**Page:** 14

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [30 March 2022 02:24 UTC](https://discourse.agopengps.com/t/tree-planning/3051/262 "2022-03-30T02:24:24Z")

</div>

From the AgIo open agdia if the machine port appears at the bottom as green, it should have a tree label. This will show the on and off information. 5.5 ino took the tree out of the whole code. 5.5 aog I believe did as well. You will need to run 5.0 ino to get the tree value. The autosteer board may be simpler to get the sections from, as it sends them there as well.

We added the machine byte later to the tree program, it may not be getting there in your version. Again, check in AGdia and if it gets to the AGdia, then it should be getting to the arduino.

---

<div class="post-metadata">

**Author:** ![Ray\_Jorgensen](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/ray_jorgensen/32/7635_2.png) [@Ray\_Jorgensen](https://discourse.agopengps.com/u/Ray_Jorgensen)\
**Post date:** [30 March 2022 12:53 UTC](https://discourse.agopengps.com/t/tree-planning/3051/263 "2022-03-30T12:53:30Z")

</div>

Where is the tree data? This is from your V5.2b download folder.

 ![AgDiag](https://discourse.agopengps.com/uploads/default/original/2X/0/05a7166e77b3ba124e283836971baf6ddd25d89b.png)

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [30 March 2022 12:58 UTC](https://discourse.agopengps.com/t/tree-planning/3051/264 "2022-03-30T12:58:23Z")

</div>

Should be at the bottom. That’s the reason, you’re not getting the machine byte.

Use this one.

> <https://github.com/KentStuff/AOG-Tree-5.0/blob/main/AOG-Tree_kml.zip>

---

<div class="post-metadata">

**Author:** ![Ray\_Jorgensen](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/ray_jorgensen/32/7635_2.png) [@Ray\_Jorgensen](https://discourse.agopengps.com/u/Ray_Jorgensen)\
**Post date:** [30 March 2022 13:02 UTC](https://discourse.agopengps.com/t/tree-planning/3051/265 "2022-03-30T13:02:04Z")

</div>

downloading now. Thanks

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [30 March 2022 13:28 UTC](https://discourse.agopengps.com/t/tree-planning/3051/266 "2022-03-30T13:28:26Z")

</div>

I don’t know why it puts all that gibberish under the link. The original aog did not show the machine byte in AGdia. I added it after we fixed the byte. The latest AOG officialrelease got rid of the tree byte. It is now speed.

---

<div class="post-metadata">

**Author:** ![Ray\_Jorgensen](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/ray_jorgensen/32/7635_2.png) [@Ray\_Jorgensen](https://discourse.agopengps.com/u/Ray_Jorgensen)\
**Post date:** [30 March 2022 15:49 UTC](https://discourse.agopengps.com/t/tree-planning/3051/267 "2022-03-30T15:49:11Z")

</div>

I figured the gibberish was you translating it into “Martian”. 🤣

I won’t get to this until later today. When I test for tree is it “if tree ==1” as shown in AgDiag?

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [1 April 2022 14:45 UTC](https://discourse.agopengps.com/t/tree-planning/3051/268 "2022-04-01T14:45:18Z")

</div>

tree is an 8 bit consisting of 00000000 or 00000001 so it should work and read it as 0 or 1.

But you can also set the relay like the others as

```auto
digitalWrite (X, bitRead(tree,7));

```

Where X is the pin number that will be set high when Tree is available.

This is only in Machine\_USB\_v5\_0.

Or use pin 3 for the tree trigger.

---

<div class="post-metadata">

**Author:** ![Ray\_Jorgensen](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/ray_jorgensen/32/7635_2.png) [@Ray\_Jorgensen](https://discourse.agopengps.com/u/Ray_Jorgensen)\
**Post date:** [2 April 2022 17:49 UTC](https://discourse.agopengps.com/t/tree-planning/3051/269 "2022-04-02T17:49:38Z")

</div>

Thanks, I’m using the tree variable for now. I’ll post a video when we’re planting trees - probably May timeframe.

---

<div class="post-metadata">

**Author:** ![HKR](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/h/c6cbf5/32.png) [@HKR](https://discourse.agopengps.com/u/HKR)\
**Post date:** [19 April 2022 19:52 UTC](https://discourse.agopengps.com/t/tree-planning/3051/270 "2022-04-19T19:52:50Z")

</div>

Hi  
Im playing with the idea of using the Tree Planner for row crops such as vegetables. By planting all rows in a similar pattern it will be possible to inter row clean from two directions.  
Is it possible to add a checkbox to disregard the X distance for the auto planting, so that it can still pick up the tree even if im a few cm of the AB line?

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [19 April 2022 20:25 UTC](https://discourse.agopengps.com/t/tree-planning/3051/271 "2022-04-19T20:25:49Z")

</div>

You cannot disregard the x value. You just have to set it bigger. In any turn, you turn or any miss direction, you can be lined up with a tree on your right or left (y value) and be nowhere near a tree. The x value says, I see a tree, but it is not within range to worry about.

---

<div class="post-metadata">

**Author:** ![Ray\_Jorgensen](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/ray_jorgensen/32/7635_2.png) [@Ray\_Jorgensen](https://discourse.agopengps.com/u/Ray_Jorgensen)\
**Post date:** [19 April 2022 21:54 UTC](https://discourse.agopengps.com/t/tree-planning/3051/272 "2022-04-19T21:54:10Z")

</div>

> [@HKR](#):
>
> it will be possible to inter row clean from two directions.

My granddad did this with a wire check planter. We have progressed!!

---

<div class="post-metadata">

**Author:** ![HKR](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/h/c6cbf5/32.png) [@HKR](https://discourse.agopengps.com/u/HKR)\
**Post date:** [20 April 2022 05:57 UTC](https://discourse.agopengps.com/t/tree-planning/3051/273 "2022-04-20T05:57:39Z")

</div>

Hi

I see. That would be a problem.  
How about changing the click radius to a rectangle or ellipses shape. The I could set the Y value pretty low, and a larger x value would make sure that it triggers even I I’m not exactly on the AB line.

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [20 April 2022 12:10 UTC](https://discourse.agopengps.com/t/tree-planning/3051/274 "2022-04-20T12:10:29Z")

</div>

I’ve made part of this change. I’ll post it later this week. Using a rectangular click area.

---

<div class="post-metadata">

**Author:** ![HKR](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/h/c6cbf5/32.png) [@HKR](https://discourse.agopengps.com/u/HKR)\
**Post date:** [22 April 2022 15:00 UTC](https://discourse.agopengps.com/t/tree-planning/3051/275 "2022-04-22T15:00:26Z")

</div>

I did a YouTube search on this, really ingenious and low tech

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [22 April 2022 16:58 UTC](https://discourse.agopengps.com/t/tree-planning/3051/276 "2022-04-22T16:58:18Z")

</div>

Well I had to look also. That works better than the tree planner. No bells, no GPS, no computer, just smart farmers. Still have smart farmers, but a lot more to go wrong.

---

<div class="post-metadata">

**Author:** ![Ray\_Jorgensen](https://discourse.agopengps.com/user_avatar/discourse.agopengps.com/ray_jorgensen/32/7635_2.png) [@Ray\_Jorgensen](https://discourse.agopengps.com/u/Ray_Jorgensen)\
**Post date:** [22 April 2022 22:28 UTC](https://discourse.agopengps.com/t/tree-planning/3051/277 "2022-04-22T22:28:13Z")

</div>

@KentStuff @HKR I never saw it in action until after my granddad had died, but I do remember seeing the check wire in the corner of the shed. Actually planted with the wire at our local county fair / historical demonstration. I’m really glad I didn’t have to do the “whole farm” that way!

I may be giving my age away !

---

<div class="post-metadata">

**Author:** ![jacobst1](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@jacobst1](https://discourse.agopengps.com/u/jacobst1)\
**Post date:** [18 May 2022 19:41 UTC](https://discourse.agopengps.com/t/tree-planning/3051/278 "2022-05-18T19:41:35Z")

</div>

So I was using the tree planting version 5.2. I would like to use the origin to build my trees array to match my other trees in the field for row spacing and angle. I thought you could press the A button and click on the field location to set it, and build the rows from there. I can not get the green box to move from center. Just for info I use a bluetooth radio to play the beeps for me.

another problem is my tractor disappeared on the screen, how do you get it back. I am following the pluses with the tractor.

another time, the tractor started driving sideways.

Also, does the lightbar work for the tree planting? I have tried a lot of settings for sizes, but I can’t follow the light bar. I have to watch my tractor and the pluses. by the way, I am planting Christmas trees.

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [19 May 2022 02:24 UTC](https://discourse.agopengps.com/t/tree-planning/3051/279 "2022-05-19T02:24:02Z")

</div>

I’ll answer the last question first. You set the AB line on the tree line. After the trees are set, open the abdraw and turn on the trees. Pick two in a row to build ABLINE on the tree row. Go back to the tree planner panel and pick the settings. Set the ab line space to the tree space perpendicular to the ABline. Then turn on abline, and start the autosteer. The light bar at the top of the page should work. If you are talking of a separate external light bar, it should, but I’ve not seen it tried.

Tractor sideways. Check to make sure your view did not get set to 2d north.

Tractor disappeared. Never heard of this short of lost GPS. It will spin and say I’m lost.

In building the boundary tree layout, ssomehow I deleted the function for the A button. I almost have this fixed and will upload the fix in a day or so. I’ve a busy end of the week on the job.

I like the Bluetooth speaker idea.

---

<div class="post-metadata">

**Author:** ![jacobst1](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/j/59ef9b/32.png) [@jacobst1](https://discourse.agopengps.com/u/jacobst1)\
**Post date:** [20 May 2022 20:30 UTC](https://discourse.agopengps.com/t/tree-planning/3051/280 "2022-05-20T20:30:10Z")

</div>

So I have been having problems with the tree planting version. I was trying the things you said in simulator mode, and I started getting a connection problem window (not connecting to caster) Which Ivan said was an ntrip error. I did not have ntrip enabled. I was in simulator mode. I switched to normal, and the error was still flashing.

I could exit and run the lego version. No error. Go back to the tree planting and the error would flash.

Ivan told me to turn on ntrip, and turn it off again, and the error went away. This is the second time this has happened. I never realized what I did last time to get rid of the error.

Just thought I would check to see if there might be a bug?

Thanks  
Terry. I have pics of screen if you need them.

---

<div class="post-metadata">

**Author:** ![KentStuff](https://discourse.agopengps.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@KentStuff](https://discourse.agopengps.com/u/KentStuff)\
**Post date:** [20 May 2022 21:10 UTC](https://discourse.agopengps.com/t/tree-planning/3051/281 "2022-05-20T21:10:24Z")

</div>

My guess is the Lego version has a complete different AGIO and AGDIA. When you are running the tree version with the newer Lego, the correct AGIO and AGDIA must be running with it.

[Previous page](https://discourse.agopengps.com/t/tree-planning/3051.md?page=13)

[Next page](https://discourse.agopengps.com/t/tree-planning/3051.md?page=15)
