|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Purpose of "boot_initialization_flag" in 'camera.c'
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;
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Where can I find motor control in Camera.c? | sjung9442 | Programming | 3 | 31-01-2006 15:49 |
| Purpose of the _SIMULATOR macro? | lasindi | Programming | 1 | 14-01-2006 19:07 |
| Bumpers for a game purpose? | Andrew Blair | Rules/Strategy | 6 | 10-01-2006 13:08 |
| Losing focus on the purpose of FIRST.. someone bring me back | archiver | 2000 | 6 | 23-06-2002 22:56 |
| Did Team 505 do it on purpose | Elgin Clock | Regional Competitions | 4 | 31-03-2002 10:13 |