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 classLimitedRotator.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerMAX_ANGLEpublic final static IntegerMIN_ANGLEprivate final IntRangephysicalRangeprivate final Numbercurrentpublic final static LimitedRotator.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description LimitedRotator()
-
Method Summary
Modifier and Type Method Description abstract IntRangegetPhysicalRange()final Booleanrem(Integer percentage)Operator to rotate to a percentage of the physical range. -
-
Method Detail
-
getPhysicalRange
abstract IntRange getPhysicalRange()
-
-
-
-