This commit is contained in:
Narek Galstyan
2017-02-15 15:03:32 +00:00
committed by GitHub
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