auto-sync
This commit is contained in:
parent
2a217b35dc
commit
c848d2c8d2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue