View Single Post
  #3   Spotlight this post!  
Unread Yesterday, 13:10
wt200999's Avatar
wt200999 wt200999 is online now
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 327
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Microsoft Cam Exposure Reseting To Automatic on Robot Reboot?

Quote:
Originally Posted by Classified* View Post
As soon as I restart robot code from the drivers station, however, the camera settings return to what I set them to in my code, but the target is extremely dim. Picture. When I redeploy the code, though, keeping the robot on, the target becomes very bright (how I want it to be). Picture. Both of these shots were taken with THE SAME CODE WITH THE SAME SETTINGS. The only difference was that the first was taken after turning the robot on and restarting robot code, while the second was taken after the robot had been on and new code had just been deployed.
To me the 1st image you showed seems like it would be easier to process, as I see much less green reflections and the green color is more consistent, it looks like it would be much kinder to the threshold step. Is there any particular reason you prefer the 2nd one?

For the camera it looks like the vision settings are only applied once when the vision start. The only difference between the two you describe above is whether or not the robot has been running for some time. Maybe the camera isn't 'ready' to start receiving commands when you first turn the robot on? I would start there, maybe you can monitor the error wire or send the error wire back to the dashboard to see if that has any hints. Maybe you need a delay before running the settings, or check if the camera is available first?
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote