ive recently made a basic ultrasonic robot from scartch. And used some libraries for the components (SRF04- i edited the NewPing library to work with IRRemote library, IR receiver- IRRemote) and im having some problems i cant figure out with my programe i was hoping to ask you if you the solution.
What im trying to do: As i said i made a basic ultrasonic robot and ive already made the basic code where he just walks around trying not to hit a wall. i made a function out of that called automatic(). And what im trying to do now is to make the robot move when i press a button on the remote wich i made function called manual() for his movement.
The problem: When i choose a mode i want ( either manual() or automatic() ) i stops looking for a button press it just repeats the operation no matter how much i press.
the code: https://codebender.cc/sketch:53862