Closed alexiscruzdavid closed 1 year ago
You can change the gain variables directly in your sketch whenever/wherever you'd like - the same ones you pass to the begin()
function
Is it preferred to use the setCoefficients() function for dynamically setting PID? the PID gains in begin() are not passed by reference, unlike the input, output, and setpoint.
From the example
myController.begin(&input, &output, &setpoint, p, i, d);
Looking to edit the P, I, and D coefficients dynamically.