Package edu.wpi.first.wpilibj
Class AnalogOutput
- java.lang.Object
-
- edu.wpi.first.wpilibj.AnalogOutput
-
- All Implemented Interfaces:
Sendable,AutoCloseable
public class AnalogOutput extends Object implements Sendable, AutoCloseable
Analog output class.
-
-
Constructor Summary
Constructors Constructor Description AnalogOutput(int channel)Construct an analog output on a specified MXP channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetChannel()Get the channel of this AnalogOutput.AnalogOutSimgetSimObject()doublegetVoltage()voidinitSendable(SendableBuilder builder)Initializes thisSendableobject.voidsetVoltage(double voltage)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.wpi.first.wpilibj.Sendable
addChild, getName, getSubsystem, setName, setName, setName, setName, setSubsystem
-
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
getChannel
public int getChannel()
Get the channel of this AnalogOutput.
-
setVoltage
public void setVoltage(double voltage)
-
getVoltage
public double getVoltage()
-
initSendable
public void initSendable(SendableBuilder builder)
Description copied from interface:SendableInitializes thisSendableobject.- Specified by:
initSendablein interfaceSendable- Parameters:
builder- sendable builder
-
getSimObject
public AnalogOutSim getSimObject()
-
-