Class PIDConstants

java.lang.Object
org.wildstang.framework.pid.PIDConstants

public class PIDConstants extends 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 Details

    • f

      public final double f
    • p

      public final double p
    • i

      public final double i
    • d

      public final double d
  • Constructor Details

    • 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.