Thread: Kevin's Code?
View Single Post
  #6   Spotlight this post!  
Unread 27-01-2006, 16:32
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,360
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Kevin's Code?

Quote:
Originally Posted by winners
Thanks very much for the help. but 1 more question, I loaded that code on the RC, so does it only return the servo values, or that it also tracks that color (keeps it in the middle of the frame captured by the cmucam)?

Thanks again.
Kevin's code reads the T-packet information coming from the camera and uses it to command the tilt and pan servos where to move the camera to position the "centroid" of the green light on the "center" pixels of the cameras detector. The center values are available/configurable in the tracking.h file along with many others. It is well worth your time to read through every comment and line of code he has written. All of this and much more are explained in the code.

I believe what Andrew meant by an open window is a terminal window. Kevin's code feeds back, using printf commands, information to a terminal window that can be opened in the IFI loader. It will allow you to see the positioning data. By looking through the terminal.c and .h files, you will be able to find what values are being sent to the servos to tell them how to position the camera. Extrapolating this information, you should be able to use it to position your robot and ball launcher to hit the target you desire.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist