This commit is contained in:
Pascal Serrarens 2024-07-02 11:33:53 +02:00
parent 4223961fe7
commit 543ddf79b4

View File

@ -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;