Replies: 2 comments 1 reply
-
Just as an example, you can set them like this: myPID1.SetTunings(Kp_1, Ki,_1, Kd_1); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you! So this should work? QuickPID throttlePID(&throttleInput, &throttleOutput, &throttleSetpoint); throttlePID.SetTunings(Kp_1, Ki,_1, Kd_1); One more question - are these the only variables that require unique names? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to control X and Y motors with different PID settings.
I have named two different QuickPID functions with independent variables in my program:
QuickPID throttlePID(&throttleInput, &throttleOutput, &throttleSetpoint);
QuickPID turnPID(&turnInput, &turnOutput, &turnSetpoint);
But I don't see a way to have different Kp, Ki and Kd variables.
Beta Was this translation helpful? Give feedback.
All reactions