Skip to content

Refactor color sensor code to separate file

Daniel Qu requested to merge d3qu/color-sensor-refactoring into main

This change aims to modularize the robot code by moving the color sensor code to a separate file.

Summary of Changes

  • Add color.h and color.cpp file
  • Move all functions to the color files
  • Move the global variables associated with color to color.cpp
  • Add a calibrateWhite and calibrateBlack() function

Merge request reports