View Single Post
  #13   Spotlight this post!  
Unread 22-02-2006, 21:59
Denz's Avatar
Denz Denz is offline
Registered User
FRC #0772 (Sabre Bytes Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Location: LaSalle, Ont, Canada
Posts: 66
Denz is on a distinguished road
Send a message via MSN to Denz
Re: How'd you do it?

I don't even know what a PID loop is?

I had something like this:

if (p1_sw_trig == 1)
{
if ((((int)PAN_SERVO - 131)>= 1)||(((int)PAN_SERVO - 131)<=-1))
{
RIGHT_W = (127+(12*(((int)PAN_SERVO - 131))));
LEFT_W = (127-(12*(((int)PAN_SERVO - 131))));
}
else
{
RIGHT_W = 127;
LEFT_W = 127;
}


I'm thinking maybe 12 is the D value, however, when I decrease it too much, the robot wont turn when it gets to the point of being servo steps off.
__________________
www.sabrerobotics.com