|
Camera Feed
Our robot works perfectly during teleOp and responds well to changes in the joystick.
But, when we enable the feed from the camera, the drive during teleOp becomes intermittent. It seems like the values from the joystick are buffered and then executed in bulk. That gives robot jerky movements. So, for now we have camera feed disabled.
How can we diagnose the issue and fix it?
Thanks,
Chet
The code for camera feed is as follows:
--------------------------------------------------------------------------
import edu.wpi.first.wpilibj.CameraServer;
public static CameraServer cam = CameraServer.getInstance();
Initialization.cam.setQuality(10);
Initialization.cam.setSize(100);
Initialization.cam.startAutomaticCapture();
The properties for USB Webcam viewer on the dashboard side is:
FPS = 10, Size = 640 X 480
--------------------------------------------------------------------------
|