View Single Post
  #2   Spotlight this post!  
Unread 09-04-2006, 08:04
JJG13's Avatar
JJG13 JJG13 is offline
Yoda
AKA: Joshua Graffman
None #0180 (SPAM)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Martin County, Florida
Posts: 105
JJG13 has a spectacular aura aboutJJG13 has a spectacular aura aboutJJG13 has a spectacular aura about
Re: Camera without servos

First you need to find how far the camera is off from target using the same method you would when using the camera servos.

Relevent code:
Code:
pan_error = (int)T_Packet_Data.mx - PAN_TARGET_PIXEL_DEFAULT;
if the pan_error is less than zero you have to drive the robot\turret one way and if it is greater than zero, you have to drive the robot\turret the other way.
__________________
Behold the power of SPAM.