Removed blocking condition
This commit is contained in:
parent
0779554313
commit
871a01f4d4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user