Tuesday, March 22, 2011

Exercise 2, Maze

The code below was implemented:

fwd 1.5
turn 65
fwd 1.5
turn 25
fwd 1.4
turn 45
fwd 0.15
turn 25
fwd 0.2
turn 20
fwd 1.4
turn 55
fwd 0.1
turn 10
fwd 0.15
turn 25
fwd 0.3
turn 30
fwd 0.7
turn -30
fwd 1
turn -65
fwd 0.45
turn -10
fwd 0.15
turn -15
fwd 0.5
stop

After the simulation, the robot was in the position seen below:

No comments:

Post a Comment