com.qualcomm.robotcore.hardware

## Interface OpticalDistanceSensor

- All Superinterfaces:
    HardwareDevice, LightSensor

      public interface OpticalDistanceSensor
      extends LightSensor

  `OpticalDistanceSensor` is a `LightSensor` whose reported light intensities reflect (pun intended) a relationship to distance. Both raw readings and normalized readings can be obtained; however, these both (usually) have an inverse-square relationship to distance, and thus can be cumbersome to use. For an easier-to-use, linear relationship, see `DistanceSensor`.
  See Also:
    `DistanceSensor`

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.qualcomm.robotcore.hardware.HardwareDevice

      `HardwareDevice.Manufacturer`

  - ### Method Summary

    - ### Methods inherited from interface com.qualcomm.robotcore.hardware.LightSensor

      `enableLed, getLightDetected, getRawLightDetected, getRawLightDetectedMax, status`

    - ### Methods inherited from interface com.qualcomm.robotcore.hardware.HardwareDevice

      `close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode`