View Single Post
  #1   Spotlight this post!  
Unread 09-02-2015, 17:49
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 222
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Python: Having problems with USB camera?

Hi! We are still trying to get our USB Camera working with this __init__ code:
Code:
try:
            self.camera = wpilib.USBCamera()
            self.camera.startCapture()
            self.camServ = wpilib.CameraServer()
            self.camServ.startAutomaticCapture(self.camera)
        except:
            self.camera = None
The camera shows up in the RoboRIO web interface but we can't seem to get it to show up in the SmartDashboard or the Driver Station. Maybe I missed a step in setting up the camera since this is the first time I have set a USB Camera up with the RIO. We are using RobotPy and Pyfrc. Any help would be greatly appreciated!