Hey all,
We’re in the last week of robotics camp. I want to do a servo sweep while recording video. I can’t get them to go at the same time. Can anyone help? Here’s my code (you can’t see the indents, but syntax is fine):
def fullsweep():
for x in range (0, 1):
with picamera.PiCamera() as camera:
print "Taking video"
camera.start_recording(‘test.h264’)
for i in range(180):
servo(i)
print i
time.sleep(.02)
time.sleep(.8)
servo(90)
time.sleep(.02)
with picamera.PiCamera() as camera:
camera.stop_recording()
print ‘Voltage:’,volt()