This is the base of the group's code after the lab in Week 8. At first, the robot will bring down the plow on the ground. When the touch sensor is released, which means the robot has pushed the opponent out of the ring, the robot stops completely. While the touch sensor is not released and the light sensor senses white, the ultra sonic sensor is activated to seek and march toward the opponent. If the light sensor senses black, which means the robot has been pushed all the way to the edge, the robot performs an arch turn and find its way out of the danger.
No comments:
Post a Comment