Class AnalogInputWPIAdapater

java.lang.Object
xbot.common.controls.sensors.XAnalogInput
xbot.common.controls.sensors.wpi_adapters.AnalogInputWPIAdapater
All Implemented Interfaces:
DataFrameRefreshable, XBaseIO

public class AnalogInputWPIAdapater extends XAnalogInput
  • Constructor Details

    • AnalogInputWPIAdapater

      @AssistedInject public AnalogInputWPIAdapater(@Assisted("channel") int channel, DevicePolice police, DataFrameRegistry dataFrameRegistry)
  • Method Details

    • getValue

      public int getValue()
    • getVoltage

      public double getVoltage()
      Description copied from class: XAnalogInput
      Returns the current unfiltered voltage directly from the device.
      Specified by:
      getVoltage in class XAnalogInput
    • getInternalDevice

      public org.wpilib.hardware.discrete.AnalogInput getInternalDevice()
    • getChannel

      public int getChannel()
    • getAsDigital

      public boolean getAsDigital(double threshold)
      Specified by:
      getAsDigital in class XAnalogInput