Package edu.wpi.first.wpilibj.xrp
Class XRPReflectanceSensor
java.lang.Object
edu.wpi.first.wpilibj.xrp.XRPReflectanceSensor
This class represents the reflectance sensor pair on an XRP robot.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the reflectance value of the left sensor.double
Returns the reflectance value of the right sensor.
-
Constructor Details
-
XRPReflectanceSensor
public XRPReflectanceSensor()Constructs an XRPReflectanceSensor.Only one instance of a XRPReflectanceSensor is supported.
-
-
Method Details
-
getLeftReflectanceValue
Returns the reflectance value of the left sensor.- Returns:
- value between 0.0 (white) and 1.0 (black).
-
getRightReflectanceValue
Returns the reflectance value of the right sensor.- Returns:
- value between 0.0 (white) and 1.0 (black).
-