Tuesday, April 24, 2012

Coding

The group has decided to use the color sensor to determine whether the robot should counter-attack the other robot and push out of the ring or keep pushing the other one outward.

The following is the simple code that the group has so far:


The robot moves forward, and once the color sensor that is detached on the back of the robot, for now, sensors the white ring, it makes an arc turn and starts moving forward.

The group will, later, add on an ultrasonic sensor for finding the opponent.

One other problem the group has noticed in lab is that the group's first prototype has good power, meaning explosive, but less agility due to the motor-torque ratio. This is a very bad disadvantage when the robot is trying to get away from the edge of the ring and to counter-attack. During the lab in week 4, the group will try to work on agility as containing the power.

No comments: