View Single Post
  #1   Spotlight this post!  
Unread 25-01-2005, 16:17
VideoMan053's Avatar
VideoMan053 VideoMan053 is offline
Computer Freak
AKA: Dan J.
FRC #0063 (Red Barons)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Erie, Pennsylvania
Posts: 18
VideoMan053 is an unknown quantity at this point
Send a message via AIM to VideoMan053
Camera Tracking Woes

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?
__________________
GET OVER IT! ~ not the most useful words in competitions, but some of the most useful in life!
My Jobs: Programming