View Single Post
  Spotlight this post!  
Unread 04-01-2016, 21:52
timtim17's Avatar
timtim17 timtim17 is offline
Programmer
AKA: Austin
FRC #1294 (Top Gun Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Sammamish, WA
Posts: 13
timtim17 has a spectacular aura abouttimtim17 has a spectacular aura abouttimtim17 has a spectacular aura about
Re: USB Camera issues

I don't have experience with RobotPy, but I think you need to specify the name of the camera when creating the USBCamera instance.
Code:
self.camera = wpilib.USBCamera("cam1")
Also, I don't think you need to call self.camera.startCapture(), because self.camServ.startAutomaticCapture(self.camera) calls it for you.