my previous post might not have been very clear:
idealy i want to have a robot with two sensors, one on the left, one on the right.
the pseudo code that i plan is this:
if left sensor indicates that it is > 3 inches from object (wall) then left wheel(s) go forward
if right sensor indicates that it is > 3 inches from object then right wheel go forward
else if left sensor indicates that it is < 3 inches from object then left wheel go backwards
else if right sensor indicates that it is < 3 inches from object then right wheel go bakcwards
else
left wheel dont move
right wheel dont move
admin posted the ir code for the $50 robot and would like to know :
how to modify (what to change) in the code for the robot to do as i described
i just started to learn to program in school in the MS-DOS based language "Turing," so i can kind of undersand the code, but i do not know the syntax
thx for your help in advance