Class XRPReflectanceSensor

java.lang.Object
edu.wpi.first.wpilibj.xrp.XRPReflectanceSensor

public class XRPReflectanceSensor extends Object
This class represents the reflectance sensor pair on an XRP robot.
  • Constructor Details

    • XRPReflectanceSensor

      Constructs an XRPReflectanceSensor.

      Only one instance of a XRPReflectanceSensor is supported.

  • Method Details

    • getLeftReflectanceValue

      public double getLeftReflectanceValue()
      Returns the reflectance value of the left sensor.
      Returns:
      value between 0.0 (white) and 1.0 (black).
    • getRightReflectanceValue

      public double getRightReflectanceValue()
      Returns the reflectance value of the right sensor.
      Returns:
      value between 0.0 (white) and 1.0 (black).