Tuesday, February 1, 2011

Exercise 1, Task 5

First the line sensor should be calibrated:
smrdemo –c

Make a program which makes the SMR follow a black line for 1 meter; turn and get back.
fwd 0.3
followline "br" :($drivendist > 1.0)
turn 180
followline "br" :($drivendist > 1.0)
stop

Here is the end result:





No comments:

Post a Comment