Removed blocking condition

This commit is contained in:
Pascal Serrarens 2024-09-02 15:50:03 +02:00
parent 0779554313
commit 871a01f4d4

View File

@ -13,7 +13,7 @@ ServoMotor::ServoMotor()
void ServoMotor::SetTargetAngle(Angle16 angle) {
angle = Float::Clamp(angle.ToFloat(), minAngle.ToFloat(), maxAngle.ToFloat());
if (maxVelocity == 0.0F || hasTargetAngle == false) {
if (maxVelocity == 0.0F) {
SetAngle(angle);
this->limitedTargetAngle = angle;
}