Quote:
Originally Posted by slavik262
We're having some difficulties with the camera.
It's working, but response time is ridiculously slow (> 0.5 seconds). I'm not quite sure what's causing it. I'm just using the FindColor() function provided in the API, and I even tried to speed that up by allowing multiple calls to use the same image (so that you don't have to get a new image for each call). Still no luck.
The only thing thing that I can think of as the cause is that I'm using a multi-tasking system (the drive train, collector system, and shooter system all have their own tasks, using a buffering system of my design). I don't see how they would be slowing things down to that point, however, as all other tasks have very fast response times ( < 0.05 seconds).
Any ideas what may be the problem?
|
are you using any sensors?
we have a gyro and accelerometer and 7 motors all running and there's no delay....
is it on a rotating turret?
we had this problem, but solved it by decreasing the speed of the rotation and now it lock on in under .5 second from 6 feet....
although our camera is set to only track pink....