Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Vison Question (Sorting out the Array) (http://www.chiefdelphi.com/forums/showthread.php?t=105217)

heya101 29-03-2012 22:55

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

Re: Vison Question (Sorting out the Array)
 
This is how I did it:

http://www.chiefdelphi.com/forums/at...5&d=1332991560

Vikingtech2054 30-03-2012 20:29

Re: Vison Question (Sorting out the Array)
 
2 Attachment(s)
Quote:

Originally Posted by heya101 (Post 1151408)
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

Re: Vison Question (Sorting out the Array)
 
1 Attachment(s)
Quote:

Originally Posted by Vikingtech2054 (Post 1151704)
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

Re: Vison Question (Sorting out the Array)
 
Here a link to what I did:

http://www.chiefdelphi.com/forums/at...5&d=1332991560

heya101 30-03-2012 21:39

Re: Vison Question (Sorting out the Array)
 
I looked at your code, but how are you making sure that position1.x is actually looking at the center top hoop?


All times are GMT -5. The time now is 04:12.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi