View Single Post
  #1   Spotlight this post!  
Unread 26-03-2006, 14:32
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
CMUCam control registers

I am writing (another) program to run the CMUCam and help set tracking parameters. (This one doesn't need Java, or Lab view). I have a couple of questions, that maybe someone can answer.

First has anyone (Kevin?) found a way to read out the sensor registers? I would like to see what the camera's internal code uses for exposure etc.

Second, I copied the various sensor settings from Kevin's code, and one in particular is causing trouble. Is anyone using anything other than the defaults.

Here is what I extracted from the code (maybe I got it wrong, any proof reading would be appreciated).
Code:
//Reg,  Value
{0x29, 0x80},	// Common I	= (AEC off)
{0x13, 0x20},	// Common B = (8 bit, auto func off)
{0x2D, 0x81},	// Common J = (flicker rates off)
{0x2A, 0x80},	// Frame Rate Adj 1 = (FRA on)
{0x2B, 0x20},	// Frame Rate Adj 2 = (-3.8%)
{0x2D, 0x81},	// Common J = (flicker rates off)
{0x12, 0x20},	// Common A (AGC on, AWB off)
{0x00, 0x00},	// AGC	= 1x
{0x01, 0x80},	// Blue Gain = 1 + 0
{0x02, 0x80},	// Red Gain = 1 + 0
{0x03, 0x80},	// Saturation = 1 + 0
{0x06, 0x01},	// Brightness
{0x10, 0x01},	// AE

(Also set NF to 0)
With the AE setting (last), I get an all purple image. With larger values (like 0x40), it works well. Since it is critical that this program use the exact same settings as the camera on the robot, I need to resolve this.

The plan is to have this program and our second camera to get near the field and check out the settings. We had a serious trouble with false positives at our first regional (Portland), and will be in Las Vega next weekend.
__________________
Don Reid