How to you set the output range for the new PIDController for WPILib 2020?
I think you want the pid.enableContinuousInput() method for restricting the the input range. To restrict the output range using the new PID controller (there’s a new and the old) you’re suppose to use MathUtil.clamp() see the following link for details.
I think this is the correct link to the API docs:
https://first.wpi.edu/FRC/roborio/release/docs/java/edu/wpi/first/wpilibj/controller/PIDController.html#enableContinuousInput(double,double)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.