Has anyone been able to get the camera to track and follow (or get close to) one of the vision tetras?
I had an idea about having the drive motors try and turn so that the pan servo on the camera returns to zero, but that doesn't seem to be working.
I have something like this
Code:
if (cam.pan_servo < 127) // Camera is turned left
{
pwm01 = 70; // Left Drive Motor
pwm-2 = 200; // Right Drive Motor Forward
}
else
the code continues saying that if it is facing the other way, turn right.
Any ideas?