public class AnalogOutput extends AnalogIO implements Module, LiveWindowSendable, NumberSink
AnalogIO.AnalogChannel, AnalogIO.DirectionInterface.InterfaceType| Modifier and Type | Field and Description |
|---|---|
private boolean |
m_disabled |
private ITable |
m_table |
m_channel, m_port, m_portPointerm_ifaceType, MAX_ANALOG_IN_CHANNELS, MAX_ANALOG_OUT_CHANNELS, MAX_DIGITAL_CHANNELS, MAX_PWM_CHANNELS, MAX_RELAY_CHANNELS| Constructor and Description |
|---|
AnalogOutput(AnalogIO.AnalogChannel channel)
Construct an analog output on a specified AnalogChannel
channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disableModule()
Disable the module
|
void |
enableModule()
Enable the module
|
double |
get() |
boolean |
getModuleEnabled() |
java.lang.String |
getSmartDashboardType() |
ITable |
getTable() |
double |
getVoltage() |
void |
initTable(ITable subtable) |
void |
set(double voltage)
Set the voltage of this Analog Output
|
void |
setVoltage(double voltage) |
void |
startLiveWindowMode()
Analog Channels don't have to do anything special when entering the
LiveWindow.
|
void |
stopLiveWindowMode()
Analog Channels don't have to do anything special when exiting the
LiveWindow.
|
void |
updateTable() |
free, getChannel, getChannelNumberallocateMXPPin, checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPWMChannel, checkRelayChannel, freeMXPPin, getInterfaceTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbindValue, bindValueprivate ITable m_table
private boolean m_disabled
public AnalogOutput(AnalogIO.AnalogChannel channel)
channel - The channel to represent.public void set(double voltage)
set in interface NumberSinkvoltage - the voltage to setpublic void setVoltage(double voltage)
public double get()
public double getVoltage()
public final java.lang.String getSmartDashboardType()
getSmartDashboardType in interface Sendablepublic final void initTable(ITable subtable)
public final void updateTable()
updateTable in interface UpdatingSendablepublic void startLiveWindowMode()
startLiveWindowMode in interface LiveWindowSendablepublic void stopLiveWindowMode()
stopLiveWindowMode in interface LiveWindowSendablepublic void enableModule()
enableModule in interface Modulepublic void disableModule()
disableModule in interface Modulepublic boolean getModuleEnabled()
getModuleEnabled in interface Module