Create feedforward controllers
mainFeedforward controllers provide output based on the target or error without waiting for a feedback loop.
Available types:
staticFeedforward(double kS): Constant output in the direction of the error:kS * signum(error).staticTargetFeedforward(double kS): Constant output in the direction of the target:kS * signum(target).proportionalFeedforward(double kV): Output proportional to the target:kV * target.
All these methods accept either a double or a Supplier<Double> for the gain/constant.
Controller ff = Controller.staticFeedforward(0.5);
Controller targetFf = Controller.proportionalFeedforward(0.2);