Team Eggsecute
Robot 0x04: Dr. Robotnic
Strategy
- Use random motion program to move around the board
- Find an egg using distance sensors placed around the robot
- Lower the arm and catch the egg
- Begin spinning and determine the color of the egg using light sensors
- If it's the desired color, release the ball in the direction of the goal/lights by using a set light value of the christmas goal lights.
- If it is the opponent's color, release the ball in the opposite direction from the goal
Lisa's Part
- While there is nothing in range, move randomly around the board. We utilized the rand function for the rotating degrees. It was limited at 36, and that value was multiplied by 10 to give values 10-360.
- Once something is detected, the code goes into Jon's part
Jon's Part
- When something is detecte, the robot will stop, lower the arm, and spin to catch the egg
- It will then determine the color of the egg.
- If it is the correct color, then the robot will release it in the direction of the lights. If not, the ball will be released in the direction opposite the goal.
Once both are completed, and if the time is less than 2 minutes, the code repeats.
Egg Hunt FlowChart Δ