Package trclib.robotcore
Class TrcPidController.PidCoefficients
java.lang.Object
trclib.robotcore.TrcPidController.PidCoefficients
- Enclosing class:
- TrcPidController
This class encapsulates all the PID coefficients into a single object and makes it more efficient to pass them
around.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPidCoefficients
(double kP, double kI, double kD) Constructor: Create an instance of the object.PidCoefficients
(double kP, double kI, double kD, double kF) Constructor: Create an instance of the object.PidCoefficients
(double kP, double kI, double kD, double kF, double iZone) Constructor: Create an instance of the object. -
Method Summary
-
Field Details
-
kP
public double kP -
kI
public double kI -
kD
public double kD -
kF
public double kF -
iZone
public double iZone
-
-
Constructor Details
-
PidCoefficients
public PidCoefficients(double kP, double kI, double kD, double kF, double iZone) Constructor: Create an instance of the object.- Parameters:
kP
- specifies the Proportional constant.kI
- specifies the Integral constant.kD
- specifies the Differential constant.kF
- specifies the Feed forward constant.iZone
- specifies the integral zone.
-
PidCoefficients
public PidCoefficients(double kP, double kI, double kD, double kF) Constructor: Create an instance of the object.- Parameters:
kP
- specifies the Proportional constant.kI
- specifies the Integral constant.kD
- specifies the Differential constant.kF
- specifies the Feed forward constant.
-
PidCoefficients
public PidCoefficients(double kP, double kI, double kD) Constructor: Create an instance of the object.- Parameters:
kP
- specifies the Proportional constant.kI
- specifies the Integral constant.kD
- specifies the Differential constant.
-
-
Method Details