View Single Post
  #6   Spotlight this post!  
Unread Today, 12:20
Classified*'s Avatar
Classified* Classified* is offline
Just grab a hacksaw and go.
AKA: Julia Cecchetti
FRC #0291 (CIA: Creativity in Action)
Team Role: Leadership
 
Join Date: Nov 2015
Rookie Year: 2015
Location: Erie PA
Posts: 63
Classified* will become famous soon enough
Re: Microsoft Cam Exposure Reseting To Automatic on Robot Reboot?

So,

Problem:

I tracked the errors, and the problem was indeed that the camera was not initializing before the code tried to apply settings to it.

Solution:


I solved this by setting the exposure inside of the while loop. This also allowed me to set the camera to have a low exposure for autonomous, and automatic exposure for teleop so the drivers can use it to see. Here is a screenshot for when auto is enabled (or disabled), and here is another for when teleop is enabled.

I hope this helps anyone with this problem in the future!
__________________
Team291.com
Work smarter, not harder.

Last edited by Classified* : Today at 12:27.
Reply With Quote