Class AnglePositionFeedforwardController

java.lang.Object
com.stuypulse.stuylib.control.angle.AngleController
com.stuypulse.stuylib.control.angle.feedforward.AnglePositionFeedforwardController

public class AnglePositionFeedforwardController extends AngleController
A positional feedforward controller for angular systems.
See Also:
  • Constructor Details

    • AnglePositionFeedforwardController

      public AnglePositionFeedforwardController(MotorFeedforward feedforward)
      Create an angle position feedforward controller
      Parameters:
      feedforward - model
  • Method Details

    • calculate

      protected double calculate(Angle setpoint, Angle measurement)
      Calculates a motor output by feeding the derivative of a positional setpoint to a feedforward model
      Specified by:
      calculate in class AngleController
      Parameters:
      setpoint - angular positional setpoint
      measurement - angular position measurement, which is not used by the feedforward model
      Returns:
      motor output from feedforward model