|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Camera not relaying to Smartdashboard
Hello CD,
My team and I are trying to get camera footage to the SmartDashboard, and we found from some sources to do this: Code:
Command autonomousCommand;
SendableChooser chooser;
public static CameraServer cam1;
public void robotInit() {
...
cam1 = CameraServer.getInstance();
cam1.setQuality(50);
cam1.startAutomaticCapture("Camera-1");}
|
|
#2
|
|||
|
|||
|
Re: Camera not relaying to Smartdashboard
A couple of things:
1) You need to reference the camera differently: Code:
server.startAutomaticCapture("cam1");
Code:
server.setSize(1); // force 320x240 Also, be sure to select USB Camera SW on the default dashboard. |
|
#3
|
|||
|
|||
|
Re: Camera not relaying to Smartdashboard
If you try to send other data to the SmartDashboard, can you see it? If not, I would make sure you have the correct team number in the dashboard.
Also, as BenBernard said, make sure you have the correct camera name. For us, it's "cam0." |
|
#4
|
||||
|
||||
|
Re: Camera not relaying to Smartdashboard
Hey guys
Thanks for the help. It turns out the code was right, but our camera is so old it only worked on Windows XP and we couldn't install the driver onto our computer. We're getting a new camera for the 2017 season. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|