ColorSensor.cpp file Reference
Skittle Color Sorter

file ColorSensor.cpp

Color Sensor.

define

  • F_CALIBRATING
  • Is calibration in progress.
  • F_CALI_EMPTY_HOLE
  • Is calibrating the empty hole's color.
  • C_HOLE_CLEAR
  • The clear value used to determine the hole's arrival.
  • C_IDEAL_CLEAR
  • The ideal clear value for color detection.
  • C_ALLOWED_COLOR_VARIANCE
  • Allowed color variance for color detection.
  • C_ALLOWED_CLEAR_VARIANCE
  • Allowed clear variance for color detection.
  • C_ATIME
  • Color sensor integration time 154ms.
  • C_CYCLES
  • Color sensor cycles according to the integration time.
  • COLOR_DEF

Top