View Single Post
  #6   Spotlight this post!  
Unread 18-02-2006, 20:02
phrontist's Avatar
phrontist phrontist is offline
Proto-Engineer
AKA: Bjorn Westergard
FRC #1418 (Vae Victus)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Falls Church, VA
Posts: 828
phrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond repute
Send a message via AIM to phrontist
Re: How Can I aim at the Vision Target Faster but without overshooting?

Quote:
Originally Posted by Mike
My two cents about PID loops.

Today I tried implementing a PI loop. I've never done one before and was relying on non-proven code. I spent about three hours and called it quits. My new code that works great:

Code:
PAN_MOTOR	=	NEUTRAL + (pan_error / 5) + 11;
Adjust 5 and 11 to your needs.

Quote from my mentor: "Keep things as complex as necessary, and not a bit more."
For future refrence, for an application like a turret one would typically start with just P, and D to damp, and if it's too sluggish after damping (or you have steady state error) and I. In that order.
__________________

University of Kentucky - Radio Free Lexington

"I would rather have a really big success or a really spectacular crash and failure then live out the warm eventual death of mediocrity" - Dean Kamen