Program the Finch to avoid running into objects!
Program the Finch to avoid running into objects. When testing your program, remember that the Finch obstacle sensors can be a bit finicky – large, lightly-colored objects (like cardboard boxes) make the best obstacles. Also, remember that a Finch can only sense obstacles that are very close to it (2 to 4 inches away).
For this project, the Finch should do the following:
- By default, the Finch should move forward with a green beak.
- If the Finch detects an obstacle on the left, it should turn right. The beak should be red.
- If the Finch detects an obstacle on the right, it should turn left. The beak should be blue.