View Full Version : Positioning the robot so the servos will be centered...
Bomberofdoom
01-02-2007, 10:05
Does Kevin's Camera code handel the positioning of the robot so the sideways(pan?) servo is centered?
Alan Anderson
01-02-2007, 12:21
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.
Bomberofdoom
02-02-2007, 03:30
That's what I thought, thanks allot! :D
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.