Class DigitalInputWPIAdapter

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

public class DigitalInputWPIAdapter extends XDigitalInput
  • Field Details

  • Constructor Details

    • DigitalInputWPIAdapter

      @AssistedInject public DigitalInputWPIAdapter(@Assisted("info") DeviceInfo info, @Assisted("owningSystemPrefix") String owningSystemPrefix, DevicePolice police)
      Create an instance of a Digital Input class. Creates a digital input given a channel.
      Parameters:
      info - the DIO channel for the digital input 0-9 are on-board, 10-25 are on the MXP
  • Method Details

    • updateInputs

      public void updateInputs(XDigitalInputs inputs)
      Specified by:
      updateInputs in class XDigitalInput
    • getChannel

      public int getChannel()
      Get the channel of the digital input
      Returns:
      The GPIO channel number that this object represents.