Permalink
Find file
43b852e Mar 23, 2015
executable file 19 lines (11 sloc) 394 Bytes
#!/usr/bin/env python
import wpilib
class MyRobot(wpilib.IterativeRobot):
def robotInit(self):
self.camera = wpilib.USBCamera()
self.camera.startCapture()
self.camera.setExposureAuto()
self.cameraServer = wpilib.CameraServer()
self.cameraServer.startAutomaticCapture(self.camera)
if __name__ == '__main__':
wpilib.run(MyRobot)