I am new to programing and i have a question, Is this program rightfor a tracked robot with 2 moters 1 servo 1 led 1 sharp and a small speaker?Also it is a picaxe 28x2.this is the program.
Symbol dangerlevel = 70
symbol turn = 300
symbol servo_turn = 700
main:
readadc 0, b0
if b0 < dangerlevel then
gosub nodanger
else
gosub whichway
end if
goto main
nodanger:
high B.5 : high B.6 : low B.4 : low B.7
return