|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Camera Slowing code down?
So, i have the camera running the following code:
Code:
if(FindColor(GREEN, &par)){
printf("Particle Found");
}
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 |
|
#2
|
|||
|
|||
|
Re: Camera Slowing code down?
We are having similar issues. http://www.chiefdelphi.com/forums/sh...ad.php?t=73447
The first thing you should try is dropping the camera image to 160x120 pixels. That should speed it up a bit, but its still dreadfully slow. |
|
#3
|
||||
|
||||
|
Re: Camera Slowing code down?
Quote:
i fear i may have to create a new task for the rest of the robot code as well, but then it may be faster to just use the SimpleRobot class. anybody have any other ideas? |
|
#4
|
||||
|
||||
|
Re: Camera Slowing code down?
Ok I got it.
When the documentation says the Wait(5); function waits for 5 milliseconds, it means seconds. (this happens with the timer->Get() too btw) take out this line. ah, thank you wpilib. ![]() |
|
#5
|
||||||
|
||||||
|
Re: Camera Slowing code down?
Update 2 changed the default to seconds (and was noted in the release notes). Looking at the documentation from C++ update 3, I don't see any references to milliseconds. If you are looking at the latest documentation and see something that is wrong, you should post on the FIRST forums so that it can be corrected.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problems using gyro/adc code with camera default code | tanstaafl | Programming | 7 | 22-01-2006 23:09 |
| Slowing down Camera drive turning | Zalumaskov | Programming | 1 | 27-02-2005 10:11 |
| Team THRUST - Kevin's Code and Camera Code Combine | Chris_Elston | Programming | 3 | 31-01-2005 22:28 |
| Slowing Down Drive Motors | Arc736UV | Programming | 5 | 24-01-2005 22:35 |
| Is FIRST slowing down with it's updates! | mtaman02 | Regional Competitions | 8 | 15-03-2004 23:25 |