Class DigitalOutputWPIAdapter
java.lang.Object
xbot.common.controls.actuators.XDigitalOutput
xbot.common.controls.actuators.wpi_adapters.DigitalOutputWPIAdapter
- All Implemented Interfaces:
XBaseIO
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class xbot.common.controls.actuators.XDigitalOutput
XDigitalOutput.XDigitalOutputFactory
-
Field Summary
Fields inherited from class xbot.common.controls.actuators.XDigitalOutput
channel
-
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
-
Constructor Details
-
DigitalOutputWPIAdapter
@AssistedInject public DigitalOutputWPIAdapter(@Assisted("channel") int channel, DevicePolice police)
-
-
Method Details
-
set
public void set(boolean value) - Specified by:
set
in classXDigitalOutput
-
getWPIDigitalOutput
-
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
-