diff --git a/ServoMotor.cpp b/ServoMotor.cpp index b19bda6..070b06a 100644 --- a/ServoMotor.cpp +++ b/ServoMotor.cpp @@ -16,9 +16,6 @@ void ServoMotor::SetTargetAngle(float angle) { if (maxVelocity == 0.0F || hasTargetAngle == false) { SetAngle(angle); this->limitedTargetAngle = angle; - } else if (angle != this->targetAngle) { - // if the new target is the same, the limited angle is not overwritten - // this->limitedTargetAngle = this->targetAngle; } this->controlMode = ControlMode::Position;