OCCRA
Go to Post You know you have FIRST Kickoff fever when you know when Kickoff is but not Christmas. - Jacob.B [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-29-2012, 09:55 PM
heya101 heya101 is offline
Registered User
FRC #3699
 
Join Date: Mar 2011
Location: Minnesota
Posts: 11
heya101 is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-30-2012, 01:26 PM
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
Re: Vison Question (Sorting out the Array)

This is how I did it:

http://www.chiefdelphi.com/forums/at...5&d=1332991560
Reply With Quote
  #3   Spotlight this post!  
Unread 03-30-2012, 07:29 PM
Vikingtech2054's Avatar
Vikingtech2054 Vikingtech2054 is offline
Registered User
FRC #5162 (Big Red Theory)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Hopkin, Michigan
Posts: 82
Vikingtech2054 is an unknown quantity at this point
Re: Vison Question (Sorting out the Array)

Quote:
Originally Posted by heya101 View Post
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
Attached Files
File Type: vi Teleop.vi (19.0 KB, 13 views)
File Type: vi Rectangular Target Robot Main.vi (19.7 KB, 11 views)
__________________
Ferris State University-College of Engineering
FRC 2054 Student 2010-2013
FTC 6283 Mentor 2012-2013
FTC 5980 Mentor 2012-????
FTC 7837 Mentor 2013-????
FRC 2054 Mentor 2013-????
FRC 5162 Mentor 2014-????
Reply With Quote
  #4   Spotlight this post!  
Unread 03-30-2012, 07:34 PM
Vikingtech2054's Avatar
Vikingtech2054 Vikingtech2054 is offline
Registered User
FRC #5162 (Big Red Theory)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Hopkin, Michigan
Posts: 82
Vikingtech2054 is an unknown quantity at this point
Re: Vison Question (Sorting out the Array)

Quote:
Originally Posted by Vikingtech2054 View Post
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
Attached Files
File Type: zip vision help.zip (264.8 KB, 13 views)
__________________
Ferris State University-College of Engineering
FRC 2054 Student 2010-2013
FTC 6283 Mentor 2012-2013
FTC 5980 Mentor 2012-????
FTC 7837 Mentor 2013-????
FRC 2054 Mentor 2013-????
FRC 5162 Mentor 2014-????
Reply With Quote
  #5   Spotlight this post!  
Unread 03-30-2012, 07:42 PM
agartner01 agartner01 is offline
Captain + Control Sys & Design
FRC #4174
Team Role: Engineer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Hector MN
Posts: 109
agartner01 is an unknown quantity at this point
Re: Vison Question (Sorting out the Array)

Here a link to what I did:

http://www.chiefdelphi.com/forums/at...5&d=1332991560
Reply With Quote
  #6   Spotlight this post!  
Unread 03-30-2012, 08:39 PM
heya101 heya101 is offline
Registered User
FRC #3699
 
Join Date: Mar 2011
Location: Minnesota
Posts: 11
heya101 is an unknown quantity at this point
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?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:26 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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