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, setDefaultSolenoidModule
public AnalogOutput(int channel)
channel
- The channel number to represent.public void free()
free
in class SensorBase
public void setVoltage(double voltage)
public double getVoltage()
public String getSmartDashboardType()
getSmartDashboardType
in interface Sendable
public void initTable(edu.wpi.first.wpilibj.tables.ITable subtable)
public void updateTable()
updateTable
in interface LiveWindowSendable
public edu.wpi.first.wpilibj.tables.ITable getTable()
public void startLiveWindowMode()
startLiveWindowMode
in interface LiveWindowSendable
public void stopLiveWindowMode()
stopLiveWindowMode
in interface LiveWindowSendable
Copyright © 2015. All rights reserved.