Class PID.PIDConstants
java.lang.Object
org.chsrobotics.lib.controllers.feedback.PID.PIDConstants
- Enclosing class:
- PID
Data class for holding the gains to a PID controller.
-
Constructor Summary
ConstructorsConstructorDescriptionPIDConstants
(double kP, double kI, double kD) Constructs a PIDConstants out of provided gains. -
Method Summary
-
Constructor Details
-
PIDConstants
public PIDConstants(double kP, double kI, double kD) Constructs a PIDConstants out of provided gains.- Parameters:
kP
- The proportional gain.kI
- The integral gain.kD
- The derivative gain.
-
-
Method Details
-
getkP
public double getkP()Returns the proportional gain.- Returns:
- The kP of the constants.
-
getkI
public double getkI()Returns the integral gain.- Returns:
- The kI of the constants.
-
getkD
public double getkD()Returns the derivative gain.- Returns:
- The kD of the constants.
-
equals
-
hashCode
public int hashCode() -
toString
-