Skip to content

Commit

Permalink
Use fixed timeout in consistent image recipe
Browse files Browse the repository at this point in the history
Turns out the recipe doesn't work in daylight as analog gain never
exceeds one in daylight
  • Loading branch information
waveform80 committed Mar 21, 2015
1 parent b547e7c commit a81dbbb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/recipes1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,8 @@ The following script provides a brief example of configuring these settings::
with picamera.PiCamera() as camera:
camera.resolution = (1280, 720)
camera.framerate = 30
# Wait for analog gain to settle on a higher value than 1
while camera.analog_gain <= 1:
time.sleep(0.1)
# Wait for the automatic gain control to settle
time.sleep(2)
# Now fix the values
camera.shutter_speed = camera.exposure_speed
camera.exposure_mode = 'off'
Expand Down

0 comments on commit a81dbbb

Please sign in to comment.