Class ColorSensor5k


  • public class ColorSensor5k
    extends com.revrobotics.ColorSensorV3
    Extensions to the REV ColorSensor V3
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.revrobotics.ColorSensorV3

        com.revrobotics.ColorSensorV3.RawColor
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorSensor5k​(edu.wpi.first.wpilibj.I2C.Port port)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isReadingEqual​(edu.wpi.first.wpilibj.util.Color8Bit c, double eps)
      Check if the sensor reading is roughly equal to a specified color
      boolean isReadingEqual​(edu.wpi.first.wpilibj.util.Color c, double eps)
      Check if the sensor reading is roughly equal to a specified color
      • Methods inherited from class com.revrobotics.ColorSensorV3

        configureColorSensor, configureProximitySensor, configureProximitySensorLED, getBlue, getColor, getGreen, getIR, getProximity, getRawColor, getRed, hasReset
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColorSensor5k

        public ColorSensor5k​(edu.wpi.first.wpilibj.I2C.Port port)
    • Method Detail

      • isReadingEqual

        public boolean isReadingEqual​(edu.wpi.first.wpilibj.util.Color8Bit c,
                                      double eps)
        Check if the sensor reading is roughly equal to a specified color
        Parameters:
        c - Color
        eps - Comparison epsilon
        Returns:
        Is color equal?
      • isReadingEqual

        public boolean isReadingEqual​(edu.wpi.first.wpilibj.util.Color c,
                                      double eps)
        Check if the sensor reading is roughly equal to a specified color
        Parameters:
        c - Color
        eps - Comparison epsilon
        Returns:
        Is color equal?