View Single Post
  #4   Spotlight this post!  
Unread 14-08-2006, 18:46
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Two variable PID? I know someone's done it =)...

Quote:
Originally Posted by SlimBoJones
My team hasn't done it, but I'm SURE someone out there has:

A PID loop that controls BOTH velocity and position. Basically it allows you to say "I want to move 33 feet forward, and do it at 6 fps."

The PID loop manages both the acceleration to the target speed, keeps track of the distance travelled, and decelerates and corrects as you approach your target distance.

Surprisingly, I did a search on CD, and didn't come up with much, although I probably missed something .

Overviews, explanations, even code snippets would be much appreciated!

-Shawn T. Lim

If you really want to control multiple parameters simultaneously, the best solution is to use a state space control algorithm. I would recommend doing a web search on "state space control" or "full state feedback".

A good example of trying to control position and velocity with state space methods is shown here (from my alma mater, nonetheless).
__________________
-
An ounce of perception is worth a pound of obscure.

Last edited by Chris Hibner : 14-08-2006 at 18:54.