public interface ServoController extends HardwareDevice
Different servo controllers will implement this interface.
Modifier and Type | Interface and Description |
---|---|
static class |
ServoController.PwmStatus
PWM Status - is pwm enabled?
|
Modifier and Type | Method and Description |
---|---|
ServoController.PwmStatus |
getPwmStatus()
Get the PWM status
|
double |
getServoPosition(int channel)
Get the position of a servo at a given channel
|
void |
pwmDisable()
PWM disable
|
void |
pwmEnable()
PWM enable
|
void |
setServoPosition(int channel,
double position)
Set the position of a servo at the given channel
|
close, getConnectionInfo, getDeviceName, getVersion
void pwmEnable()
void pwmDisable()
ServoController.PwmStatus getPwmStatus()
void setServoPosition(int channel, double position)
channel
- channel of servoposition
- from 0.0 to 1.0double getServoPosition(int channel)
channel
- channel of servo