I have adjusted (almost) all of the camera settings to optimize my vision system and I wanted to have them last through power cycles, so I added lots of setcam lines in the initscript.cfg file. After realizing what order I needed to put them in (autoexp before autogain, etc), all of the configurations except absexp produced the wanted result (updating the camera settings properly). I have tried placing the line "setcam absexp 78" before and after "streamon", after "autowb", after "gain", and after "start". I am getting errors that I don't understand and have pasted below.
Here is my initscript.cfg:
setpar serlog USB
setpar serout USB
streamon
setcam presetwb 0
setcam autoexp 1
setcam autogain 0
setcam autowb 1
setcam brightness -3
setcam contrast 3
setcam saturation 4
setcam gain 16
setcam absexp 78
start
Here is what is printed to the console when I boot the camera:
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 9 on entity 1
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 9 on entity 1
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 9 on entity 1
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 9 on entity 1
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 20 on entity 1
ERR Gadget::processEventControl: Unsupported control with length 10 -- SENDING BLANK RESPONSE
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 20 on entity 1
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 20 on entity 1
ERR Gadget::processEventControl: Unsupported control with length 10 -- SENDING BLANK RESPONSE
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 20 on entity 1
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 20 on entity 1
ERR Gadget::processEventControl: Unsupported control with length 10 -- SENDING BLANK RESPONSE
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 20 on entity 1
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 9 on entity 1
FTL Gadget::uvcToV4Lcontrol: Request to access unsupported control 9 on entity 1
INF Engine::setFormatInternal: OUT: MJPG 320x240 @ 20fps CAM: YUYV 320x240 @ 20fps MOD: TeamSPORK:GreenRetroDetect Python
INF Camera::setFormat: Camera set video format to 320x240 YUYV
INF Gadget::setFormat: USB Gadget set video format to 320x240 MJPG
INF Engine::setFormatInternal: Module [GreenRetroDetect] loaded, initialized, and ready.
INF Camera::streamOn: 5 buffers of 153600 bytes allocated
INF Gadget::streamOn: 4 buffers of 153600 bytes allocated