Package edu.wpi.first.wpilibj
Class MockDigitalOutput
java.lang.Object
xbot.common.controls.actuators.XDigitalOutput
edu.wpi.first.wpilibj.MockDigitalOutput
- All Implemented Interfaces:
XBaseIO
-
Nested Class Summary
Nested classes/interfaces inherited from class xbot.common.controls.actuators.XDigitalOutput
XDigitalOutput.XDigitalOutputFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
enablePWM
(double initialDutyCycle) boolean
get()
void
set
(boolean value) void
setPWMRate
(double frequency) Set the PWM frequency of ALL DIGITAL OUTPUT PWM CHANNELSvoid
updateDutyCycle
(double dutyCycle) Methods inherited from class xbot.common.controls.actuators.XDigitalOutput
getChannel
-
Field Details
-
channel
protected int channel -
value
protected boolean value
-
-
Constructor Details
-
MockDigitalOutput
-
-
Method Details
-
set
public void set(boolean value) - Specified by:
set
in classXDigitalOutput
-
setPWMRate
public void setPWMRate(double frequency) Description copied from class:XDigitalOutput
Set the PWM frequency of ALL DIGITAL OUTPUT PWM CHANNELS- Specified by:
setPWMRate
in classXDigitalOutput
- Parameters:
frequency
- PWM frequency
-
enablePWM
public void enablePWM(double initialDutyCycle) - Specified by:
enablePWM
in classXDigitalOutput
-
updateDutyCycle
public void updateDutyCycle(double dutyCycle) - Specified by:
updateDutyCycle
in classXDigitalOutput
-
disablePWM
public void disablePWM()- Specified by:
disablePWM
in classXDigitalOutput
-
get
public boolean get()- Specified by:
get
in classXDigitalOutput
-