View Single Post
  #3   Spotlight this post!  
Unread 30-03-2012, 20:29
Vikingtech2054's Avatar
Vikingtech2054 Vikingtech2054 is offline
Registered User
FRC #5162 (The Big Red Theory)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Big Rapids, MI
Posts: 86
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-Manufacturing Engineering (BS)

FRC 2054: Student 2010-2013
FTC 6283: Mentor 2012-????
FTC 5980: Mentor 2012-????
FTC 7837: Mentor 2013-????
FRC 2054: Mentor 2013-????
FRC 5162: Mentor 2014-????
FRC 5448: Mentor 2016-????
FRC 5576: Mentor 2015
Reply With Quote