Go to Post My rule of thumb is that any team who's won four World Championships can count their chickens whenever they want. :p - Karthik [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #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
--------------------------------------------------------------------------
  #2   Spotlight this post!  
Unread 15-03-2016, 15:54
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Camera Feed

Those symptoms sound like either the Driver Station computer's CPU or networking is being bogged down by trying to display the image. What kind of computer are you using, and what kind of network interface is it?

Try dropping the image size to 320x240 instead and see what effect it has.
  #3   Spotlight this post!  
Unread 15-03-2016, 15:56
JacobD's Avatar
JacobD JacobD is offline
Registered User
AKA: Jacob
FRC #1672 (Mahwah Robo T-Birds)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2013
Location: New Jersey
Posts: 97
JacobD is an unknown quantity at this point
Re: Camera Feed

Are there any errors appearing on the driver station?

Can you possibly send us your teleop() method so we can see how you are implementing your drive.

For future reference:

use the [code] tag for your post
__________________
SolidWorks CAD
AutoCAD
Java
  #4   Spotlight this post!  
Unread 15-03-2016, 16:29
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
Re: Camera Feed

@Alan: The Driver Station laptop is HP Pavilion that I got last year with intel i5 CPU, 8 gigs of RAM and 1 TB storage running Windows 8. The WiFi device is 'Intel Dual Band Wireless-AC 3160'

We will try the 320 X 240 and let you know. But, last year we used LabVIEW and we were able to get the feed with this frame size.

@Jacob: There are no errors on the driver station.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:30.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi