Go to Post If that many teams could do it successfully every match this year I will eat my robot. - Jay O'Donnell [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-07-2011, 20:09
cjlane1138 cjlane1138 is offline
Team 1138
FRC #1138 (Eagle Engineering)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 88
cjlane1138 is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-07-2011, 20:52
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: PID help


Quote:
Originally Posted by cjlane1138 View Post
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?


Reply With Quote
  #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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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