public class AnalogOutput extends SendableBase
Constructor and Description |
---|
AnalogOutput(int channel)
Construct an analog output on a specified MXP channel.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getChannel()
Get the channel of this AnalogOutput.
|
AnalogOutSim |
getSimObject() |
double |
getVoltage() |
void |
initSendable(SendableBuilder builder)
Initializes this
Sendable object. |
void |
setVoltage(double voltage) |
addChild, free, getName, getSubsystem, setName, setName, setName, setSubsystem
public AnalogOutput(int channel)
channel
- The channel number to represent.public void close()
close
in interface AutoCloseable
close
in class SendableBase
public int getChannel()
public void setVoltage(double voltage)
public double getVoltage()
public void initSendable(SendableBuilder builder)
Sendable
Sendable
object.builder
- sendable builderpublic AnalogOutSim getSimObject()