![]() |
Robot drive and camera interaction not working
I a currently working on a program that will use the camera to guide the robot, but the problem is I can't get it to work. When I try the drive or the camera separately, it works without an issue, but when I use one to control the other, it does not work and it fills my console with
Code:
"Robot Drive... Output not updated often enough."Code:
AxisCamera camera; // the axis camera object (connected to the switch) |
Re: Robot drive and camera interaction not working
My guess is that processing the camera image is taking longer then the frequency of the driver station packets (20 ms). Have you tried timing each of the operations? You might have to break up the processing for each step (1st time through the loop get the image, 2nd time through the loop threshold the image, etc).
|
Re: Robot drive and camera interaction not working
Try putting this at the end of autonomous
Timer.delay(1); |
Re: Robot drive and camera interaction not working
Another thing is that if reports.length is 0, you won't call the RobotDrive, which will cause that message.
|
Re: Robot drive and camera interaction not working
Quote:
|
Re: Robot drive and camera interaction not working
I did put an if in case it was zero, and the resolution is higher. I had tested it and there was always at least one rectangle
|
Re: Robot drive and camera interaction not working
Quote:
drive.setSafetyEnabled(false) |
| All times are GMT -5. The time now is 10:09. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi