blob: bfcd31c6096e08d832ef8181fc0ec871ae856076 [file] [log] [blame]
Parker Schuhc1975fc2018-04-07 15:27:07 -07001#!/bin/bash
2
3set -e
4
Michael Schuh8e692452018-04-07 17:35:04 -07005EXPOSURE='100'
Parker Schuhc1975fc2018-04-07 15:27:07 -07006
7echo $SHELL
8
Parker Schuhc1975fc2018-04-07 15:27:07 -07009
10# Michael added this one to try and have the exposer set correctly sooner.
11sleep 1
12echo Setting exposure again after 1 seconds
13
Austin Schuh8d5fff42018-05-30 20:44:12 -070014for CAMERA in /dev/video0 /dev/video1
15do
16 echo "${CAMERA}"
17 v4l2-ctl --set-ctrl="exposure_absolute=$EXPOSURE" -d "${CAMERA}"
18done
Parker Schuhc1975fc2018-04-07 15:27:07 -070019
20echo Done setting exposure again after 1 seconds
21
22
23# Michael added this one to try and have the exposer set correctly sooner.
24sleep 5
25echo Setting exposure again after 5 seconds
Austin Schuh8d5fff42018-05-30 20:44:12 -070026for CAMERA in /dev/video0 /dev/video1
27do
28 echo "${CAMERA}"
29 v4l2-ctl --set-ctrl="exposure_absolute=$EXPOSURE" -d "${CAMERA}"
30done
Parker Schuhc1975fc2018-04-07 15:27:07 -070031
32echo Done setting exposure again after 5 seconds
33
34#sleep 15
35#
36#echo Setting exposure again after 20 seconds
37#
38#v4l2-ctl --set-ctrl="exposure_absolute=$EXPOSURE" -d $A
39#
40#echo Done setting exposure again after 20 seconds