|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Id
- Id Type used by the ServoConf
- ServoConfig type for this Servopublic interface Servo<Id,Conf extends ServoConfig>
A Servo provides control of a physical servo belonging to a servo control board.
Field Summary | |
---|---|
static String |
PROP_ENABLED
Property string for Enabled. |
static String |
PROP_GOAL_POSITION
Property string for GoalPostion. |
Method Summary | |
---|---|
Conf |
getConfig()
Returns the Servo's configuration values. |
ServoController |
getController()
Returns the Servo's parent ServoController. |
org.robokind.api.common.position.NormalizedDouble |
getDefaultPosition()
Returns the Servo default position. |
Boolean |
getEnabled()
If enabled, this Servo will accept move commands. |
org.robokind.api.common.position.NormalizedDouble |
getGoalPosition()
Returns the goal position. |
Id |
getId()
Returns the Servo's id. |
int |
getMaxPosition()
Returns the Servo maximum position. |
int |
getMinPosition()
Returns the Servo minimum position. |
String |
getName()
Returns the Servo name. |
org.robokind.api.common.position.NormalizableRange<Double> |
getPositionRange()
Returns the NormalizableRange describing the range of motion. |
void |
setEnabled(Boolean enabled)
Sets the enabled value for this Servo |
void |
setGoalPosition(org.robokind.api.common.position.NormalizedDouble pos)
Sets the goal position. |
Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource |
---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Field Detail |
---|
static final String PROP_GOAL_POSITION
static final String PROP_ENABLED
Method Detail |
---|
Id getId()
org.robokind.api.common.position.NormalizedDouble getGoalPosition()
void setGoalPosition(org.robokind.api.common.position.NormalizedDouble pos)
pos
- the goal positionConf getConfig()
ServoController getController()
Boolean getEnabled()
void setEnabled(Boolean enabled)
enabled
- enabled valueString getName()
int getMinPosition()
int getMaxPosition()
org.robokind.api.common.position.NormalizedDouble getDefaultPosition()
org.robokind.api.common.position.NormalizableRange<Double> getPositionRange()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |