View Single Post
  #2   Spotlight this post!  
Unread 14-02-2013, 00:31
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Choosing which target to track

The Target Info cluster (a global variable that you should have from the vision tracking VI) holds all of the target data in the form of arrays, with each array containing an X and Y coordinate of a target (with 0,0 being the center of the camera's vision).

What you are looking to do is compare the X coordinates of the various targets being tracked and find the most negative one. One way you can do this is using the Max/Min function in the comparison pallet. Let me know if you need more detailed help - but half the fun is figuring it out!
Reply With Quote