Revision 19a69797 components/MotorControl.cpp
components/MotorControl.cpp | ||
---|---|---|
542 | 542 |
|
543 | 543 |
|
544 | 544 |
void MotorControl::setMotorEnable(bool enable){ |
545 |
this->accumulatedErrorV = 0; |
|
546 |
this->accumulatedErrorW = 0; |
|
547 |
this->motorEnable = enable; |
|
545 |
if (this->motorEnable != enable){ |
|
546 |
this->accumulatedErrorV = 0; |
|
547 |
this->accumulatedErrorW = 0; |
|
548 |
this->motorEnable = enable; |
|
549 |
} |
|
550 |
|
|
548 | 551 |
} |
549 | 552 |
|
550 | 553 |
bool MotorControl::getMotorEnable(){ |
Also available in: Unified diff