Package org.chsrobotics.lib.controllers
Class PID.PIDConstants
- java.lang.Object
-
- org.chsrobotics.lib.controllers.PID.PIDConstants
-
- Enclosing class:
- PID
public static class PID.PIDConstants extends java.lang.ObjectData class for holding the gains to a PID controller.
-
-
Constructor Summary
Constructors Constructor Description PIDConstants(double kP, double kI, double kD)Constructs a PIDConstants out of provided gains.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)doublegetkD()Returns the derivative gain.doublegetkI()Returns the integral gain.doublegetkP()Returns the proportional gain.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
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
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-