|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServoInterface
A hardware interface that can set a set of servos implements this interface.
Method Summary | |
---|---|
void |
disableAllServos()
disables all servos |
void |
disableServo(int servo)
sends a servo value to disable the servo |
float |
getLastServoValue(int servo)
Returns last servo value sent (0 before sending a value) |
float[] |
getLastServoValues()
Returns last servo values sent. |
int |
getNumServos()
|
void |
setAllServoValues(float[] values)
sets all servos to values passed in array. |
void |
setPort2(int portValue)
sends a command to set the port 2 output (on the side of the original board) to portValue. |
void |
setServoValue(int servo,
float value)
Sets a servo value. |
Methods inherited from interface net.sf.jaer.hardwareinterface.HardwareInterface |
---|
close, getTypeName, isOpen, open |
Method Detail |
---|
void setServoValue(int servo, float value) throws HardwareInterfaceException
servo
- the servo to set, 0 based.value
- the servo value, 0 to 1 value, value is clipped to 0,1 limits. 0 is most CW, 1 is most CCW when viewed looking
down onto servo motor shaft, i.e. looking onto servo motor and not from behind it.
HardwareInterfaceException
setAllServoValues(float[])
void disableServo(int servo) throws HardwareInterfaceException
servo
- the servo number, 0 based
HardwareInterfaceException
int getNumServos()
void disableAllServos() throws HardwareInterfaceException
HardwareInterfaceException
void setAllServoValues(float[] values) throws HardwareInterfaceException
values
- array of values, 0-1 range. Values are clipped to 0-1 limits. 0 is most CW, 1 is most CCW when viewed looking down onto shaft of servo
from in front of servo.
HardwareInterfaceException
getNumServos()
float[] getLastServoValues()
float getLastServoValue(int servo)
void setPort2(int portValue)
portValue
- the bits to set
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |