DIFM-Brain / ofpetrial

GNU General Public License v3.0
0 stars 1 forks source link

Problem in V0 example with planter outside of plot #40

Closed brittanikedge closed 4 months ago

brittanikedge commented 4 months ago

Planter machine falls outside of the plot when the space between each machine should be consistent.

Screenshot 2024-05-03 at 2 05 36 PM
brittanikedge commented 4 months ago

It seems that after the intersection with the trial plot, the abline for the planter starts at a different end of the trial plot than the harvester and applicator, although I'm not sure why it's happening. I am thinking the best thing to do is change the way the center of the machine figure is found. I'm going to do the same thing in the function that creates the width line in the first figures. Rather than using the abline, I will use the trial plot to anchor the creation of each of the new elements. That seems better than trying to handle the instability of the ablines that I haven't figured out yet.

brittanikedge commented 4 months ago

@tmieno2 Actually, after taking one more look with fresh eyes, I think I may have found the problem. Do you have any idea why the planter abline could have a slightly different direction than the two others? What seems to be happening is that the intersection of the planter abline and plot does not begin at one end of the plot but rather in the middle.

For reference, here is a simple figure of the line and the trial plot:

Screenshot 2024-05-06 at 10 47 22 AM

And here you can see that there is a slight difference in the move_vec for this abline.

Screenshot 2024-05-06 at 10 47 51 AM

The plot extends from y = 4331702 to 4331782, but when intersected with the abline, the resulting line only goes from 4331773 to 4331782. I still might want to change the method to not use the abline, but I thought you should know about this problem with the abline.

This is all using V0 example as the trial design.

tmieno2 commented 4 months ago

Okay, we might want to talk about the algorithm you are using. Do you have time now?

brittanikedge commented 4 months ago

Sure! I'm actually working on changing the method, so I can tell you what I'm thinking.