Domo arigato Mrs. Roboto
Home
Go Back   Chief Delphi > Technical > Programming
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 Today, 04:50
bmfrc bmfrc is offline
Registered User
FRC #5554
 
Join Date: Feb 2017
Location: Israel
Posts: 11
bmfrc is an unknown quantity at this point
Re: PIDController - control speed vs distance - SetSetpoint

Quote:
Originally Posted by gerthworm View Post
Yah, as you probably are finding out, there are two independent ways to do PID in Java...
Quote:
Originally Posted by AriMindell View Post
On 1389, we reimplemented PIDController to fit our code design, so I don't have any direct experience with the WPILib...
Thank you guys, while reading the docs and implementing the code your answers really helping and we already implemented the pid controllers. It seems to work fine.

What is the best practice in enabling and disabling the pid controller.
Lets say i want to autonomously drive the robot to point X - SetSetpoint(distance_from_X).
When the robot reach the target and stops, should i disable the controller?
If so, what is the best way to trigger this event?

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread Today, 08:18
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 86
gerthworm has a spectacular aura aboutgerthworm has a spectacular aura about
Re: PIDController - control speed vs distance - SetSetpoint

I've seen both done:

-Leaving the controller on will help keep you in the same position. This is often simpler too.
-Turning off the controller (and setting the drivetrain to zero) will assume the robot will stay in the same spot, and yield drivetrain power & computing resources for other tasks to use.

Regardless, the trigger condition I like to use for saying "We are now done using this controller" is:
--Error Magnititude is less than some threshold (say, 3 inches?) and stays that way for a certain time period (say, 0.25 seconds?)
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 15:30.

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