|
||||||||||
| 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. |
NormalizedDouble |
getDefaultPosition()
Returns the Servo default position. |
Boolean |
getEnabled()
If enabled, this Servo will accept move commands. |
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. |
void |
setEnabled(Boolean enabled)
Sets the enabled value for this Servo |
void |
setGoalPosition(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()
NormalizedDouble getGoalPosition()
void setGoalPosition(NormalizedDouble pos)
pos - the goal positionConf getConfig()
ServoController getController()
Boolean getEnabled()
void setEnabled(Boolean enabled)
enabled - enabled valueString getName()
int getMinPosition()
int getMaxPosition()
NormalizedDouble getDefaultPosition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||