Package crackers.kobots.parts.movement
Object LimitedRotator.Companion
-
- All Implemented Interfaces:
public class LimitedRotator.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static LimitedRotator.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final LimitedRotatorrotator(ServoDevice $self, IntRange physicalRange)Create a LimitedRotator with a 1:1 ratio. final LimitedRotatorrotator(ServoDevice $self, IntRange physicalRange, IntRange servoRange, Integer deltaDegrees)Create a LimitedRotator based on a ServoRotator -
-
Method Detail
-
rotator
final LimitedRotator rotator(ServoDevice $self, IntRange physicalRange)
Create a LimitedRotator with a 1:1 ratio. The range defaults to the servo's trim range.
-
rotator
final LimitedRotator rotator(ServoDevice $self, IntRange physicalRange, IntRange servoRange, Integer deltaDegrees)
Create a LimitedRotator based on a ServoRotator
-
-
-
-