View Single Post
  #2   Spotlight this post!  
Unread 02-03-2010, 08:33
AmoryG AmoryG is offline
Registered User
FRC #2423 (KwarQs)
Team Role: Alumni
 
Join Date: Mar 2008
Rookie Year: 2008
Location: Watertown, MA
Posts: 221
AmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud of
Re: Team 39: Target AND Field Oriented Drive (Target tracking)

I haven't done much experimenting with the AxisCamera class, but I found something that might be useful:

Code:
/**
327	 * @param Valid values are 0, 50, 100.
328	 * 0 = Prioritize image quality
329	 * 50 = None
330	 * 100 = Prioritize frame rate
331	 */
332	void AxisCamera::writeExposurePriority(int exposurePriority) {
333	    char param[50];
334	    char* baseString = "Source.I0.Sensor.exposurePriority=%i";
335	    sprintf(param, baseString, exposurePriority);
336	    updateCamParam(param);
337	}
I'm not sure what the default is, but I bet giving it a value of 100 might increase your FPS.

I'm not really sure the frame rate needs to be much higher, though. Our robot turns very quickly (probably can rotate more than 360 degrees/s). Even while turning at full speed, our camera was good enough to track the target using a hacked up version of the vision sample code. For us, a full rotation a second is not reasonable. If our team were to improve our vision/tracking code, we would not look to improve frame rate, but the quality of our image.
__________________
KwarQs 2423

2008 Boston Regional Rookie Allstars

http://whsrobot.blogspot.com/

Last edited by AmoryG : 02-03-2010 at 08:47.