Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Positioning the robot so the servos will be centered... (http://www.chiefdelphi.com/forums/showthread.php?t=53197)

Bomberofdoom 01-02-2007 10:05

Positioning the robot so the servos will be centered...
 
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

Re: Positioning the robot so the servos will be centered...
 
Quote:

Originally Posted by Bomberofdoom (Post 569435)
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

Re: Positioning the robot so the servos will be centered...
 
That's what I thought, thanks allot! :D


All times are GMT -5. The time now is 04:12.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi