public class ServoImplEx extends ServoImpl implements PwmControl
Servo and the PwmControl interfaces.PwmControl.PwmRangeServo.DirectionHardwareDevice.Manufacturer| Modifier and Type | Field and Description |
|---|---|
protected ServoControllerEx |
controllerEx |
controller, direction, limitPositionMax, limitPositionMin, portNumberMAX_POSITION, MIN_POSITION| Constructor and Description |
|---|
ServoImplEx(ServoControllerEx controller,
int portNumber,
Servo.Direction direction,
ServoConfigurationType servoType) |
ServoImplEx(ServoControllerEx controller,
int portNumber,
ServoConfigurationType servoType) |
| Modifier and Type | Method and Description |
|---|---|
PwmControl.PwmRange |
getPwmRange()
Returns the current PWM range limits for the servo
|
boolean |
isPwmEnabled()
Returns whether the PWM is energized for this particular servo
|
void |
setPwmDisable()
Individually denergizes the PWM for this particular servo
|
void |
setPwmEnable()
Individually energizes the PWM for this particular servo.
|
void |
setPwmRange(PwmControl.PwmRange range)
Sets the PWM range limits for the servo
|
close, getConnectionInfo, getController, getDeviceName, getDirection, getManufacturer, getPortNumber, getPosition, getVersion, internalSetPosition, resetDeviceConfigurationForOpMode, scaleRange, setDirection, setPositionprotected ServoControllerEx controllerEx
public ServoImplEx(ServoControllerEx controller, int portNumber, ServoConfigurationType servoType)
public ServoImplEx(ServoControllerEx controller, int portNumber, Servo.Direction direction, ServoConfigurationType servoType)
public void setPwmRange(PwmControl.PwmRange range)
PwmControlsetPwmRange in interface PwmControlrange - the new PWM range limits for the servoPwmControl.getPwmRange()public PwmControl.PwmRange getPwmRange()
PwmControlgetPwmRange in interface PwmControlPwmControl.setPwmRange(PwmRange)public void setPwmEnable()
PwmControlsetPwmEnable in interface PwmControlPwmControl.setPwmDisable(),
PwmControl.isPwmEnabled()public void setPwmDisable()
PwmControlsetPwmDisable in interface PwmControlPwmControl.setPwmEnable()public boolean isPwmEnabled()
PwmControlisPwmEnabled in interface PwmControlPwmControl.setPwmEnable()