org.robokind.impl.motion.pololu
Class MaestroServo

java.lang.Object
  extended by org.robokind.api.common.property.PropertyChangeNotifier
      extended by org.robokind.api.motion.servos.AbstractServo<MaestroServo.Id,org.robokind.api.motion.servos.config.ServoConfig<MaestroServo.Id>,MaestroController>
          extended by org.robokind.impl.motion.pololu.MaestroServo
All Implemented Interfaces:
PropertyChangeListener, EventListener, org.robokind.api.common.property.PropertyChangeSource, org.robokind.api.motion.servos.Servo<MaestroServo.Id,org.robokind.api.motion.servos.config.ServoConfig<MaestroServo.Id>>

public class MaestroServo
extends org.robokind.api.motion.servos.AbstractServo<MaestroServo.Id,org.robokind.api.motion.servos.config.ServoConfig<MaestroServo.Id>,MaestroController>

Author:
Matthew Stevenson

Nested Class Summary
static class MaestroServo.Id
           
 
Field Summary
 
Fields inherited from class org.robokind.api.motion.servos.AbstractServo
myConfig, myController, myGoalPosition, myServoId
 
Fields inherited from interface org.robokind.api.motion.servos.Servo
PROP_ENABLED, PROP_GOAL_POSITION
 
Constructor Summary
protected MaestroServo(org.robokind.api.motion.servos.config.ServoConfig<MaestroServo.Id> params, MaestroController controller)
          Creates a new MaestroServo from the given ServoConfig and controller.
 
Method Summary
 org.robokind.api.common.position.NormalizedDouble getDefaultPosition()
           
 Boolean getEnabled()
           
 int getMaxPosition()
           
 int getMinPosition()
           
 String getName()
           
 MaestroServo.Id getPhysicalId()
           
 void setEnabled(Boolean enabled)
           
 
Methods inherited from class org.robokind.api.motion.servos.AbstractServo
getAbsoluteGoalPosition, getConfig, getController, getGoalPosition, getId, propertyChange, setGoalPosition
 
Methods inherited from class org.robokind.api.common.property.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

MaestroServo

protected MaestroServo(org.robokind.api.motion.servos.config.ServoConfig<MaestroServo.Id> params,
                       MaestroController controller)
Creates a new MaestroServo from the given ServoConfig and controller.

Parameters:
params - ServoConfig for the new Servo
controller - the Servo's controller
Method Detail

getPhysicalId

public MaestroServo.Id getPhysicalId()

setEnabled

public void setEnabled(Boolean enabled)

getEnabled

public Boolean getEnabled()

getName

public String getName()

getMinPosition

public int getMinPosition()

getMaxPosition

public int getMaxPosition()

getDefaultPosition

public org.robokind.api.common.position.NormalizedDouble getDefaultPosition()


Copyright © 2011. All Rights Reserved.