Class FtcMRI2cRangeSensor

All Implemented Interfaces:
TrcSensor.DataSource<FtcMRI2cRangeSensor.DataType>

public class FtcMRI2cRangeSensor extends FtcMRI2cDevice implements TrcSensor.DataSource<FtcMRI2cRangeSensor.DataType>
This class implements the Modern Robotics Range Sensor extending FtcMRI2cDevice that implements the common features of all Modern Robotics I2C devices.
  • Field Details

  • Constructor Details

    • FtcMRI2cRangeSensor

      public FtcMRI2cRangeSensor(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, String instanceName, int i2cAddress, boolean addressIs7Bit)
      Constructor: Creates an instance of the object.
      Parameters:
      hardwareMap - specifies the global hardware map.
      instanceName - specifies the instance name.
      i2cAddress - specifies the I2C address of the device.
      addressIs7Bit - specifies true if the I2C address is a 7-bit address, false if it is 8-bit.
    • FtcMRI2cRangeSensor

      public FtcMRI2cRangeSensor(String instanceName, int i2cAddress, boolean addressIs7Bit)
      Constructor: Creates an instance of the object.
      Parameters:
      instanceName - specifies the instance name.
      i2cAddress - specifies the I2C address of the device.
      addressIs7Bit - specifies true if the I2C address is a 7-bit address, false if it is 8-bit.
    • FtcMRI2cRangeSensor

      public FtcMRI2cRangeSensor(String instanceName)
      Constructor: Creates an instance of the object.
      Parameters:
      instanceName - specifies the instance name.
  • Method Details