Thread: Camera Problems
View Single Post
  #2   Spotlight this post!  
Unread 15-01-2005, 18:55
Phil Roth Phil Roth is offline
Registered User
#0011 (BASF)
 
Join Date: Jan 2003
Location: Mt. Olive New Jersey
Posts: 31
Phil Roth is an unknown quantity at this point
Send a message via AIM to Phil Roth Send a message via Yahoo to Phil Roth
Re: Camera Problems

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.

Last edited by Phil Roth : 15-01-2005 at 18:58.