Thread: PID help
View Single Post
  #3   Spotlight this post!  
Unread 21-07-2011, 05:55
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: PID help

We have developed a PID control library. One module allows you to do PID control on a motor with encoder. The most useful function is:
Code:
void SetHeight(float height, Event *setHeightEvent = NULL);
We used it in the Logomotion game where it controls our ladder to raised to a certain height. For example:
Code:
SetHeight(96.0);    //raise the ladder to 8 ft high
You can access our code at:
http://proj.titanrobotics.net/hg/Frc...fd8/PostSeason

The ladder code is in Logomotion/Ladder.h. The PID control motor library module is in trclib/TrcPIDMotor.h
__________________

Last edited by mikets : 21-07-2011 at 06:20.
Reply With Quote