[Help] Hooking Up Camera and Gyro to DriverStation Dashboard


#1

How do you make a USB camera’s feed show up on the DriverStation Dashboard on the cameras tab? And the gyroscope display is not updating either. We’re using a NavX gyroscope.


#2

Importing CameraServer and adding this line of code to RobotInit() did nothing:

CameraServer.getInstance().startAutomaticCapture();


#3

Which dashboard are you using?


#4

This one:


#5

That line of code should have done the trick. Did you put it in robotInit()? Just to confirm, you’re saying the camera never showed up in the camera list dropdown menu? Did the “NT Connection” light light up on the dashboard?


#6

I don’t recommend that you use that Dashboard but if you want you can use PutNumber to place the gyro value in the Variables tab


#7

Yes.

Yes.

Uh… I’ll have to check on that.

Is there a better dashboard?


#8

There is the New Switchboard which is very nice to use. They also have the other Java Dashboard which is a blank screen but you can add everything you need to it you just won’t be able to make nice widgets.