Hi all,
can anyone help me out with mBlock program.
I am using the same program from Decision narrow line Chapter 14 for line following and obstacle avoidance for my mBot Ranger.
http://122.228.233.142/download.makeblock.com/ranger/tutorials/Chapter%2014%20Decision.pdf?wsiphost=local
How ever, the program looks like the ranger stops once it detect the
obstacle and turn around and goes back. (Please see the attachment for
mBlock program)
Can anyone help me to do the same procedure as in the http://openlab.makeblock.com/topic/56e38e5660a70d5c503f7fce1
where, mBot should be replaced by mBot Ranger.
Please help me to fix the obstacle avoiding algorithm moving forward for the program attached.
There, the logic is confusing under the ultrasonic sensor algorithm, i tried to change as below
if distance >15,
run right 100rpm
wait 0.1sec
runleft 100rpm.
Still the robot goes a turn and goes on the path which it comes from.
It is not taking turn and bypassing the obstacle and not going forward.
Please help me out with the logic.