Class ezControl

java.lang.Object
lib.custom.motioncontrollers.ezControl

public class ezControl extends Object
  • Field Details

    • pid

      public final edu.wpi.first.math.controller.PIDController pid
    • ff

      public final ezMotion.FeedForward ff
  • Constructor Details

    • ezControl

      public ezControl(double kP, double kI, double kD)
    • ezControl

      public ezControl(double kP, double kI, double kD, ezMotion.FeedForward ff)
    • ezControl

      public ezControl(edu.wpi.first.math.controller.PIDController pid)
    • ezControl

      public ezControl(edu.wpi.first.math.controller.PIDController pid, ezMotion.FeedForward ff)
  • Method Details

    • reset

      public void reset()
    • calculate

      public double calculate(double current, edu.wpi.first.math.trajectory.TrapezoidProfile.State setpoint)