How do I calibrate the velocity gains for a SparkMax with built-in PID? Right now when I change the P or I values, It fluctuates between the positive of the target velocity and the negative target velocity.
What motor are you using?
We are using a Neo
(post deleted by author)
I know what PID does but there is a problem with it whenever I change the corresponding values.
With a NEO 1.1 you need an external encoder to do meaningful velocity feedback.
How do I know what version the NEO is?
If it’s not a NEO vortex, you’ll need an external controller to do effective velocity control.
See: PSA: Default NEO/SparkMax velocity readings are still bad for flywheels
Based on your description, I’m assuming it does this: spins up to right speed, then starts going the opposite direction but still correct speed. Try setting the PID reference using the REV Hardware Client and see if it follows the same behavior. If it responds how it should however, I’d be willing to take a look at your robot code and seeing if something is being flipped.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.