|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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
|
||||
|
||||
|
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
|
|||||
|
|||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |