Class FtcMRRangeSensor


public class FtcMRRangeSensor extends TrcSensor<FtcMRRangeSensor.DataType>
This class implements the Modern Range sensor extending TrcAnalogInput. It provides implementation of the abstract methods in TrcAnalogInput.
  • Field Details

    • sensor

      public com.qualcomm.hardware.modernrobotics.ModernRoboticsI2cRangeSensor sensor
  • Constructor Details

    • FtcMRRangeSensor

      public FtcMRRangeSensor(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, String instanceName, TrcFilter[] filters)
      Constructor: Creates an instance of the object.
      Parameters:
      hardwareMap - specifies the global hardware map.
      instanceName - specifies the instance name.
      filters - specifies an array of filter objects, one for each axis, to filter sensor data. If no filter is used, this can be set to null.
    • FtcMRRangeSensor

      public FtcMRRangeSensor(String instanceName, TrcFilter[] filters)
      Constructor: Creates an instance of the object.
      Parameters:
      instanceName - specifies the instance name.
      filters - specifies an array of filter objects, one for each axis, to filter sensor data. If no filter is used, this can be set to null.
    • FtcMRRangeSensor

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