I'm trying to make a program where an EV3 is IR controlled but if button 9 (toggle) is pressed it goes in autonomous mode. However, my EV3 will not run a certain loop in the program.

It looks like this: The big one won't run; no matter what I put in it

The big one won't run; no matter what I put in it.

1 Answer 1

  1. A program should have only one "Start" block (the green play button).
  2. Your 3 segments of code are not linked together, you need to drag a "beam" from the exit of one loop to the block that should execute after the loop exits.
  3. You need to link the action of pressing the button to an exit condition for your loops. You are using infinite loops. The only way to escape an infinite loop is a Loop Interrupt block. Click on the infinity symbol on the loop blocks for more options.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.