auto-sync

This commit is contained in:
rusEfi 2015-03-02 20:09:24 -06:00
parent 2a217b35dc
commit c848d2c8d2
1 changed files with 6 additions and 6 deletions

View File

@ -42,14 +42,14 @@ float Pid::getValue(float target, float input, float dTime) {
}
void Pid::updateFactors(float pFactor, float iFactor, float dFactor) {
this->pFactor = pFactor;
this->iFactor = iFactor;
this->dFactor = dFactor;
reset();
this->pFactor = pFactor;
this->iFactor = iFactor;
this->dFactor = dFactor;
reset();
}
void Pid::reset(void) {
integration = 0;
prevError = 0;
integration = 0;
prevError = 0;
}