public class AnalogOutput extends SensorBase implements LiveWindowSendable
kAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPDPChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, 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.
|
String |
getSmartDashboardType() |
edu.wpi.first.wpilibj.tables.ITable |
getTable() |
double |
getVoltage() |
void |
initTable(edu.wpi.first.wpilibj.tables.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, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, getDefaultSolenoidModule, setDefaultSolenoidModulepublic AnalogOutput(int channel)
channel - The channel number to represent.public void free()
free in class SensorBasepublic void setVoltage(double voltage)
public double getVoltage()
public String getSmartDashboardType()
getSmartDashboardType in interface Sendablepublic void initTable(edu.wpi.first.wpilibj.tables.ITable subtable)
public void updateTable()
updateTable in interface LiveWindowSendablepublic edu.wpi.first.wpilibj.tables.ITable getTable()
public void startLiveWindowMode()
startLiveWindowMode in interface LiveWindowSendablepublic void stopLiveWindowMode()
stopLiveWindowMode in interface LiveWindowSendableCopyright © 2015. All rights reserved.