View Single Post
  #6   Spotlight this post!  
Unread 15-01-2006, 14:27
Damian Manda's Avatar
Damian Manda Damian Manda is offline
The Damian
no team
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Fort Collins, CO
Posts: 154
Damian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud ofDamian Manda has much to be proud of
Send a message via AIM to Damian Manda
Re: FRC Camera code in YCrCb Mode?

I think we were having this same problem, as we could not get the camera to track when connected to the robot with either the default values or those found in LabVIEW (it tracked fine when driving the servos itself, but I only tried RGB mode). I'll have to wait until tomorrow to test it, though.

Are the calibrations still in R,G,B maximum and minimum values, as this is the only option that I can find in the camera configuration? If so, do I just calibrate the RGB values through LabVIEW (in YCrCb mode) and then enter them into camera.h here:
Code:
#define R_MIN_DEFAULT	85	// Rmin for call to Track_Color()
#define R_MAX_DEFAULT	115	// Rmax for call to Track_Color()
#define G_MIN_DEFAULT	15	// Gmin for call to Track_Color()
#define G_MAX_DEFAULT	17	// Gmax for call to Track_Color()
#define B_MIN_DEFAULT	100 // Bmin for call to Track_Color()
#define B_MAX_DEFAULT	145 // Bmax for call to Track_Color()
i.e, Am I supposed to still calibrate as RGB values in YCrCb mode? The workbook seems to indicate this, but it does not give instructions for entering the calibration into anything other than easyC.
__________________
FRC Volunteer, FLL regional planning committee member for Colorado
Former Programmer, Web Designer, Communications Director of Alpine Robotics Team 159.
Add your team to the FIRST Teams Google Map