View Full Version : Vison Question (Sorting out the Array)
So I'd like to be able to just pick the top most hoop when targeting. I know your supposed to just unbundle the target info variable and then use the y-values and try to find the max y value and use its information.
The problem for me is translating those words into actual code. If someone could just so me a picture of what they did to sort the target info's, that would be great.
agartner01
30-03-2012, 14:26
This is how I did it:
http://www.chiefdelphi.com/forums/attachment.php?attachmentid=12455&d=1332991560
Vikingtech2054
30-03-2012, 20:29
So I'd like to be able to just pick the top most hoop when targeting. I know your supposed to just unbundle the target info variable and then use the y-values and try to find the max y value and use its information.
The problem for me is translating those words into actual code. If someone could just so me a picture of what they did to sort the target info's, that would be great.
i created an example for you maybe this may help the teleop is what might be used in an actual robot code. the vision code is the example which show you how to track and classify the targets
Let me know if this helps or you have more questions
Vikingtech2054
30-03-2012, 20:34
i created an example for you maybe this may help the teleop is what might be used in an actual robot code. the vision code is the example which show you how to track and classify the targets
Let me know if this helps or you have more questions
I had problems with the attachments so i zipped the code so it should work now
agartner01
30-03-2012, 20:42
Here a link to what I did:
http://www.chiefdelphi.com/forums/attachment.php?attachmentid=12455&d=1332991560
I looked at your code, but how are you making sure that position1.x is actually looking at the center top hoop?
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.