|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Finding color
Hey, i've had no luck with the camera so far at all...all i want to do is have a code in autonomous that just finds green and returns a 1...the camera doesn't even have to move..it can just stand still..but just finding a color is posing trouble for me...if someone could give me a sample code..or what function i need to run and how that would be appreciated
|
|
#2
|
|||||
|
|||||
|
Re: Finding color
Alrighty heres what I would do.
In user_routines_fast.c at the beginning Code:
int counter=0; int tracking_green=0; Code:
#if _use_CMU_Camera
if(counter=0)
{
camera_init(x,y,z);
auto_servo(0);
camera_find_color(GREEN);
counter++
}
if (camera_track_update()=1 && cam.size > 0)
{
tracking_green=1;
}
else
{
tracking_green=0;
}
#endif
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Color codes for new versions of anything? | Elgin Clock | General Forum | 7 | 16-12-2004 20:16 |
| Is this a valid technique? (Color application to metal) | Elgin Clock | Technical Discussion | 8 | 09-06-2004 21:33 |
| Whats in a team color? | MisterX | General Forum | 11 | 02-04-2004 22:22 |
| Link color | Jack | Website Design/Showcase | 4 | 19-11-2002 16:31 |