Go to Post (Don't ask why a retired FIRSTer is on CD, it's a twelve step process kind of thing) - Matt Krass [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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 06-01-2014, 12:15
graham.robots graham.robots is offline
Registered User
FRC #4024
 
Join Date: Feb 2013
Location: Florida
Posts: 5
graham.robots is an unknown quantity at this point
Tuning PID using kSpeed Control

Hello,
Our team just recently got a working CANJaguar setup going. We are now trying to tune the PID loop to work with an encoder and speed control for the jaguar. We aren't really sure how to tune the PID loop to get a stable loop going.
Here is our initialization code:
try
{
jag1 = new CANJaguar(1, CANJaguar.ControlMode.kSpeed);
jag1.setPID(0,4,0); //What goes here?
jag1.configEncoderCodePerRev(250);
jag1.setSpeedReference(CANJaguar.SpeedReference.kE ncoder);
jag1.enableControl();
}catch(Exception e){e.printStackTrace();}

Later on, we actually run the jag:
jag1.setX(60);

When we print the speed using the getSpeed() method, we get values all over the place. How can we tune it to stabilize at the set point?
Thanks,
Team 4024
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:49.

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