Package crackers.kobots.parts.movement
Class LimitedRotator
-
- All Implemented Interfaces:
-
crackers.kobots.parts.movement.Actuator
public abstract class LimitedRotator extends Rotator
A Rotator that is constrained to a physical angular range, in degrees. This is useful for servos that are not "continuous rotation" types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
LimitedRotator.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static Integer
MAX_ANGLE
public final static Integer
MIN_ANGLE
private final IntRange
physicalRange
private final Number
current
public final static LimitedRotator.Companion
Companion
-
Constructor Summary
Constructors Constructor Description LimitedRotator()
-
Method Summary
Modifier and Type Method Description abstract IntRange
getPhysicalRange()
final Boolean
rem(Integer percentage)
Operator to rotate to a percentage of the physical range. -
-
Method Detail
-
getPhysicalRange
abstract IntRange getPhysicalRange()
-
-
-
-