change of PID period to reset PID

This commit is contained in:
rusEfi 2017-06-04 13:21:07 -04:00
parent 2f9623555c
commit 3b6ce7565c
1 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,11 @@ void Pid::init(pid_s *pid) {
} }
bool Pid::isSame(pid_s *pid) { bool Pid::isSame(pid_s *pid) {
return this->pid->dFactor == pid->dFactor && this->pid->iFactor == pid->iFactor && return this->pid->pFactor == pid->pFactor
this->pid->offset == pid->offset && this->pid->pFactor == pid->pFactor; && this->pid->iFactor == pid->iFactor
&& this->pid->dFactor == pid->dFactor
&& this->pid->offset == pid->offset
&& this->pid->period == pid->period;
} }
float Pid::getValue(float target, float input) { float Pid::getValue(float target, float input) {