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.

    • Constructor Summary

      Constructors 
      Constructor Description
      LimitedRotator()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class crackers.kobots.parts.movement.Actuator

        getCurrent
      • Methods inherited from class crackers.kobots.parts.movement.Rotator

        move, rotateTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LimitedRotator

        LimitedRotator()
    • Method Detail

      • rem

         final Boolean rem(Integer percentage)

        Operator to rotate to a percentage of the physical range. For example, if the physical range is 0..180, then rotator % 50 would rotate to 90 degrees.