Quote:
|
Originally Posted by magical hands
What does this message means and what should my next step be?
|
Searching...
The camera is looking for the green target but hasn't found it yet
The Block of text reports the following information:
1. Pan Angle (degrees):
• The position of the Pan Servo relative to center (127) represented in
degrees.
2. Tilt Angle (degrees):
• The position of the Tilt Servo relative to center (127) represented in
degrees.
3. Pan Error (Pixels):
• How far off (in Pixels) from the vertical center of the color blob the sensor
is aimed.
4. Tilt Error (Pixels):
• How far off (in Pixels) from the horizontal center of the color blob the
sensor is aimed.
5. Blob Size (Pixels):
• The size of the color blob (in Pixels) reported from the Sensor.
6. Confidence:
• The (# of pixels being tracked / area of the bounded rectangle)*256 and
capped at 255.
...Find all this and more at
http://kevin.org/frc/CMUcam2_workbook.pdf
The first thing that would concern me is how high your error numbers are and how small your blob size is. If you haven't modified the code, it should move to where the target is once it aquires it and the error size should go down to something within the defined acceptable error. I don't remember what the default values are off the top of my head, something on the order of 5 pixels or so. If it doesn't home in on the center of the target, check the code in tracking.c.
How far away from the target are you?
Also, I don't think that you should need to change the color values from the default ones that Kevin gave you. They seem to work all right in most cases and most light. We've tried it in varying conditions, from all the lights off, to sunlight, and there was very little variation in tracking conditions (bright natural light seemed the worst).