Log in

View Full Version : Autonomous CMU Cam help.......


cdennisxlx2
13-11-2006, 17:35
Ok all other problems have been fixed now im faced with the challenge of programming it. I am using a code from a thread i started about a year ago and ive adapted it to my program, when i run the bot in autonomous the cam doesnt do anything (ie. track or search) ive attached my program in a zip format can i get some one to over look it and see why its not working. Im also unclear on how to make it tell the wheels where to go in user mode. Thank you

Mike
13-11-2006, 18:33
Ok all other problems have been fixed now im faced with the challenge of programming it. I am using a code from a thread i started about a year ago and ive adapted it to my program, when i run the bot in autonomous the cam doesnt do anything (ie. track or search) ive attached my program in a zip format can i get some one to over look it and see why its not working. Im also unclear on how to make it tell the wheels where to go in user mode. Thank you
Hello,

Some questions:

What other problems?
What code are you using?
Nothing is attached. (I cheated, thats not a question :p)
Have you looked over the How to ask a question (http://www.chiefdelphi.com/forums/showthread.php?t=40965) thread?

-Mike

cdennisxlx2
13-11-2006, 18:53
OOPS ........ here is the code, sorry about that.

EHaskins
13-11-2006, 19:56
When your robot enters autonomous it does not leave until the autonomous flag clears. You must call the camera_handler, terminal, and tracking code must be recreated in the autonomous function.

If you add the same code you used in the Process_Data_From_Master_uP to User_Autonomous_Code it will work.

By user mode do you mean Autonomous or remote control?

FoxWil
07-12-2006, 18:23
Quick Question: can you use the CMU Cam to track mulitple colors?

Noah Kleinberg
07-12-2006, 18:48
Quick Question: can you use the CMU Cam to track mulitple colors?

The quick answer is no... While it can only track one color at a time (if you're using the track_color command, as I presume most people are), you could switch between more than one color by calling Track_Color each time so that you recieve feedback from the camera for each color that you're interested in, but I've heard that it takes too long for the camera to switch colors for this to be feasible

Astronouth7303
08-12-2006, 18:11
The quick answer is no... While it can only track one color at a time (if you're using the track_color command, as I presume most people are), you could switch between more than one color by calling Track_Color each time so that you recieve feedback from the camera for each color that you're interested in, but I've heard that it takes too long for the camera to switch colors for this to be feasible

The CMUcam2 is incapable at the lowest level to track multiple colors at once.

And rapidly switching between two colors is quite inefficient.