Class PWMWPIAdapter
java.lang.Object
xbot.common.controls.actuators.XPWM
xbot.common.controls.actuators.wpi_adapters.PWMWPIAdapter
- All Implemented Interfaces:
XBaseIO
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.actuators.XPWM
XPWM.XPWMFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getRaw()
double
double
void
setRaw
(int value) Sets the PWM duty cyclevoid
setSigned
(double value) Sets the PWM duty cyclevoid
setUnsigned
(double value) Sets the PWM duty cycleMethods inherited from class xbot.common.controls.actuators.XPWM
getChannel
-
Constructor Details
-
PWMWPIAdapter
-
-
Method Details
-
setRaw
public void setRaw(int value) Description copied from class:XPWM
Sets the PWM duty cycle -
getRaw
public int getRaw() -
setSigned
public void setSigned(double value) Description copied from class:XPWM
Sets the PWM duty cycle -
getSigned
public double getSigned() -
setUnsigned
public void setUnsigned(double value) Description copied from class:XPWM
Sets the PWM duty cycle- Specified by:
setUnsigned
in classXPWM
- Parameters:
value
- the value to set, in the range [0, 1]
-
getUnsigned
public double getUnsigned()- Specified by:
getUnsigned
in classXPWM
-