Class Rotator

  • All Implemented Interfaces:
    crackers.kobots.parts.movement.Actuator

    
    public abstract class Rotator
     implements Actuator<RotationMovement>
                        

    Thing that turns. The basic notion is to allow for a "servo" or a "stepper" motor to be used incrementally or absolutely, somewhat interchangeably. Rotation is roughly based on angular motor movement, not necessarily corresponding to real world coordinates.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Number current
    • Constructor Summary

      Constructors 
      Constructor Description
      Rotator()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean move(RotationMovement movement) Rotate towards the target and return true when completed
      abstract Boolean rotateTo(Integer angle) Take a "step" towards this destination.
      • Methods inherited from class crackers.kobots.parts.movement.Actuator

        getCurrent
      • Methods inherited from class java.lang.Object

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

      • Rotator

        Rotator()