added integral term reset functionality

This commit is contained in:
Ubuntu
2016-06-14 08:40:31 +00:00
parent fb095d8cfc
commit 31b8bc0777
3 changed files with 12 additions and 0 deletions

View File

@ -98,6 +98,13 @@ void PID::SetTunings(double Kp, double Ki, double Kd)
kd = (0 - kd);
}
}
/* ResetI() *******************************************************************
* Resets the build up integral term of the PID
******************************************************************************/
void PID::ResetI() {
ITerm = 0;
}
/* SetSampleTime(...) *********************************************************
* sets the period, in Milliseconds, at which the calculation is performed