Go to Post Hyper, I want to marry your robot. - Keys [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

 
 
 
Thread Tools Rating: Thread Rating: 14 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 03-17-2015, 10:35 PM
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 357
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: PID Control Loop Assistance

You have to leave the PID enabled. You need to tune it by adjusting the three gains so that it settles into place. In the past, we have used three analog inputs (scaled of course) to adjust the gains. We cranked the knobs until it worked as well as it could, and then read the values and put them into code. Looks like you have 0 for Kp, definitely need Kp. Ki is probably too large. You can set Kd to 0 to start.

The proportional gain should get it close. If its too high, then it will oscillate around the set point. Once its close, the integral gain kicks in and will slowly increase the power to the motor to counteract gravity and hold it in place.

A word of caution - Cim motors holding like that will get hot. You cant do that forever. Depending on the mechanics of your system, you might get away with it for a match and then it will have to cool down.

The best solution is to have enough gearing (work drive, etc), so that the lifter will stay in place with the motor off.
__________________
Brian K
Team 1225 Robotics Mentor
Reply With Quote
 


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 10:45 AM.

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