You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My team is looking to use the new SparkMaxConfig APIs for setting up PID controllers this year, but there doesn't seem to be a way to set a tolerance on the PID unless you use the maxmotion config. We're having an issue with our swerve modules "clicking" as they oscillate tiny amounts around the setpoint, I think due to backlash in the module gears. Setting a tolerance of 1-2 degrees on the Spark Max's closed loop controller would be an easy fix, but there doesn't seem to be a way to do this.
From what I understand, SparkMaxConfig.closedLoop.maxMotion.allowedClosedLoopError will do what I want, but that requires using maxmotion's trapezoidal PID controller, which we don't want to do.
This is our motor config, which is copied from Advantagekit's spark swerve example:
Is there a way to set a tolerance on the closedLoop position controller? Or alternatively, is there a way to use maxmotion just as a normal PID without providing velocity and acceleration constraints?
The text was updated successfully, but these errors were encountered:
My team is looking to use the new SparkMaxConfig APIs for setting up PID controllers this year, but there doesn't seem to be a way to set a tolerance on the PID unless you use the maxmotion config. We're having an issue with our swerve modules "clicking" as they oscillate tiny amounts around the setpoint, I think due to backlash in the module gears. Setting a tolerance of 1-2 degrees on the Spark Max's closed loop controller would be an easy fix, but there doesn't seem to be a way to do this.
From what I understand,
SparkMaxConfig.closedLoop.maxMotion.allowedClosedLoopError
will do what I want, but that requires using maxmotion's trapezoidal PID controller, which we don't want to do.This is our motor config, which is copied from Advantagekit's spark swerve example:
Is there a way to set a tolerance on the closedLoop position controller? Or alternatively, is there a way to use maxmotion just as a normal PID without providing velocity and acceleration constraints?
The text was updated successfully, but these errors were encountered: