Package xbot.common.controls.actuators
Class XDigitalOutput
java.lang.Object
xbot.common.controls.actuators.XDigitalOutput
- All Implemented Interfaces:
XBaseIO
- Direct Known Subclasses:
DigitalOutputWPIAdapter
,MockDigitalOutput
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
abstract void
enablePWM
(double initialDutyCycle) abstract boolean
get()
int
abstract void
set
(boolean value) abstract void
setPWMRate
(double frequency) Set the PWM frequency of ALL DIGITAL OUTPUT PWM CHANNELSabstract void
updateDutyCycle
(double dutyCycle)
-
Field Details
-
channel
protected int channel
-
-
Constructor Details
-
XDigitalOutput
-
-
Method Details
-
getChannel
public int getChannel()- Specified by:
getChannel
in interfaceXBaseIO
-
set
public abstract void set(boolean value) -
setPWMRate
public abstract void setPWMRate(double frequency) Set the PWM frequency of ALL DIGITAL OUTPUT PWM CHANNELS- Parameters:
frequency
- PWM frequency
-
enablePWM
public abstract void enablePWM(double initialDutyCycle) -
updateDutyCycle
public abstract void updateDutyCycle(double dutyCycle) -
disablePWM
public abstract void disablePWM() -
get
public abstract boolean get()
-