I can not get the encoders to work. (see previous post)
going to try this.
need robot to move forward
motor[right] = 20;
motor[left] = 20;
while it is doing that task, I need it to move a servo from 1 to 225.
if (SensorValue)(IR) = 5)
servo(basket) = 225;
servo(basket) = 1;
I do not want the robot to stop until it has timed out, I want the ir sensor to trigger the servo to move during the 5 second run of the robot.
I need a while loop, but where do I put it?
How do I make the 5 sec run a condition?
I wish my encoders worked.