Go to Post Different strokes for different folks. - Madison [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 21-02-2005, 11:08
silliewillie's Avatar
silliewillie silliewillie is offline
Registered User
#1643 (Bob's Builders in Black)
Team Role: Animator
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Tallmadge Ohio
Posts: 14
silliewillie is on a distinguished road
Exclamation Urgent CMUCAM question

We're well aware that we're pushing the clock here, but we have kinda put the CMUCAM on the backburner until now. We don't know what to do basically. We need some major help. All rookie team 0 experienced programmers. We're using the default code 2.4 from ifirobotics.com, the one wiht default camera code with it. The CMU cam is hooked up to the 2 servo motors, and i can get it to work in demo mode just fine. But when it's hooked up to our bot, it doesn't do anything. So my questions are:

With the default code, how much is already set up for us? What do we have to modify or add to get the camera tracking a color? It seems like the code is already set up so that the bot will interpret where the color is and will drive towards it. We really need to get this up and running today, lol, obviously. I need some serious help, I'm stumped. Is it something with programming or is my hardware bad? thank you for your help and time.
  #2   Spotlight this post!  
Unread 21-02-2005, 15:02
arcticdragon's Avatar
arcticdragon arcticdragon is offline
Registered User
AKA: Andy
#1351 (AMHS Robotics)
Team Role: Programmer
 
Join Date: Sep 2004
Rookie Year: 2003
Location: San Jose, CA
Posts: 2
arcticdragon is an unknown quantity at this point
Send a message via AIM to arcticdragon
Re: Urgent CMUCAM question

the default code is actually pretty good with the camera tracking, almost all of it is there.

all you need to do is edit camera_processing in user_routines.c, right now every time you click the trigger on port 2, the camera is supposed to track a different color. you can find out which color it is currently tracking by looking at the oi board. if pwm01 is green then its yellow, below that is green, then white, red, and blue

upload it and connect the camera and track.

but we are also having problems too, when we track, up and down works fine, it follows the target, but when we move the target left and right, it moves in the opposite direction.

any ideas?

-Andy
  #3   Spotlight this post!  
Unread 21-02-2005, 15:09
russell's Avatar
russell russell is offline
Registered User
#1430 (WRONG)
Team Role: Electrical
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Anchorage AK
Posts: 402
russell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to all
Re: Urgent CMUCAM question

Andy- Up at the top (or bottom or something, depends on how you have it oriented) of the camera there are two rows of pins. When you put a jumper across differnt sets of these pins you can reverse the direction the camera pans or tilts. Look in the documentation for more information.

SillieWillie- Assuming you are planning to use the camera in autonomous mode the default code does nothing whatsoever for you. I wrote some code you could use if you want, but it will take you at least a few hours to get it working on your bot, and no garuntees as to whether it will get the bot to cap in time (I havent actually tested it). You can find it in the thread in this forum called "Out of the Box Camera Code". Be sure to get the readme file also, as it explains what the code is doing and what you need to modify to customize it for your robot.
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
Question of the Week!!! (6/14/04) Andy Grady General Forum 23 01-07-2004 15:54
Urgent!! (programming question) anupalsingh Programming 6 25-02-2004 10:53
Urgent motor question Brett W Motors 2 13-02-2003 15:14


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

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