I was wondering what the purpose is of boot_initialization_flag in camera.c is?
It seems like if take the flag out it would solve my problem of the camera not working after a robot reset, and having to turn to whole robot off before the camera works again...
Code:
// stuff to do after the camera goes through a power-on reset
if(boot_initialization_flag == 1)
{
// get the camera's attention
Camera_Idle();
// set the command & packet transfer mode
Raw_Mode(5);
// don't execute this code again until the next power on reset
boot_initialization_flag = 0;
}
Whats the point of that flag?