I am wondering, in camera.h it has the following set:
#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()
Are the lower values what we are looking for? Or are we looking for stuff that is not green?
As far as I remember from RGB, 0,255,0 is looking for green, while 255,0,255 is looking for a mix of red and blue, which would be magenta.
I am using the slimlined, sleek version of Kevin Watson’s code, just to simplify things for now.
You need to find out your own values for the light because it is not pure green so 0,255,0 will not find or track the color. Use the GUI to find the mean of the colors where the light is when seen.
With regards to my experience with the code, the camera tracks out of the box, the only thing that you need to worry about is hooking up the servos to the correct pwms, and if you’re not using pwm01 and pwm02, then remember to change the definitions in tracking.h.