Class ServoLinearActuator

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

    
    public class ServoLinearActuator
    extends LinearActuator
                        

    A linear actuator that uses a servo to extend and retract. Due to rounding errors and whatever gearing is applied, the "step" size is basically however far the servo moves the actuator in one degree of rotation.

    TODO add a delta to manage the rate of change

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Integer getCurrent()
      final ServoDevice getTheServo()
      final Float getHomeDegrees()
      final Float getMaximumDegrees()
      Boolean extendTo(Integer percentage) Extend or retract the actuator to the given percentage of the total range of motion.
      • Methods inherited from class crackers.kobots.parts.movement.LinearActuator

        move
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait