Class PIDConstants


  • public class PIDConstants
    extends java.lang.Object
    Represents the 4 PID constants: F, P, I, and D. Feed-forward-proportional-integral-derivative controller https://en.wikipedia.org/wiki/PID_controller#Feed-forward
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double d  
      double f  
      double i  
      double p  
    • Constructor Summary

      Constructors 
      Constructor Description
      PIDConstants​(double f, double p, double i, double d)
      Create a new PID constant set.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • f

        public final double f
      • p

        public final double p
      • i

        public final double i
      • d

        public final double d
    • Constructor Detail

      • PIDConstants

        public PIDConstants​(double f,
                            double p,
                            double i,
                            double d)
        Create a new PID constant set.
        Parameters:
        f - Feed-forward - Major proportion of the output.
        p - Proportional - Proportional to the current value of the error.
        i - Integral - Accounts for past values of the error.
        d - Derivative - Best estimate of the future trend of the error.