Go to Post a robot can always be your girl. xcept for the fact you need to share - greencactus3 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-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 13-02-2013, 21:11
pickett pickett is offline
Registered User
FRC #0519
 
Join Date: Feb 2012
Rookie Year: 2003
Location: Michigan
Posts: 7
pickett is an unknown quantity at this point
Choosing which target to track

How would I choose which one of the three targets to track. For example if I want to track the top left target only using the vision processing example

Thanks in advance
Reply With Quote
  #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
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 08:57.

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


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