View Single Post
  #1   Spotlight this post!  
Unread 02-02-2009, 19:03
Maxpower57's Avatar
Maxpower57 Maxpower57 is offline
Fabuloso
AKA: Maxwell V.
FRC #2574 (RoboHuskie)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: St. Anthony, MN
Posts: 53
Maxpower57 will become famous soon enoughMaxpower57 will become famous soon enough
Send a message via AIM to Maxpower57
Camera Slowing code down?

So, i have the camera running the following code:
Code:
if(FindColor(GREEN, &par)){
printf("Particle Found");
}
Fairly simple, and works. however running this causes the code to slow down to around 1 execution every 3 seconds. (obviously Incredibly slow)

Im Using the IterativeRobot class to run the robot
yes, i have started the camera task.
the robot is running v11 of the CRIO image, and WPI is 3.0

I've tried:
Running the camera in a seperate task
- this causes the camera tasks to run at full speed, but the rest of the robot code runs at the incredibly slow speed.

let me know any ideas of whats going wrong
__________________
Reply With Quote