public class AnalogOutput extends SensorBase implements LiveWindowSendable
kAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPCMModules, kPDPChannels, kPDPModules, kPwmChannels, kRelayChannels, kSolenoidChannels, kSystemClockTicksPerMicrosecond| 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.
|
java.lang.String |
getSmartDashboardType()
The string representation of the named data type that will be used by the smart dashboard for
this
Sendable. |
ITable |
getTable()
The table that is associated with this
Sendable. |
double |
getVoltage() |
void |
initTable(ITable subtable)
Initializes a table for this
Sendable object. |
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()
Update the table for this sendable object with the latest values.
|
checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPDPChannel, checkPDPModule, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, getDefaultSolenoidModule, setDefaultSolenoidModulepublic AnalogOutput(int channel)
channel - The channel number to represent.public void free()
free in class SensorBasepublic int getChannel()
public void setVoltage(double voltage)
public double getVoltage()
public java.lang.String getSmartDashboardType()
SendableSendable.getSmartDashboardType in interface SendableSendable.public void initTable(ITable subtable)
SendableSendable object.public void updateTable()
LiveWindowSendableupdateTable in interface LiveWindowSendablepublic ITable getTable()
SendableSendable.public void startLiveWindowMode()
startLiveWindowMode in interface LiveWindowSendablepublic void stopLiveWindowMode()
stopLiveWindowMode in interface LiveWindowSendable