I’m programming my PID and I try to use different PID parameters for different actions, such as turning 30 degrees and turning 45 degrees.
But when the actions became more and more, I found it is great hard!
Should I use different PID parameters for different actions?
You may need to tune it better and, perhaps, add a constant power offset.
You should have different parameters for different movements (drive vs turn vs park), but for the same type of action (drive 12 in and drive 24 in) should have the same parameters. You should only need to tune your PID 3 or 4 times total.
4 Likes
You probably just need to tune your PID, so what I’ve seen work to make it as easy on you as possible is first zero out every constant except kP, then increase your kP until you get a bit of oscillation and then from there increase your kD a little bit until it smooths out and if you find it necessary you can experiment with kI