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
Create a dual-sided deadband around the desired setpoint to prevent noisy feedback from producing control jitters
This is disabled by setting deadband to zero, something like:
if (Math.Abs(error) <= DEADBAND)
{
error = 0;
if (target == 0)
output = 0;
}
else
output = ((Kp * error) + (Ki * integral))/Ko;
Other solutions are that you could filter the noise out of your sensor, tune your parameters to be less sensitive to noise, or you could even apply this procedure in user space before your compute step:
Create a dual-sided deadband around the desired setpoint to prevent noisy feedback from producing control jitters
This is disabled by setting deadband to zero, something like:
could be inserted somewhere here
The text was updated successfully, but these errors were encountered: