View Single Post
  #2   Spotlight this post!  
Unread 01-02-2007, 12:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Positioning the robot so the servos will be centered...

Quote:
Originally Posted by Bomberofdoom View Post
Does Kevin's Camera code handel the positioning of the robot so the sideways(pan?) servo is centered?
Kevin Watson's camera code controls only the camera. It does nothing to control drive motors, and in fact the part of the code that can control motors has been commented out. You will need to replace Default_Routine() with something specific to your robot.

If you want to turn the robot to face the target light, here's a hint. You can read the value of PAN_SERVO to tell which direction the camera is facing, and you can call the Get_Tracking_State() function to find out whether the camera is on target.