View Single Post
  #3   Spotlight this post!  
Unread 17-04-2016, 12:02
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: PID Loop Controller with a Servo

Building off billbo911 post:

I was thinking about it and I have a theory. Grip reports back the distance to the center of the target; x and y. Let's say the distance x was 50. If you did some testing to figure out how much the x error changes for each degree of rotation the servo makes then you could make a ratio. So basically you convert the error into degrees of change and then add it or subtract it to the current angle.

The only problem would be the ratio would change based on the distance from the target. That throws some difficulty in the theory.

Last edited by tomy : 17-04-2016 at 12:05.
Reply With Quote