View Single Post
  #6   Spotlight this post!  
Unread 29-12-2006, 15:38
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: EasyC for FRC: Drive and Auto Track Camera Code

Quote:
Originally Posted by Kingofl337 View Post
Roughly...Yes

But, the robot should keep driving during the switch.
Actually, this is close but not quite correct.

What happens is that the code waits for the robot to be on for 2 seconds before it will send any initialization data to the camera. This is to ensure that the camera has powered itself up. Your program can do other things during that 2 seconds, but the InitCamera function will wait (inside the function) until the camera is properly powered up.

Once that happens, the actual initialization takes about 50ms. So you can stop the camera, send it new initialization data, and restart in under 100ms for everything.

The 2 second delay only applies to the first time.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute