Irobot Roomba Legacy icon Irobot Roomba Legacy Legacy iRobot Discovery and 4xxx control via EZB software-serial (D0), supports Arduino/EZ-Robot, adjustable baud rate; not for hardware UART/USB Try it →
Asked

Blockly Loop Execution Issue

Hello! I'm trying to create a loop in the Blockly programming environment, but it only executes the first statement and doesn't continue with the rest.

User-inserted image

Could someone please help me figure out why the loop is not working as expected? Thank you!


ARC Pro

Upgrade to ARC Pro

Take control of your robot's destiny by subscribing to Synthiam ARC Pro, and watch it evolve into a versatile and responsive machine.

#1   — Edited

Look in the debug window, and you will find messages. If there is an error, it will be displayed there.

Also, don't forget that you are using the WAIT commands, which means they must complete before moving to the next command. The word WAIT means wait for something to complete until instructed to continue. So in your code, you audio soundboard would WAIT until it has completely finished before moving to the next command.

If you do not want that, do not use the WAIT commands.

User-inserted image