public class AnalogInput extends java.lang.Object implements HardwareDevice
HardwareDevice.Manufacturer
Constructor and Description |
---|
AnalogInput(AnalogInputController controller,
int channel)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this device
|
java.lang.String |
getConnectionInfo()
Get connection information about this device in a human readable format
|
java.lang.String |
getDeviceName()
Returns a string suitable for display to the user as to the type of device.
|
HardwareDevice.Manufacturer |
getManufacturer()
Returns an indication of the manufacturer of this device.
|
double |
getMaxVoltage()
Returns the maximum value that getVoltage() is capable of reading
|
int |
getVersion()
Version
|
double |
getVoltage()
Returns the current voltage of this input.
|
void |
resetDeviceConfigurationForOpMode()
Resets the device's configuration to that which is expected at the beginning of an OpMode.
|
public AnalogInput(AnalogInputController controller, int channel)
controller
- AnalogInput controller this channel is attached tochannel
- channel on the analog input controllerpublic HardwareDevice.Manufacturer getManufacturer()
HardwareDevice
getManufacturer
in interface HardwareDevice
public double getVoltage()
public double getMaxVoltage()
getVoltage()
public java.lang.String getDeviceName()
HardwareDevice
getDeviceName
in interface HardwareDevice
public java.lang.String getConnectionInfo()
HardwareDevice
getConnectionInfo
in interface HardwareDevice
public int getVersion()
HardwareDevice
getVersion
in interface HardwareDevice
public void resetDeviceConfigurationForOpMode()
HardwareDevice
resetDeviceConfigurationForOpMode
in interface HardwareDevice
public void close()
HardwareDevice
close
in interface HardwareDevice