Class AnglePositionFeedforwardController
java.lang.Object
com.stuypulse.stuylib.control.angle.AngleController
com.stuypulse.stuylib.control.angle.feedforward.AnglePositionFeedforwardController
A positional feedforward controller for angular systems.
- See Also:
-
Constructor Summary
ConstructorDescriptionAnglePositionFeedforwardController
(MotorFeedforward feedforward) Create an angle position feedforward controller -
Method Summary
Methods inherited from class com.stuypulse.stuylib.control.angle.AngleController
add, getError, getMeasurement, getOutput, getSetpoint, isDoneDegrees, isDoneRadians, setMeasurementFilter, setOutputFilter, setSetpointFilter, update
-
Constructor Details
-
AnglePositionFeedforwardController
Create an angle position feedforward controller- Parameters:
feedforward
- model
-
-
Method Details
-
calculate
Calculates a motor output by feeding the derivative of a positional setpoint to a feedforward model- Specified by:
calculate
in classAngleController
- Parameters:
setpoint
- angular positional setpointmeasurement
- angular position measurement, which is not used by the feedforward model- Returns:
- motor output from feedforward model
-