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.

This is how I did it:

http://www.chiefdelphi.com/forums/attachment.php?attachmentid=12455&d=1332991560

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

Teleop.vi (19 KB)
Rectangular Target Robot Main.vi (19.7 KB)


Teleop.vi (19 KB)
Rectangular Target Robot Main.vi (19.7 KB)

I had problems with the attachments so i zipped the code so it should work now

vision help.zip (265 KB)


vision help.zip (265 KB)

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?