Class PIDConsts
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.units.PIDConsts
Container for PID tuning constants. They cannot be changed after the object is created.
Accepted by
TunablePID
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
kP
public final double kPproportional -
kI
public final double kIintegral multiplier -
maxI
public final double maxImaximum integral value -
kD
public final double kDderivative multiplier
-
-
Constructor Details
-
PIDConsts
public PIDConsts(double kP, double kI, double maxI, double kD) -
PIDConsts
Takes a string previously created by the serialize() method. This is useful for reading PID constants from a file. Made with help from Stack Overflow.
-
-
Method Details
-
serialize
Puts constants in a string. This is useful for writing them to a file. Made with help from Oracle docs. -
withkP
-
withkI
-
withmaxI
-
withkD
-