Go to Post The programmers tend to get less credit than they deserve, but the robot wouldn't run if we weren't there. :) - IMDWalrus [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-01-2006, 17:14
winners winners is offline
Registered User
no team
 
Join Date: Jan 2006
Location: Nazareth
Posts: 22
winners is an unknown quantity at this point
Kevin's Code?

I really wish to know what does Kevin's code (bells and whistles version) exactly do?

does it Track the green light or that it just returns/sends out some information for the CMUCam?

and if it tracks the green light, i wish to know were should I plug the servo PWM's to?

Thanks in advance.
  #2   Spotlight this post!  
Unread 24-01-2006, 17:26
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,277
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Kevin's Code?

KEvins code searches for light that falls within given parameters (the green light by default) and returns servo posistions to the robot controller. By default you should plug the Tilt servo int PWM 02 and the pan servo into PWM 01, You can read the Camera and tracking read me files included in his code for more information.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
  #3   Spotlight this post!  
Unread 24-01-2006, 18:02
winners winners is offline
Registered User
no team
 
Join Date: Jan 2006
Location: Nazareth
Posts: 22
winners is an unknown quantity at this point
Re: Kevin's Code?

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.
  #4   Spotlight this post!  
Unread 24-01-2006, 18:55
Andrew Blair's Avatar
Andrew Blair Andrew Blair is offline
SAE Formula is FIRST with Gasoline.
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry
Posts: 1,193
Andrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond repute
Send a message via AIM to Andrew Blair Send a message via Yahoo to Andrew Blair
Re: Kevin's Code?

If you do not have a window open, it will attempt to track the light, by default.
__________________
Reading makes a full man, conference a ready man, and writing an exact man.
-Sir Francis Bacon

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
-Albert Einstein
  #5   Spotlight this post!  
Unread 27-01-2006, 15:55
winners winners is offline
Registered User
no team
 
Join Date: Jan 2006
Location: Nazareth
Posts: 22
winners is an unknown quantity at this point
Re: Kevin's Code?

what do you mean by a "window open"?
  #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,356
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
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
Some things i'm trying to understand on Kevin's Accelerometer Code Squall Programming 2 03-02-2005 12:01
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
heres the code. y this not working omega Programming 16 31-03-2004 15:18


All times are GMT -5. The time now is 01:01.

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