After recognizing a ball, the robot has to drive to ball in order to intake it. We performed several steps in order for the robot to drive to a ball after it recognizes it, with our procedure outlined below.

Steps

  1. Use detection to identify the target ball
  2. Find the center of detection of the target ball
  3. Turn robot until the center of detection equals the center of camera view (while driving forward)
  4. Repeat steps 2 and 3 until a ball is detected in the robot