Package edu.wpi.first.wpilibj
Class MockPWM
java.lang.Object
xbot.common.controls.actuators.XPWM
edu.wpi.first.wpilibj.MockPWM
- All Implemented Interfaces:
XBaseIO
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class xbot.common.controls.actuators.XPWM
XPWM.XPWMFactory -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetRaw()doubledoublevoidsetRaw(int value) Sets the PWM duty cyclevoidsetSigned(double value) Sets the PWM duty cyclevoidsetUnsigned(double value) Sets the PWM duty cycleMethods inherited from class xbot.common.controls.actuators.XPWM
getChannel
-
Field Details
-
channel
protected int channel -
value
protected double value
-
-
Constructor Details
-
MockPWM
-
-
Method Details
-
setRaw
public void setRaw(int value) Description copied from class:XPWMSets the PWM duty cycle -
getRaw
public int getRaw() -
setSigned
public void setSigned(double value) Description copied from class:XPWMSets the PWM duty cycle -
getSigned
public double getSigned() -
setUnsigned
public void setUnsigned(double value) Description copied from class:XPWMSets the PWM duty cycle- Specified by:
setUnsignedin classXPWM- Parameters:
value- the value to set, in the range [0, 1]
-
getUnsigned
public double getUnsigned()- Specified by:
getUnsignedin classXPWM
-