org.robokind.impl.motion.pololu
Class MaestroServo
java.lang.Object
org.robokind.api.common.property.PropertyChangeNotifier
org.robokind.api.motion.servos.AbstractServo<MaestroServo.Id,org.robokind.api.motion.servos.config.ServoConfig<MaestroServo.Id>,MaestroController>
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
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 |
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 |
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 Servocontroller
- the Servo's controller
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.