The code below is intended to have the robot move in a rectangle. Instead of making a 90-degree turn, it makes an s-shaped movement (and then another; I think the travel(50) command is being skipped). If I insert a stop() after the steer, the steer command is ignored.
- Code: Select all
int n=1;
while (n < 3)
{
robot.travel(74);
robot.steer(90);
robot.travel(50);
robot.steer(90);
n = n+ 1;
}
