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
followline "br" :($drivendist > 1.0)
turn 180
followline "br" :($drivendist > 1.0)
stop
No comments:
Post a Comment