Go to Post COMPETE like crazy for the 2 minutes you are on the field, COOPERATE like crazy all the rest of the time. When we play this way, we all win. - Chris Fultz [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 05-02-2011, 16:41
josneville's Avatar
josneville josneville is offline
The Chosen One
FRC #0540 (Talon 540)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: GHS Talon 540 Team
Posts: 15
josneville is on a distinguished road
Question Camera Tracking

Rookie programmer. Need to learn how to use the camera for vision tracking. I learned how to detect a specific color and create a script from it but dont know how to make the robot respond and move to the detected color. Please Help.
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2011, 22:52
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Camera Tracking

(I've never done vision programming)

But I think what you should do is divide the camera into three sections: left, right, and center. If you see the color in the left one, send a small value to the joystick x value in arcade drive (or whatever you have there). If it's the right one, send a negative value, and if it's in the middle zone send a 0.

Is that helpful?
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2011, 19:45
Wolfgang Wolfgang is offline
Registered User
AKA: Mehmed
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Denver
Posts: 47
Wolfgang is an unknown quantity at this point
Re: Camera Tracking

You should try to code out the position of the color source since the camera probably picks one up and make the camera try to make its position equal the color source position.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2011, 16:12
ashleyh ashleyh is offline
Ashley H.
FRC #0540 (Talon 540)
Team Role: Programmer
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Virginia
Posts: 6
ashleyh is an unknown quantity at this point
Re: Camera Tracking

This tutorial might be helpful: http://decibel.ni.com/content/docs/DOC-14729
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 21:19.

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