The group has created an algorithm for the final coding. To give it more details, as soon as the match starts, the plow comes down. Before the match, the plow is raised up in the air to meet the size requirement. Then the loop starts with the color sensor or light sensor. The group is going to test out both of the sensors during the lab in Week 8, and find out which one works better and more effective. However, regardless of the kind of a sensor, the coding won't be much different. When the sensor senses white, which means the robot is in the ring, the code moves onto the ultrasonic sensor. When the ultrasonic sensor detects an object within eight inches, the robot marches toward the opponent. On the other hand, if the ultrasonic sensor doesn't detect anything within eight inches, the robot will perform a zero point turn until the opponent shows up in the sight. This is to not to chase the opponent because the group's robot is not a fast type robot. When the color sensor or light sensor senses black, which is the color of the edge, the robot will perform a reverse arc turn for 180 degrees and back up. This movement will locate the robot out of the edge. After those two moves, the robot will push forward to counter attack.
Tuesday, May 22, 2012
Algorithm-1
The group has created an algorithm for the final coding. To give it more details, as soon as the match starts, the plow comes down. Before the match, the plow is raised up in the air to meet the size requirement. Then the loop starts with the color sensor or light sensor. The group is going to test out both of the sensors during the lab in Week 8, and find out which one works better and more effective. However, regardless of the kind of a sensor, the coding won't be much different. When the sensor senses white, which means the robot is in the ring, the code moves onto the ultrasonic sensor. When the ultrasonic sensor detects an object within eight inches, the robot marches toward the opponent. On the other hand, if the ultrasonic sensor doesn't detect anything within eight inches, the robot will perform a zero point turn until the opponent shows up in the sight. This is to not to chase the opponent because the group's robot is not a fast type robot. When the color sensor or light sensor senses black, which is the color of the edge, the robot will perform a reverse arc turn for 180 degrees and back up. This movement will locate the robot out of the edge. After those two moves, the robot will push forward to counter attack.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment