|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IServo
Reflect status of and allow control of an industry standard servo. what is a servo?
| Method Summary | |
|---|---|
IServoController |
getController()
Return the servo controller for this servo. |
int |
getValue()
return the current value of the pulse width |
void |
setBounds(int low,
int high)
specify the bounds that this servo can operate in |
void |
setPosition(float val)
Set the relative position of this servo as a percentage of the position within the set bounds of this servo. |
void |
setValue(int val)
Set the ouput pulse width for this servo. |
| Method Detail |
|---|
void setValue(int val)
val - size of pulse in microsecondsint getValue()
void setPosition(float val)
val - value from 0.0 to 1.0
void setBounds(int low,
int high)
low - the lower bound for the size of this servos pulse in microsecondshigh - the upper bound for the size of this servos pulse in microsecondsIServoController getController()
IServoController
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||