My robot is only moving forward with this program.
am usinf a SHARP IR 2Y0A21..
when i place my hands in front of it,it stops and then starts moving forward and wont turn to any side.
this is my program..-
Symbol danger = 160
symbol turn = 200
symbol servo_turn = 700
main: readadc 0, b1 if b1 < danger then gosub nodprob else gosub whichway end if
noprob: high 5 : high 6 : low 4 : low 7 gosub whichway return
whichway: wait 1
readadc 0, b1