View Single Post
  #3   Spotlight this post!  
Unread 23-02-2016, 20:56
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
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: HD-3000 camera has wasted many hours

We've eliminated these issues by always writing the camera settings to the camera when the code starts.

We do this with a csv file that has a list of all the attributes that we care about stored on the roboRIO. When the code loads we loop through each setting and set the camera accordingly.

The list of attributes and the list for the csv I have saved in a google doc here. Each tab has some different info, the 'optimal settings' I listed is for the vision tracking and not good for viewing. The 'Values for CSV' tab is a copy of the actual csv file that we send to the robot.

I've attached the LabVIEW code we used, I do not know the equivalent IMAQ function, but it may give you an idea.

Click image for larger version

Name:	WPILib Camera Set Attributes From File.png
Views:	62
Size:	38.0 KB
ID:	20173
Attached Files
File Type: vi WPILib Camera Set Attributes From File.vi (21.8 KB, 10 views)
__________________
Programming in LabVIEW? Try VI Snippets!

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