![]() |
Camera Slowing code down?
So, i have the camera running the following code:
Code:
if(FindColor(GREEN, &par)){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 |
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. |
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. :confused: anybody have any other ideas? |
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. :rolleyes: |
Re: Camera Slowing code down?
Quote:
|
| All times are GMT -5. The time now is 02:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi