|
Re: Question about CMUCAM servo output
The CMUCAM will draw a single big box around any pixels that are within the color range specified. Then it will find the centroid (middle) of the pixels if the camera can see more of a light the centroid will be more towards the center of the light that is closer or in better sight. Has you drive towards the center of the target, the other junk pixes will fall out of the viewing angle of the camera. Then the camera will try to center the only target pixels it can see. Which at that point should be a single light (The green light)
By default easyC has the target values for the green light preloaded.
I'll post some screen shots in a bit. ( I need to build a second light first)
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
|