Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   PID help (http://www.chiefdelphi.com/forums/showthread.php?t=96339)

cjlane1138 20-07-2011 20:09

PID help
 
Hey guys,
All im trying to do is make a simple PID that will control some lift motors. Its so that the lift can go to certain presets. I have encoders on the lift, and ive tried everything that i could to get this working. any help? maybe even an example? thanks.

Ether 20-07-2011 20:52

Re: PID help
 

Quote:

Originally Posted by cjlane1138 (Post 1069850)
Hey guys,
All im trying to do is make a simple PID that will control some lift motors. Its so that the lift can go to certain presets. I have encoders on the lift, and ive tried everything that i could to get this working. any help? maybe even an example? thanks.

Have you tried using the WPI library provided PIDcontroller class?



mikets 21-07-2011 05:55

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


All times are GMT -5. The time now is 17:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi