Thread: Camera Feed
View Single Post
  #1   Spotlight this post!  
Unread 15-03-2016, 15:33
ChetRanjan ChetRanjan is offline
Chet Ranjan
AKA: Chet Ranjan
FRC #5404 (North Penn Montco Robotics)
Team Role: Mentor
 
Join Date: Jun 2014
Rookie Year: 2014
Location: Lansdale, PA
Posts: 5
ChetRanjan will become famous soon enough
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
--------------------------------------------------------------------------