i dont know what's wrong with my code! i made a simple code that should make my robot simply avoid walls, stuff etc. i placed SC-QR-1 (my robot's name) upside-down and pressed [F5] (the "run" shortcut) and watched him move his cute little robot legs.. WTF? the new code seemed to work untill the walk part was over and he started to turn.. ..left. and then again left and again and again.. etc.
he is suposed to keep walking!!!