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?
|
HardwareDevice.Manufacturer
Modifier and Type | Method and Description |
---|---|
ServoController.PwmStatus |
getPwmStatus()
Returns the enablement status of the collective set of servos connected to this controller
|
double |
getServoPosition(int servo)
Get the position of a servo at a given channel
|
void |
pwmDisable()
Disables all of the servos connected to this controller
|
void |
pwmEnable()
Enables all of the servos connected to this controller
|
void |
setServoPosition(int servo,
double position)
Set the position of a servo at the given channel
|
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode
void pwmEnable()
void pwmDisable()
ServoController.PwmStatus getPwmStatus()
void setServoPosition(int servo, double position)
servo
- channel of servoposition
- from 0.0 to 1.0double getServoPosition(int servo)
servo
- channel of servo