We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3c5f38 commit 12b3b5cCopy full SHA for 12b3b5c
src/main/java/org/darbots/corebotlib/hardware/ServoUsingMotor.java
@@ -85,9 +85,9 @@ public double encoderTicksToTargetPosition(long ticks){
85
return (ticks - encoderTickAtZeroPos) / motor.getEncoderType().getTicksPerRev();
86
}
87
88
-
89
@Override
90
public void setTargetPosition(double targetPosition) {
+ targetPosition = Range.clip(targetPosition,this.minimumPosition,this.maximumPosition);
91
this.motor.setTargetPositionTick(this.targetPositionToTicks(targetPosition));
92
this.targetPosition = targetPosition;
93
this.lastIsBusy = true;
0 commit comments