49 Online
2 Member And 47 Guest
Members present at the site
Today Visits : 17221
Yesterday Visits : 26189
All Visits : 2762035

Welcome to Electronoobs Q&A, where you can ask questions and receive answers from other members of the community.



Categories


1 like 0 dislike
How does this work?

  //Calculate the I value range +-3

  if(-3 < PID_error <3)
  {
    PID_i = PID_i + (ki * PID_error);
  }
by (300 points)

1 Answer

0 like 0 dislike
I want the integrate value to act only when the error is very low and you want fine adjutments. Taht's why I put the I variable when the error is between 3 and -3
by (34.8k points)
...