View Single Post
  #1   Spotlight this post!  
Unread 04-02-2017, 17:58
arushshah1 arushshah1 is offline
Registered User
FRC #6203
 
Join Date: Mar 2016
Location: Hackensack, NJ
Posts: 15
arushshah1 is an unknown quantity at this point
PID Loop Constants

I was browsing through the WPILib guide on PID Subsystems and I came upon this sample code:

public class Wrist extends PIDSubsystem { // This system extends PIDSubsystem

Victor motor = RobotMap.wristMotor;
AnalogInput pot = RobotMap.wristPot();

public Wrist() {
super("Wrist", 2.0, 0.0, 0.0);// The constructor passes a name for the subsystem and the P, I and D constants that are used when computing the motor output
setAbsoluteTolerance(0.05);
getPIDController().setContinuous(false);
}

I'm not sure why the code is setting the I and D constants to 0. Is it to only make it a P loop? Are there any benefits of using only P over PID?
Reply With Quote