Tuesday, February 8, 2011

Exercise 1, Task 9

The robot will follow a line and stop if it encounters an object at a distance smaller than 0.3 m.
The program takes into consideration the values from all the front sensors.



fwd 0.5@v0.3
followline "bm" :($irdistfrontleft < 0.3) | ($irdistfrontmiddle < 0.3) | ($irdistfrontright < 0.3)
stop

No comments:

Post a Comment