public class AnalogOutput extends SendableBase implements Sendable
Constructor and Description |
---|
AnalogOutput(int channel)
Construct an analog output on a specified MXP channel.
|
Modifier and Type | Method and Description |
---|---|
void |
free()
Channel destructor.
|
int |
getChannel()
Get the channel of this AnalogOutput.
|
double |
getVoltage() |
void |
initSendable(SendableBuilder builder)
Initializes this
Sendable object. |
void |
setVoltage(double voltage) |
addChild, getName, getSubsystem, setName, setName, setName, setSubsystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getSubsystem, setName, setName, setSubsystem
public AnalogOutput(int channel)
channel
- The channel number to represent.public void free()
free
in class SendableBase
public int getChannel()
public void setVoltage(double voltage)
public double getVoltage()
public void initSendable(SendableBuilder builder)
Sendable
Sendable
object.initSendable
in interface Sendable
builder
- sendable builder