Hi,
I am using a Leopard 368 board, with the MT9P031 cmos sensor. I am running the AEW driver, and the colors look great. The problem is that, depending of the amount of light, I have to change manually the exposure of the sensor (V4L2_CID_EXPOSURE ioctl, propagated to the sensor through the mt9031.c driver). Inside, in relatively low-light condition, it looks fine by default. Outside. the image is completely white, so I have to change the CMOS exposure. I have no clue if the V4L2_CID_EXPOSURE_AUTO might be of any help. Every time, I issue this ioctl, the driver compute the same exposure / shutter settings, whatever if the cmos is inside (low light) or outside (high light).
As a hack for now, I am computing in real-time the amount of light on the image, and then I change the shutter. I am sure there is a much better way to achieve this...
Any pointer on this would be greatly appreciated!
Thanks.