Quote:
|
Originally Posted by 781Co-Cap
try using a red background as well then you will know if it goes towards it...just an idea
|
Has anyone noticed strange things in the default code that runs the camera??
In camera.c the function:
int camera_const_cmd(rom const char *cmd_str)
terminates on \r or NULL and will send the \r or NULL out the serial port. I guess the camera won't choke on the NULL but the camera has to see the \r to process the command and sometimes this function is called using a constant that has the \r terminator like:
rom const char *Str_cr = "CR 19 32\r"; // terminate string with \r
and other times it calls it with:
rom const char *raw_mode = "rm 1"; // no \r here
I know the code works because we are running it fine. ??????
Another weird thing in camera.c is the call
camera_const_cmd(manual_agc);
which sets BIT 5 of the Common control B reg in the camera.
This bit sets 8 bit format for the UV bus rather than 16 bit and has nothing to do with AGC.
ALSO.... camera_auto_servo( ) sets the SP parameters but rom const SP parameters also exist in user_routines_DDT.c.